Hi,

I am having some trouble building netgen-4.4-11 on Tiger (OS X 10.4). It appears
to be a problem with togl.cpp not detecting the major/minor version of Tcl/Tk
correctly and falling through to the error case in it's defines. Here is the
critical part of togl.cpp:

#if defined(X11)
#if TK_MAJOR_VERSION==4 && TK_MINOR_VERSION==0
#  include "tkInt4.0.h"
#  define NO_TK_CURSOR
#elif TK_MAJOR_VERSION==4 && TK_MINOR_VERSION==1
#  include "tkInt4.1.h" 
#elif TK_MAJOR_VERSION==4 && TK_MINOR_VERSION==2
#  include "tkInt4.2.h"
...(bunch of other versions)
#else
   Sorry, you will have to edit togl.c to include the right tkInt.h file
#endif

Here is the beginning of the error I get when building:

<snip>
g++-3.3 -c -I./libsrc/include -I/opt/OpenCASCADE5.2/ros/inc  -I./ngsolve/include
-Ilibsrc/interface -DOPENGL  -g -O2 -I/usr/X11R6/include -I/sw/include -DDARWIN
-DOPENGL -DNGSOLVE  togl/togl.cpp -o togl/togl.o
togl/togl.cpp:144: warning: ISO C++ forbids declaration of `Sorry' with no type
togl/togl.cpp:144: warning: ISO C++ forbids declaration of `you' with no type
togl/togl.cpp:144: error: parse error before `have'
togl/togl.cpp:198: error: `Tk_Cursor_*Cursor' redeclared as different kind of 
   symbol
/
</snip>

So it seems like it's failing to find the TK_BLAH defines for some reason, so
togl won't build. Anyone have ideas on ways to fix this? 

Many thanks!

Bryan




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to