From: John L. <jla...@gm...> - 2012-09-17 23:46:34
|
On Sun, Sep 16, 2012 at 11:02 AM, Victor Bombi <so...@te...> wrote: > 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()' > ... You need to edit C:/LUA/wxWidgets-2.9.4/lib/gcc_lib/msw/wx/setup.h and set #define wxUSE_UNICODE 0 I see that there are some changes with wxWidgets and they are transitioning to Unicode only. I'm not sure what needs to be done to smooth this over. I suppose that wxLua's CMake could #define wxUSE_UNICODE 0 if I detect that you are not using a Unicode build. I have to think about the best way to fix this. > 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 I just built with 2.9.4 (though from SVN, so it may not be exactly the same 2.9.4) following the install.html instructions w/o a problem. Can you post this file that should be in the CMake build dir X:\blah\wxLua-CMakeBuild\modules\CMakeFiles\wxLuaBindLib.dir\link.txt Regards, John |