On Fri, Sep 21, 2012 at 8:01 AM, Victor Bombi <son...@telefonica.net> wrote: > >> To keep it simple I would like to make a compilation as the one provided >> in >> wxLua sourceforge wxLua-2.8.12.2-MSW-Unicode >> >> I did it with wxWidgets 2.9.4 but libwx.dll is about 14000 kb instead of >> 5000Kb. I get some asserts running my scripts >> Did you use the same wxWidgets or another version?
wxWidgets 2.9.x is larger than 2.8.12 since includes some debugging checks in release mode now (this is a good thing) and secondly, I compiled with Visual Studio with generates *significantly* smaller libs/exes than GCC. > I have found in the module info that it is 2.8.12 so I have tryed to compile > with this. > > First difference: > I had to run Cmake twice to get the libraries detected althought it was set This is normal and documented in the install.html file. This avoids making loops in CMake for finding wxWidgets and is just as well since after wxWidgets is found any other change requires a single configure. I'm curious why you don't use the cmake-gui program? In fact, after running cmake once you get a cmake-gui.bat file in your build dir that you can double-click on to run it with everything set correctly. > with: > "C:\Program Files\CMake 2.8\bin\cmake" -G"MinGW > Makefiles" -DCMAKE_BUILD_TYPE=MinSizeRel > -DwxWidgets_ROOT_DIR=C:/wxWidgets-2.8.12 > -DwxWidgets_LIB_DIR=C:/wxWidgets-2.8.12/lib/gcc_libmin > -DwxWidgets_CONFIGURATION=mswu > -D > wxWidgets_VERSION=2.8.x -DBUILD_VERBOSELY=TRUE -DBUILD_SHARED_LIBS=FALSE > -DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE > -DwxLua_LUA_LIBRARY=C:/LUA/luabuildmingw/lua51.dll > -DwxLua_LUA_INCLUDE_DIR=C:/LUA/lua-5.1.5/include > ../wxlua > > Second difference: > The include path is not properly set. I get: There's probably more wrong than that. The wxWidgets detection works by finding libs that match known lib names, I'm guessing these gcc_libmin are different in some way. Can you please post the names of ALL the libs in "wxWidgets/lib/gcc_libmin" and the full path to "wxWidgets/lib/gcc_libmin/wx/???/???/setup.h" Thanks, John ------------------------------------------------------------------------------ How fast is your code? 3 out of 4 devs don\\\'t know how their code performs in production. Find out how slow your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219672;13503038;z? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users