I have installed netgen with the GUI. When I try and run ./netgen, I get the following:
NETGEN-5.3.1
Developed by Joachim Schoeberl at
2010-xxxx Vienna University of Technology
2006-2010 RWTH Aachen University
1996-2006 Johannes Kepler University Linz
optfile ./ng.opt does not exist - using default values
no OpenGL
Error in Tcl-Script:
result = invalid command name "Ng_STLDoctor"
Make sure to set environment variable NETGENDIR to directory containing ng.tcl
I have set NETGENDIR to the directory containing ng.tcl, but the error persists.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have installed netgen with the GUI. When I try and run ./netgen, I get the following:
I have set NETGENDIR to the directory containing ng.tcl, but the error persists.
Note: As I don't use STL files, a quick workaround I found was to open ng.stl and delete the Ng_STLDoctor line.
P.S. For posterity, I'll outline the steps I took for anyone wanting to install netgen on CentOS 6.6
1) Download tcl8.5, tk8.5, and togl1.7 from these directories
https://www.tcl.tk/
https://sourceforge.net/projects/togl/files/Togl/1.7/
2) Untar all three.
3) ./configure and make all three (You do not need to make install)
4) Download netgen 5.3.1 and untar it.
5) cd into the top directory and enter the command ./configure --prefix=path/where/you/want/netgen --with-togl=path/to/Togl1.7
6) make
7) If an error regrarding lTogl is thrown, cd into ng, open the makefile, identify the line
and replace -lTogl with -lTogl1.7
Also, locate the line "TOGLLIBDIR=/path/to/Togl$" and delete the $ sign.
rerun make.
Done! (Run make install if you like too)
Last edit: Thomas 2016-02-08