From: Victor B. <so...@te...> - 2012-09-16 15:02:52
|
Hello, I am triying to compile wxlua with mingw. wxWidgets 2.9.4 was compiled with mingw : mingw32-make.exe -f makefile.gcc SHARED=0 UNICODE=0 BUILD=release and mingw32-make.exe -f makefile.gcc SHARED=0 UNICODE=1 BUILD=release compiled test named aui with unicode=0 and unicode=1 without problems Then Cmake with "C:\Program Files\CMake 2.8\bin\cmake" -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release -DwxWidgets_ROOT_DIR=C:/LUA/wxWidgets-2.9.4 -DwxWidgets_LIB_DIR=C:/LUA/wxWidgets-2.9.4/lib/gcc_lib -DwxWidgets_CONFIGURATION=msw -D wxWidgets_VERSION=2.9.x -DBUILD_VERBOSELY=TRUE -DBUILD_SHARED_LIBS=FALSE -DCMAKE_C_FLAGS=-shared-libgcc -DCMAKE_CXX_FLAGS=-shared-libgcc ../wxlua stops in linking CMakeFiles\wxLuaModule.dir/objects.a(luamodule.cpp.obj):luamodule.cpp:(.text+0x29d): undefined reference to `wxFormatString:: AsWChar()' ... the same Cmake but with -DwxWidgets_CONFIGURATION=mswu stops in: Creating library file: ..\..\lib\libwxlua_bind-wx29mswu-2.8.12.dll.a C:\LUA\wxWidgets-2.9.4\lib\gcc_lib\libwxmsw29u_core.a(corelib_gdicmn.o):gdicmn.cpp:(.text+0x0): multiple definition of `wxGDI Object::GetClassInfo() const' ..\..\lib\libwxlua-wx29mswu-2.8.12.dll.a(d018392.o):(.text+0x0): first defined here Any help would be appreciated. Best Regards Victor Bombi ... |