On Wed, Sep 5, 2012 at 3:20 PM, klaas.holwerda <[email protected]> wrote:
> Hi John,
>
> I manged to compile on Redhat6, and get the following libraries:
>
>> ls *wxlua*
> libwxlua_gtk2u_wxbindbase-2.9.a libwxlua_gtk2u_wxbindxml-2.9.a
> libwxlua_gtk2u_wxluadebug-2.9.a
> libwxlua_gtk2u_wxbindcore-2.9.a libwxlua_gtk2u_wxlua-2.9.a
> libwxlua_gtk2u_wxluasocket-2.9.a
>
>
> Now i get errors on this macro:
> WXLUA_IMPLEMENT_BIND_STD
>
> CMakeFiles/sample_editor_wires.dir/wires.cpp.o: In function
> `MyApp::OnInit()':
> /thales/thales_localdata/db348/soft/trunk/wxArt2D/packages/wxart2d/samples/editor/wires/wires.cpp:1519:
> undefined reference to `wxLuaBinding_wxadv_init()'
> /thales/thales_localdata/db348/soft/trunk/wxArt2D/packages/wxart2d/samples/editor/wires/wires.cpp:1519:
> undefined reference to `wxLuaBinding_wxnet_init()'
>
> Replace it by:
>
> WXLUA_IMPLEMENT_BIND_WXLUA
> WXLUA_IMPLEMENT_BIND_WXBASE
> WXLUA_IMPLEMENT_BIND_WXCORE
>
> it compiles fine.
>
> In #include "wxbind/include/wxbinddefs.h" i get the idea both adv and net
> are enabled.
> So i don't know what i am missing.
>
> You have an idea?
There's a few things that might be happening.
You can set this variable in CMake to set the binding libraries that
will be compiled :
wxLuaBind_COMPONENTS =
gl;stc;xrc;richtext;html;media;aui;adv;core;xml;net;base
you must have only these ?
wxLuaBind_COMPONENTS = core;xml;base
If you specify more wxLua bindings libs than you have
wxWidgets_COMPONENTS the list will be trimmed down to match the
wxWidgets_COMPONENTS and a warning given.
You should also see these in your CMakeCache.txt file in the root of
the build dir:
-DwxLUA_USEBINDING_WXADV=1;-DwxLUA_USEBINDING_WXCORE=1;-DwxLUA_USEBI... etc.
I see now that I did not export the defines above.
Update SVN and if you import/include the build/wxLua-config.cmake file
you will now have a SETUP_wxLua() macro to call or you can use the
wxLua_CXX_DEFINITIONS variable yourself by setting the CXX_FLAGS for
your target. See the bottom of that file for more info.
Regards,
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