Map2dif
by abc · in Technical Issues · 08/23/2003 (2:05 am) · 7 replies
Anyone knows how to compile and link map2dif in Linux?
I did, cd tools; make
It compiled good, then it started to try to link it then I got alot of undefined references:
--> Linking map2dif_DEBUG.bin
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXProcessControl.obj)(.text+0x10c): In function 'Cleanup(bool)':
platformX86UNIX/x86UNIXProcessControl.cc:78: undefined reference to 'OpenGLShutdown'
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXWindow.obj)(.text+0x541): In function 'ProcessSYSWMEvent':
platformX86UNIX/x86UNIXWindow.cc:206: undefined reference to 'NotifySelectionEvent(_XEvent&)'
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXWindow.obj)(.text+0x9cc): In function 'Platform::AlertOK(char const*, char const*)':
platformX86UNIX/x86UNIXWindow.cc:429: undefined reference to 'XMessageBox::XMessageBox[in-charge](_XDisplay*)'
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXWindow.obj)(.text+0x9e8):platformX86UNIX/x86UNIXWindow.cc:430: undefined reference to 'XMessageBox::alertOK(char const*, char const*)'
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXWindow.obj)(.text+0xa0f):platformX86UNIX/x86UNIXWindow.cc:432: undefined reference to 'XMessageBox::~XMessageBox [in-charge]()'
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXWindow.obj)(.text+0xa25):platformX86UNIX/x86UNIXWindow.cc:432: undefined reference to 'XMessageBox::~XMessageBox [in-charge]()'
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXWindow.obj)(.text+0xb02): In function 'Platform::AlertOKCancel(char const*, char const*)':
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXWindow.obj)(.text+0x1255):platformX86UNIX/x86UNIXWindow.cc:697: undefined reference to 'OpenGLDevice::create()'
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXWindow.obj)(.text+0x139b): In function 'Platform::initWindow(Point2I const&, char const*)':
platformX86UNIX/x86UNIXWindow.cc:739: undefined reference to 'InitOpenGL()'
collect2: ld returned 1 exit status
make: *** [map2dif_DEBUG.bin] Error 1
Oh, forgot to tell... the code is from the HEAD branch, also had to delete some messages from it because this post got > 4096 chars.
I did, cd tools; make
It compiled good, then it started to try to link it then I got alot of undefined references:
--> Linking map2dif_DEBUG.bin
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXProcessControl.obj)(.text+0x10c): In function 'Cleanup(bool)':
platformX86UNIX/x86UNIXProcessControl.cc:78: undefined reference to 'OpenGLShutdown'
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXWindow.obj)(.text+0x541): In function 'ProcessSYSWMEvent':
platformX86UNIX/x86UNIXWindow.cc:206: undefined reference to 'NotifySelectionEvent(_XEvent&)'
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXWindow.obj)(.text+0x9cc): In function 'Platform::AlertOK(char const*, char const*)':
platformX86UNIX/x86UNIXWindow.cc:429: undefined reference to 'XMessageBox::XMessageBox[in-charge](_XDisplay*)'
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXWindow.obj)(.text+0x9e8):platformX86UNIX/x86UNIXWindow.cc:430: undefined reference to 'XMessageBox::alertOK(char const*, char const*)'
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXWindow.obj)(.text+0xa0f):platformX86UNIX/x86UNIXWindow.cc:432: undefined reference to 'XMessageBox::~XMessageBox [in-charge]()'
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXWindow.obj)(.text+0xa25):platformX86UNIX/x86UNIXWindow.cc:432: undefined reference to 'XMessageBox::~XMessageBox [in-charge]()'
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXWindow.obj)(.text+0xb02): In function 'Platform::AlertOKCancel(char const*, char const*)':
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXWindow.obj)(.text+0x1255):platformX86UNIX/x86UNIXWindow.cc:697: undefined reference to 'OpenGLDevice::create()'
../engine/out.GCC3.DEBUG/engine_DEBUG.a(x86UNIXWindow.obj)(.text+0x139b): In function 'Platform::initWindow(Point2I const&, char const*)':
platformX86UNIX/x86UNIXWindow.cc:739: undefined reference to 'InitOpenGL()'
collect2: ld returned 1 exit status
make: *** [map2dif_DEBUG.bin] Error 1
Oh, forgot to tell... the code is from the HEAD branch, also had to delete some messages from it because this post got > 4096 chars.
About the author
#2
08/23/2003 (5:58 am)
Tried that now, but I get the same errors.
#3
i used the following to set it up prior to doing make tools:
cd /opt/torque_head
make clean
make -f mk/configure.mk OS=LINUX COMPILER=GCC3 BUILD=RELEASE
make
make tools
08/23/2003 (9:08 am)
I just tried with a checkout of HEAD from earlier this week, using gcc 3.3 on Mandrake 9.1 in both debug and release and if works here. i used the following to set it up prior to doing make tools:
cd /opt/torque_head
make clean
make -f mk/configure.mk OS=LINUX COMPILER=GCC3 BUILD=RELEASE
make
make tools
#4
08/24/2003 (5:34 am)
Hmmm... I just saw that I was using the New_Demo_Branch maybe the tools are broken there?
#5
08/24/2003 (12:04 pm)
The new demo branch is very definitely in a broken state right now and will remain so until the new demo is finished. Don't use it unless you know what you're doing.
#6
I'm gonna test the HEAD branch and see if the problem is still there, but first I have to catch some sleep... I'll do it tomorrow.
08/24/2003 (3:16 pm)
Well... I don't "use it", I just play around with it :)I'm gonna test the HEAD branch and see if the problem is still there, but first I have to catch some sleep... I'll do it tomorrow.
#7
I use Debian SID.
08/25/2003 (4:45 am)
Okay, now I have tested the HEAD branch with both DEBUG and RELEASE mode. I still have the problem.I use Debian SID.
Torque Owner Benoit Touchette
make tools