LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 01-25-2010, 09:19 AM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
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
 
Old 01-25-2010, 11:33 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
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 ).
.....

Last edited by knudfl; 01-25-2010 at 11:37 AM.
 
1 members found this post helpful.
Old 01-25-2010, 11:55 AM   #3
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi Knudfl

Thks,

I will try this...

BRGDS

Alex
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Building Kid3 in Slackware64-Current ack_iix Slackware 1 08-02-2009 05:12 AM
building kdebluetooth from Slackbuilds on Slackware64-current gtludwig Slackware 5 06-27-2009 06:59 PM
[SOLVED] Building wine on Slackware64 JanZamoyski Slackware 22 06-13-2009 04:05 AM
Package building problem Thilips Red Hat 1 02-08-2007 10:57 AM
package building dockpunk Slackware 10 03-23-2005 10:46 AM


All times are GMT -5. The time now is 08:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration