CFD Online Logo CFD Online URL
Home > Forums > General Forums > Main CFD Forum

Gerris Installaion

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2016, 09:46
Default Gerris Installaion
New Member
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, 17:41
Default Guides for install gfsview from sources
New Member
Yuchen Zhang
Join Date: Apr 2018
Posts: 3
Rep Power: 7
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:

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 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.

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/ undefined reference to `GTK_WIDGET_REALIZED'
/usr/lib64/ undefined reference to `GTK_WIDGET_TOPLEVEL'
/usr/lib64/ 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

New packages for gtkglext can be find at
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/:

make install

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


gerris, gfsview

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Adeptive Grid in Gerris P Sharma Main CFD Forum 0 August 24, 2015 06:36
Gerris original Points abdelkader Main CFD Forum 0 December 25, 2013 20:02
Gerris or Openfoam? houkensjtu Main CFD Forum 14 October 19, 2012 05:39
Installation of Gerris on ubuntu udiitm Main CFD Forum 1 March 28, 2011 13:39
Gerris Flow Solver rt Main CFD Forum 2 May 11, 2006 12:01

All times are GMT -4. The time now is 12:05.