On Sat, Sep 22, 2012 at 11:56 AM, Victor Bombi <son...@telefonica.net> wrote:
> This is command line with arguments to cmake and cmake response just for
> standard gcc_lib (not gcc_libmin custom setting)
> ///////////////////////////////////////////////
> C:\LUA\wxlua-sources\buid_min_static_unicode2.8>"C:\Program Files\CMake
> 2.8\bin\cmake"  -G"MinGW Makefiles" -DCMAKE_BUILD_TYP
> E=MinSizeRel  -DwxWidgets_ROOT_DIR="C:/wxWidgets-2.8.12/"  
> -DwxWidgets_CONFIGURATION=mswu
>   -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
> -- The C compiler identification is GNU 4.7.0
...
> *****************************************************************************
> --
> -- * Note: wxWidgets libs; Removing 'propgrid' lib from wxWidgets_COMPONENTS
> since it didn't exit in wx < 2.9

You should remove propgrid from your list of wxWidget_COMPONENTS...

> -- * Using these wxWidgets components:
> xrc;xml;net;media;richtext;aui;stc;html;adv;core;base
> -- Could NOT find wxWidgets (missing:  wxWidgets_FOUND)
> -- *
> CMake Warning at build/CMakewxAppLib.cmake:585 (message):
>   * WARNING: Could not find wxWidgets! Please see help above.
> Call Stack (most recent call first):
>   CMakeLists.txt:37 (FIND_WXWIDGETS)
>
> -- * - wxWidgets_VERSION           = 2.8.12 = 2.8.12
> -- * - wxWidgets_COMPONENTS        =
> xrc;xml;net;media;richtext;aui;stc;html;adv;core;base
> -- * - wxWidgets_INCLUDE_DIRS      =
> C:/wxWidgets-2.8.12/lib/gcc_lib/mswu;C:/wxWidgets-2.8.12/include
> -- * - wxWidgets_LIBRARY_DIRS      =
> -- * - wxWidgets_LIBRARIES         =
> C:/wxWidgets-2.8.12/lib/gcc_lib/libwxmsw28u_xrc.a;C:/wxWidgets-2.8.12/lib/gcc_lib/libwxb
> ase28u_xml.a;C:/wxWidgets-2.8.12/lib/gcc_lib/libwxbase28u_net.a;C:/wxWidgets-2.8.12/lib/gcc_lib/libwxmsw28u_media.a;C:/wxWidg
> ets-2.8.12/lib/gcc_lib/libwxmsw28u_richtext.a;C:/wxWidgets-2.8.12/lib/gcc_lib/libwxmsw28u_aui.a;C:/wxWidgets-2.8.12/lib/gcc_l
> ib/libwxmsw28u_html.a;C:/wxWidgets-2.8.12/lib/gcc_lib/libwxmsw28u_adv.a;C:/wxWidgets-2.8.12/lib/gcc_lib/libwxmsw28u_core.a;C:
> /wxWidgets-2.8.12/lib/gcc_lib/libwxbase28u.a;C:/wxWidgets-2.8.12/lib/gcc_lib/libwxpng.a;C:/wxWidgets-2.8.12/lib/gcc_lib/libwx
> tiff.a;C:/wxWidgets-2.8.12/lib/gcc_lib/libwxjpeg.a;C:/wxWidgets-2.8.12/lib/gcc_lib/libwxzlib.a;C:/wxWidgets-2.8.12/lib/gcc_li
> b/libwxregexu.a;C:/wxWidgets-2.8.12/lib/gcc_lib/libwxexpat.a;winmm;comctl32;rpcrt4;wsock32
> -- * - wxWidgets_CXX_FLAGS         =
> -- * - wxWidgets_DEFINITIONS       = UNICODE;_UNICODE
> -- * - wxWidgets_DEFINITIONS_DEBUG = _DEBUG;__WXDEBUG__
> -- * - wxWidgets_PORTNAME          =
> -- * - wxWidgets_UNIVNAME          =
> -- * - wxWidgets_UNICODEFLAG       =
> -- * - wxWidgets_DEBUGFLAG         =
>  WARNING: Unable to find requested wxWidgets component : stc
> -- *
> wxWidgets requested but not found.

This is the error. You ask to link to the stc library in
wxWidget_COMPONENTS, but you never built it so it doesn't exist. See
below.

> -- * WARNING: Specified wxLuaBinding lib 'gl' in variable
> wxLuaBind_COMPONENTS is missing from wxWidgets_COMPONENTS so it wil
> l not be compiled.

Again, you should fix this by not specifying gl in the
wxLuaBind_COMPONENTS. I generously only make this a warning, but it
really should be an error to ask wxLua to link to a lib that doesn't
exist.

> CMake Warning at build/CMakeFunctions.txt:501 (MESSAGE):
>   Missing directory in
>   ADD_SUBDIRECTORY(C:/LUA/wxlua-sources/wxLua/modules/wxstedit)
> Call Stack (most recent call first):
>   CMakeLists.txt:248 (add_subdirectory)

Why don't you have this directory? Did you delete it or are you not
allowing svn to checkout externals?

> C:\LUA\wxlua-sources\buid_min_static_unicode2.8>mingw32-make
...
> C:\MinGW\bin\g++.exe   -DwxLUA_USEBINDING_WXGL=0 -DwxL
> UA_USEBINDING_WXSTC=1 -DwxLUA_USEBINDING_WXXRC=1 
> -DwxLUA_USEBINDING_WXRICHTEXT=1
>  -DwxLUA_USEBINDING_WXHTML=1 -DwxLUA_USEBINDI
> NG_WXMEDIA=1 -DwxLUA_USEBINDING_WXAUI=1 -DwxLUA_USEBINDING_WXADV=1 
> -DwxLUA_USEBINDING_WXCORE=1
>  -DwxLUA_USEBINDING_WXXML=1 -Dw
> xLUA_USEBINDING_WXNET=1 -DwxLUA_USEBINDING_WXBASE=1 -Os -DNDEBUG
> @CMakeFiles/wxLuaLib.dir/includes_CXX.rsp   -o CMakeFiles\wx
> LuaLib.dir\dummy.cpp.obj -c
> C:\LUA\wxlua-sources\wxLua\modules\wxlua\dummy.cpp
> C:\LUA\wxlua-sources\wxLua\modules\wxlua\dummy.cpp:20:23: error fatal:
> wx/wxprec.h: No such file or directory

While the wxWidgets_INCLUDE_DIRS is correct, CMake's wxWidgets finding
code set wxWidgets_FOUND=FALSE due to the missing 'stc' library so it
doesn't add any of the appropriate compiler flags.

> this is directory gcc_lib
> /////////////////////////////////////////////////////
...
> 21/09/2012  16:14         2.049.590 libwxbase28u.a
> 21/09/2012  16:14           313.088 libwxbase28u_net.a

Thanks for the list, I was thinking that perhaps the names of the
wxWidgets libs were somehow named differently and that's why they
couldn't be found.

I recommend building the wxWidgets 'stc' library, rather than removing
'stc' from the list of wxWidgets_COMPONENTS since I've never tried
building wxLua without it.

Regards,
    John

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to