[Greenengine-developer] Problems
Status: Planning
Brought to you by:
jeromiya
|
From: Nado . <cbr...@gm...> - 2007-04-13 00:04:58
|
Ive been running into a lot of problems getting cppunit up and running under windows. First off, it seems that there is no way to fully compile the libraries, unless you have the paid version of VS, but using MSYS and mingw it will compile the "important" parts (we may be able to use cygwin to compile it fully, but id rather not have another program to install if we can avoid it). Next up, we may want to change the makefile a little, right now you have it set up as CFLAGS = -Wall -I. -I/usr/local/include LDFLAGS = -L/usr/local/lib but on windows it will need to be something like CFLAGS = -Wall -I. -IC:\Qt\cppunit-1.12.0\include-IC:\Boost\include\boost-1_33_1 LDFLAGS = -LC:\Qt\cppunit-1.12.0\lib -LC:\Boost\lib so we may want something to support those changes easily (although it isnt of the utmost importance since people can change it manually, but that is a pain) And now to the fun part... when I run make I get this error (it compiles fine, this is the linking phase): g++ -o testrunner -LC:\Qt\cppunit-1.12.0\lib -LC:\Boost\lib util/utest_Error.o engine/utest_Variable.o engine/utest_VariableTableInstance.o main/testmain.o engine/VariableTableTemplate.o engine/utest_VariableTableTemplate.o engine/utest_KeyNameTable.o engine/utest_TemplateTable.o engine/utest_InstancePool.o -lcppunit Info: resolving vtable for CppUnit::TestSuiteBuilderContextBaseby linking to __imp___ZTVN7CppUnit27TestSuiteBuilderContextBaseE (auto-import)util/utest_Error.o (.text$_ZN7CppUnit27TestSuiteBuilderContextBaseC2ERKS0_[CppUnit::TestSuiteBuilderContextBase::TestSuiteBuilderContextBase(CppUnit::TestSuiteBuilderContextBaseconst&)]+0xb) :utest_Error.cpp:variable 'vtable for CppUnit::TestSuiteBuilderContextBase' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details. collect2: ld returned 1 exit status mingw32-make: *** [testrunner] Error 1 of which the important part is "variable 'vtable for CppUnit::TestSuiteBuilderContextBase' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details." and this link ( http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gnu-linker/invocation.html#OPTIONS) gives some clues as to what is wrong, but how the heck am I supposed to get around this??? there are only a couple options I can think of: 1) its screwed up since I didnt compile cppunit fully 2) its screwed up since I used mingw to compile and for some reason it didnt think it was on windows (thus causing an error that only occurs on windows) I have no idea what to do next...i guess ill install cygwin next and see if that helps, but I was kinda hoping you guys could throw some ideas my way, or maybe do a little research and have more luck then me finding some stuff |