CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Gerris Installaion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2016, 10:46
Default Gerris Installaion
  #1
New Member
 
GOVIND SHARMA
Join Date: Jan 2014
Posts: 2
Rep Power: 0
luckygovind is on a distinguished road
Hello Everyone,

I installed Gerris but couldn't get gfsview. I tried to install gfsview in other way by installing gtk and opengl with some other dependencies but couldn't get it. Even while installing this i lost some files because of that i lost my operating system also and i had to reinstall Ubuntu. Please let me how do i install gfsview straight forward?

Thank you
luckygovind is offline   Reply With Quote

Old   May 8, 2018, 18:41
Default Guides for install gfsview from sources
  #2
New Member
 
Yuchen Zhang
Join Date: Apr 2018
Posts: 3
Rep Power: 8
joytonight is on a distinguished road
I installed gfsview on a remote linux cluster. And it is very annoying that many dependency packages have problems.

On my remote cluster, OpenGL and glib are already installed. I used gcc/4.8 and openmpi/2.1 to compile the files. openmpi/1.8 and openmpi/1.10 probably also work, but intel compiler does not work for pango installation (mpiicc).

Gfsview requires GTK, GtkGlExt and FTGL package. Beforce building Gfsview, you also need to install gerris. Installing GtkGlExt is very tricky and is probably the most difficult part. GtkGlExt requires pango and pangox. The package I used are gtk+-2.24.32, ftgl-2.1.3~rc5

I installed pango-1.40. Pango requires freeType, fontconfig, Harfbuzz and cairo packages. The following website provides the version list for the dependency packages for pango-1.40:
http://www.linuxfromscratch.org/blfs...d/x/pango.html

From the above website, you can find the correct version for freeType, Harfbuzz , fontconfig and cairo. Different versions may be incompatible with each other. The packages need to be installed in order, and commands for install each packages are
./configure --prefix=...
make
make install
make check #see if you successfully build the package if this command is supported by the package,

Then install pango-1.40. But GtkGlExt still requires pangox, which has been removed from pango package since pango-1.30 something. So I installed an additional pangox package.
https://packages.ubuntu.com/xenial/libpangox-1.0-0


Then I start to install gtkglext-1.2.0. However, it seems the package on gtkglext website cannot work with gfsview.

The error messages are:
/usr/lib64/libgtkglext-x11-1.0.so: undefined reference to `GTK_WIDGET_REALIZED'
/usr/lib64/libgtkglext-x11-1.0.so: undefined reference to `GTK_WIDGET_TOPLEVEL'
/usr/lib64/libgtkglext-x11-1.0.so: undefined reference to `GTK_WIDGET_NO_WINDOW'

The errors occurs becasue gtk Gtk+>= 2.20 replaced these functions ( GTK_WIDGET_REALIZED, GTK_WIDGET_TOPLEVEL, and GTK_WIDGET_NO_WINDOW) with macros. This bug is also discussed for installation in Ubuntu in the wiki page of gerris. But better solution is offered in https://bugzilla.redhat.com/show_bug.cgi?id=677457


New packages for gtkglext can be find at
https://koji.fedoraproject.org/koji/...packageID=1998
the file is in rpm. I unpacked the file using the following command:

rpm2cpio gtkglext-1.2.0-32.fc28.src.rpm | cpio -idmv

Then move the patch into the original package and apply the patch:

cp 0001-gtkglext-1.2.0-bz677457.patch gtkglext-1.2.0/
cp 0002-GCC-8-fixes.patch gtkglext-1.2.0/
cd gtkglext-1.2.0/
patch -p1 0001-gtkglext-1.2.0-bz677457.patch
patch -p1 0002-GCC-8-fixes.patch


Now you can install gtkglext-1.2.0/:

./configure
make
make install

As the final step, you can install gfsview.
joytonight is offline   Reply With Quote

Reply

Tags
gerris, gfsview


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gerris or Openfoam? houkensjtu Main CFD Forum 15 September 15, 2024 03:24
Adeptive Grid in Gerris P Sharma Main CFD Forum 0 August 24, 2015 07:36
Gerris original Points abdelkader Main CFD Forum 0 December 25, 2013 21:02
Installation of Gerris on ubuntu udiitm Main CFD Forum 1 March 28, 2011 14:39
Gerris Flow Solver rt Main CFD Forum 2 May 11, 2006 13:01


All times are GMT -4. The time now is 18:15.