From: Paul K <pau...@ya...> - 2012-08-09 00:43:03
|
Hi John, I've read through the installation/compilation instructions and am still searching for a combination of settings I need to apply to get one wx.dll produced. Here is the command I used: mingw32-make -f makefile.gcc BUILD=release UNICODE=1 SHARED=1 MONOLITHIC=1 WX_MONOLITHIC=0 WX_SHARED=0 USE_LUAMODULE=1 USE_WXBINDGL=0 LINK_DLL_FLAGS=-shared I compiled wxwidgets with SHARED=0 and MONOLITHIC=0 to genterate .a files as I expect those to be linked into wx.dll I specified SHARED=1 and MONOLITHIC=1 for wxlua. For some reason it still tries to generate all the individual DLLs, like wxlua_msw28u_wxlua.dll. Also, I get an error on linking against _gl library (mingw32/bin/ld.exe: cannot find -lwxmsw28u_gl) and I indeed don't have that library. I tried adding USE_WXBINDGL=0, but it didn't help. What parameter do I need to provide to skip gl library? Can you share the command line for mingw that should get me wx.dll or settings for vs you used to build wx.dll? Thank you. Paul. P.S. btw, until I added "LINK_DLL_FLAGS=-shared", I was getting Creating library file: ..\..\..\lib\gcc_dll\liblua5.1.a ...../libmingw32.a(main.o): In function `main': C:\MinGW\msys\1.0\src\mingwrt/../mingw/main.c:73: undefined reference to `WinMain@16' error, even though LINK_DLL_FLAGS is set at the top of the makefile: # Compiler flags to link shared library LINK_DLL_FLAGS ?= -shared P.P.S the installation instructions refer to "mingw32-make -f makefile.mingw", but there is no .mingw makefile, only .gcc one. |