On Sun, Sep 16, 2012 at 11:02 AM, Victor Bombi <[email protected]> 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()'
> ...
>
> 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 do not use Mingw often, can you check that when you build wxLua in
Ansi and Unicode that there is a "-I" include directive to the correct
wxWidgets  #include setup dir?
It include path should be in the wxWidgets build dir where the libs
are, something like this
-I /path/to/wxWidgets/lib/gcc_lib/wx/include/[mingw-2.8-???]/setup.h

You can look though the CMakeCache.txt file in the root wxLua build dir.

I'm wondering if somehow the two builds are swapped since you have
both of them and I've only build the Unicode version.

To be sure, you definitely can NEVER mix Ansi/Unicode wxLua/wxWidgets
builds, they both must be the same.

Thanks,
    John

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to