1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Installation MacOS

From netgen-mesher

(Difference between revisions)
Jump to: navigation, search
 
Line 21: Line 21:
to install netgen/ngsolve, make sure you have at least gcc 4.2 installed (current Intel works as well)
to install netgen/ngsolve, make sure you have at least gcc 4.2 installed (current Intel works as well)
-
add -DMAC_TCL to config (how?) or uncomment l.60 (the matherr stuff) in ng/ngappinit.cpp
+
 
 +
Netgen 4.9.10 and earlier: uncomment l.60 (the matherr stuff) in ng/ngappinit.cpp
: cd ../netgen-x.y.z
: cd ../netgen-x.y.z
: ./configure --prefix="${HOME}" --with-tcl="${HOME}/Library/Frameworks/Tcl.framework" --with-tk="${HOME}/Library/Frameworks/Tk.framework" --with-togl="/${HOME}/lib/Togl1.7"
: ./configure --prefix="${HOME}" --with-tcl="${HOME}/Library/Frameworks/Tcl.framework" --with-tk="${HOME}/Library/Frameworks/Tk.framework" --with-togl="/${HOME}/lib/Togl1.7"

Current revision as of 19:23, 8 September 2009

In principle, the automake install as explained in the Linux/Unix installation should work.

It is a bit tricky to install Tcl/Tk/Tix/Togl.

The following is feedback we got from a Mac user:

One possibility is a local installation:

assuming you have extracted all required sources (tcl, tk, togl, tix)...

make -C tcl8.4.19/macosx install PREFIX="${HOME}" INSTALL_PATH="${HOME}/Library/Frameworks"
make -C tk8.4.19/macosx install PREFIX="${HOME}" INSTALL_PATH="${HOME}/Library/Frameworks"
cd Togl-1.7
./configure --prefix="${HOME}"
make install
cd ../Tix8.4.3
./configure --prefix="${HOME}"
make install


to install netgen/ngsolve, make sure you have at least gcc 4.2 installed (current Intel works as well)

Netgen 4.9.10 and earlier: uncomment l.60 (the matherr stuff) in ng/ngappinit.cpp

cd ../netgen-x.y.z
./configure --prefix="${HOME}" --with-tcl="${HOME}/Library/Frameworks/Tcl.framework" --with-tk="${HOME}/Library/Frameworks/Tk.framework" --with-togl="/${HOME}/lib/Togl1.7"
make install

for installing NGSolve: for some reason I had to switch to gcc 4.3 before installing ngsolve

cd ../ngsolve-x.y.z
./configure --prefix="${HOME}" --with-tcl="${HOME}/Library/Frameworks/Tcl.framework" --with-tk="${HOME}/Library/Frameworks/Tk.framework"
make install

add those lines to your bash profile:

export DYLD_LIBRARY_PATH=${HOME}/lib/Togl1.7:$DYLD_LIBRARY_PATH
export NETGENDIR=${HOME}/bin
export TCLLIBPATH=${HOME}/lib
Personal tools