LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Building a visualization Package in Slackware64 13 (http://www.linuxquestions.org/questions/slackware-14/building-a-visualization-package-in-slackware64-13-a-784593/)

Alexvader 01-25-2010 08:19 AM

Building a visualization Package in Slackware64 13
 
Hi Forum,

I have came across these two apps, for computational fluid Dynamics,

Open Source, nothing compared to Fluent ( proprietary application ) or OpenFOAM ( Open Source set of libraries and solvers ) in its capabilities, but nonetheless suitable for some limited tasks ( free surface potential flow, for instance ) called Gerris.

http://gfs.sourceforge.net/wiki/index.php/Main_Page

It has a companion package called GfsView, that is used to visualize the results of Gerris solver.

Gerris builds ok, using either Gcc/Gfortran or Icc/Ifort/mkl.

GfsView asks for a dependency that exists as a slackBuild, called GtkGlEXT, as well as gts libs ,( the Gnu Triangulated surface library ).

Both are installed as Slackware packages :

Quote:

root@iskandhar:/home/alex/Gfsview/Src/gfsview-0.4.2# ls /var/log/packages | grep gts
gts-0.7.6-x86_64-1
root@iskandhar:/home/alex/Gfsview/Src/gfsview-0.4.2# ls /var/log/packages | grep gtkglext
gtkglext-1.2.0-x86_64-2_SBo
root@iskandhar:/home/alex/Gfsview/Src/gfsview-0.4.2#
gts libs are in PATH:

Quote:

root@iskandhar:/home/alex/Gfsview/Src/gfsview-0.4.2# ls /usr/local/lib | grep gts
libgts-0.7.so.5
libgts-0.7.so.5.0.1
libgts.a
libgts.la
libgts.so
root@iskandhar:/home/alex/Gfsview/Src/gfsview-0.4.2#
The application configures correctly ( finds whateve it need to build ) :

Quote:

root@iskandhar:/home/alex/Gfsview/Src/gfsview-0.4.2# ./configure
checking for a BSD-compatible install... /bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for library containing strerror... none required
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for ranlib... ranlib
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for OSMesaMakeCurrent in -lOSMesa... no
checking for OSMesaCreateContext in -lOSMesa... no
configure: WARNING: OSMesa not found. Batch mode will not be available.
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK... yes
checking for GERRIS2D... yes
checking for GERRIS3D... yes
checking for GERRIS2D3... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating view/Makefile
config.status: creating gl/Makefile
config.status: creating batch/Makefile
config.status: creating config.h
config.status: executing depfiles commands
root@iskandhar:/home/alex/Gfsview/Src/gfsview-0.4.2#

Yet it fails to build :

Quote:

root@iskandhar:/home/alex/Gfsview/Src/gfsview-0.4.2# make
make all-recursive
make[1]: Entering directory `/home/alex/Gfsview/Src/gfsview-0.4.2'
Making all in gl
make[2]: Entering directory `/home/alex/Gfsview/Src/gfsview-0.4.2/gl'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DPACKAGE_DATA_DIR=\""/usr/local/share/gfsview"\" -DPACKAGE_LOCALE_DIR=\""/usr/local//locale"\" -DG_LOG_DOMAIN=\"GfsGl\" -DFTT_2D=1 -pthread -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -O2 -Wall -Werror-implicit-function-declaration -Wmissing-prototypes -Wmissing-declarations -pipe -MT libgfsgl2D_a-gfsgl.o -MD -MP -MF ".deps/libgfsgl2D_a-gfsgl.Tpo" -c -o libgfsgl2D_a-gfsgl.o `test -f 'gfsgl.c' || echo './'`gfsgl.c; \
then mv -f ".deps/libgfsgl2D_a-gfsgl.Tpo" ".deps/libgfsgl2D_a-gfsgl.Po"; else rm -f ".deps/libgfsgl2D_a-gfsgl.Tpo"; exit 1; fi
In file included from gfsgl.c:29:
gfsgl2D.h: In function 'gl_solid_relevant':
gfsgl2D.h:162: error: 'GfsSimulation' has no member named 'surface'
gfsgl.c: In function 'gl2D_pick':
gfsgl.c:954: error: too few arguments to function 'gfs_domain_locate'
gfsgl.c: In function 'gl_fractions_relevant':
gfsgl.c:1043: error: 'GfsSimulation' has no member named 'surface'
gfsgl.c: In function 'gl_location_draw':
gfsgl.c:2811: error: too few arguments to function 'gfs_domain_locate'
make[2]: *** [libgfsgl2D_a-gfsgl.o] Error 1
make[2]: Leaving directory `/home/alex/Gfsview/Src/gfsview-0.4.2/gl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/alex/Gfsview/Src/gfsview-0.4.2'
make: *** [all] Error 2
root@iskandhar:/home/alex/Gfsview/Src/gfsview-0.4.2#
Several other packages requiring gts, like GMSH, have been built successfully in this ssyste, so i guess it is not a matter of borked configuration...

Can someone give me a hint on that am I missing here...?


BRGDS

Alex

knudfl 01-25-2010 10:33 AM

Well, you've just got yourself a four year old buggy
gfsview-0.4.2 .

This one, gfsview-snapshot-091219, as you can see :
a month old ...

http://gfs.sourceforge.net/wiki/index.php/Download
> >
http://gfs.sf.net/gfsview-snapshot.tar.gz
> > gfsview-snapshot.tar.gz → gfsview-snapshot-091219/

.. No errors .. the command : gfsview2D3 opens a nice GUI.
( Choices are : gfsview gfsview2D gfsview2D3 gfsview3D ).
.....

Alexvader 01-25-2010 10:55 AM

Hi Knudfl

Thks, :)

I will try this...

BRGDS

Alex


All times are GMT -5. The time now is 01:51 PM.