Linux (Bullx Linux server) installation issue with Netgen 5.1

Sam
2014-04-27
2014-04-27
  • Sam
    Sam
    2014-04-27

    Hi guys

    I was wondering if anyone can help with this. I have all of the relevant add-ons installed – Tcl/Tk/Togl etc.

    However when running make I get the error shown below. This is despite passing the correct location of Togl in the configure command. Any ideas??? It is almost as if it cannot find the Togl.h file but I have ensured the correct path is provided within the Makefile. I have also tried passing the location via LDFLAGS/CXXFLAGS:

    ./configure --prefix=$HOME CXXFLAGS="-I/home/spxsl2/include" LDFLAGS="-L/home/spxsl2/lib"

    S

    g++ -DHAVE_CONFIG_H -I. -I.. -I/home/spxsl2/include -I../libsrc/include -I../libsrc/interface -DOPENGL -DTOGL_X11 -I"/home/spxsl2/include" -g -O2 -fopenmp -MT ngpkg.o -MD -MP -MF .deps/ngpkg.Tpo -c -o ngpkg.o ngpkg.cpp
    In file included from /home/spxsl2/include/togl.h:16,
    from ngpkg.cpp:28:
    /home/spxsl2/include/togl_ws.h:5:1: warning: "TOGL_X11" redefined
    <command-line>: warning: this is the location of the previous definition
    mv -f .deps/ngpkg.Tpo .deps/ngpkg.Po
    /bin/sh ../libtool --tag=CXX --mode=link g++ -g -O2 -fopenmp -export-dynamic -o netgen demoview.o ngappinit.o onetcl.o parallelfunc.o ngpkg.o ../libsrc/visualization/libvisual.la ../libsrc/csg/libcsgvis.la ../libsrc/csg/libcsg.la ../libsrc/interface/libinterface.la ../libsrc/meshing/libmesh.la -L/home/spxsl2/lib/Togl1.7 -L/home/spxsl2/lib -lGLU -L/home/spxsl2/lib -ltk8.6 -L/home/spxsl2/lib -ltcl8.6 -lGL -lXmu -lpthread
    libtool: link: g++ -g -O2 -fopenmp -o .libs/netgen demoview.o ngappinit.o onetcl.o parallelfunc.o ngpkg.o -Wl,--export-dynamic ../libsrc/visualization/.libs/libvisual.a ../libsrc/csg/.libs/libcsgvis.so ../libsrc/csg/.libs/libcsg.so ../libsrc/interface/.libs/libinterface.so ../libsrc/meshing/.libs/libmesh.so -L/home/spxsl2/lib/Togl1.7 -L/home/spxsl2/lib -lGLU -ltk8.6 -ltcl8.6 -lGL -lXmu -lpthread -fopenmp -Wl,-rpath -Wl,/home/spxsl2/lib
    ngpkg.o: In function Ng_Init': /home/spxsl2/netgen-5.1/ng/ngpkg.cpp:3416: undefined reference toTogl_Init'
    /home/spxsl2/netgen-5.1/ng/ngpkg.cpp:3419: undefined reference to Togl_CreateFunc' /home/spxsl2/netgen-5.1/ng/ngpkg.cpp:3420: undefined reference toTogl_DestroyFunc'
    /home/spxsl2/netgen-5.1/ng/ngpkg.cpp:3421: undefined reference to Togl_DisplayFunc' /home/spxsl2/netgen-5.1/ng/ngpkg.cpp:3422: undefined reference toTogl_ReshapeFunc'
    /home/spxsl2/netgen-5.1/ng/ngpkg.cpp:3424: undefined reference to Togl_CreateCommand' /home/spxsl2/netgen-5.1/ng/ngpkg.cpp:3425: undefined reference toTogl_CreateCommand'
    ngpkg.o: In function netgen::Ng_VideoClip(Togl*, int, char const**)': /home/spxsl2/netgen-5.1/ng/ngpkg.cpp:2474: undefined reference toTogl_Interp'
    ngpkg.o: In function netgen::draw(Togl*)': /home/spxsl2/netgen-5.1/ng/ngpkg.cpp:1890: undefined reference toTogl_Width'
    /home/spxsl2/netgen-5.1/ng/ngpkg.cpp:1891: undefined reference to Togl_Height' /home/spxsl2/netgen-5.1/ng/ngpkg.cpp:1907: undefined reference toTogl_Interp'
    ngpkg.o: In function netgen::init(Togl*)': /home/spxsl2/netgen-5.1/ng/ngpkg.cpp:1869: undefined reference toTogl_LoadBitmapFont'
    /home/spxsl2/netgen-5.1/ng/ngpkg.cpp:1875: undefined reference to Togl_Interp' ngpkg.o: In functionnetgen::Ng_SnapShot(Togl, int, char const)':
    /home/spxsl2/netgen-5.1/ng/ngpkg.cpp:2088: undefined reference to Togl_Width' /home/spxsl2/netgen-5.1/ng/ngpkg.cpp:2090: undefined reference toTogl_Height'
    /home/spxsl2/netgen-5.1/ng/ngpkg.cpp:2115: undefined reference to Togl_Interp' ngpkg.o: In functionnetgen::draw(Togl
    )':
    /home/spxsl2/netgen-5.1/ng/ngpkg.cpp:1941: undefined reference to Togl_SwapBuffers' collect2: ld returned 1 exit status make[2]: *** [netgen] Error 1 make[2]: Leaving directory/home/spxsl2/netgen-5.1/ng'
    make[1]: [all-recursive] Error 1
    make[1]: Leaving directory `/home/spxsl2/netgen-5.1'
    make:
    [all] Error 2