Netgen Installation Problem on Linux

Taoran
2012-03-18
2013-05-27
  • Taoran

    Taoran - 2012-03-18

    Hi,
    I am trying to install Netgen on a Linux Redhat OS. I have tcl 8.4, tk8.4, tix installed before I configured the netgen. The configuration succeeded but the compilation fails in the directory libsrc/visualization.

    make: Entering directory `/home/rhome/lit5/netgen-4.9.13/libsrc/visualization'
    g++ -DHAVE_CONFIG_H -I. -I../..   -I../../libsrc/include  -DOPENGL -DTOGL_X11     -I"/home/rhome/lit5/tcl8.4.19/generic"  -DOPENGL -g -O2 -MT meshdoc.o -MD -MP -MF .deps/meshdoc.Tpo -c -o meshdoc.o meshdoc.cpp
    In file included from ./visual.hpp:20,
                     from meshdoc.cpp:10:
    ./../include/incvis.hpp:5:16: error: tk.h: No such file or directory
    make: ***  Error 1
    make: Leaving directory `/home/rhome/lit5/netgen-4.9.13/libsrc/visualization'
    make: ***  Error 1
    make: Leaving directory `/home/rhome/lit5/netgen-4.9.13/libsrc'
    make: ***  Error 1
    make: Leaving directory `/home/rhome/lit5/netgen-4.9.13'

    The tk.h file in the directory /home/rhome/lit5/tk/include.

    I came across a thread which has similar problem: https://sourceforge.net/projects/netgen-mesher/forums/forum/905307/topic/4589920. However, I changed the two makefile.am as suggested but it doesn't seem to solve the problem.

    Thanks for everyone's help.

    Taoran

     
  • Nitish Anand

    Nitish Anand - 2017-04-12

    Hi,

    I was able to make netgen-6.0-beta (with opencascade) work in my Ubuntu(16.04 LTS) system. I hope it is helpful for future users.

    Download: https://sourceforge.net/projects/togl/files/Togl/1.7/
    tar xvfzp Togl-1.7.tar.gz
    cd Togl-1.7/
    ./configure
    make
    make install
    echo "/usr/lib/Togl1.7/" > /etc/ld.so.conf.d/libTogl.conf
    ldconfig
    cd ..

    Download: https://osdn.net/projects/sfnet_netgen-mesher/downloads/netgen-mesher/6.0/netgen-6.0-beta.tar.gz/

    tar xvfzp netgen-6.0-beta.tar.gz
    cd netgen-6.0-beta/
    ./configure --with-togl=/usr/lib/Togl1.7/ --with-occ
    make -j 3
    make install

    export NETGENDIR="/opt/netgen/bin"
    netgen

    In case, it is unable to find the location to the tolg library, do the following...

    find ~ -name libTogl1.7.so
    <output>
    LD_LIBRARY_PATH="<output>"

    netgen

    Netgen should work like a piece of cake now..

    Cheers !!!

     

Log in to post a comment.