On Jan 8, 2008 7:45 PM, Rob Kendrick <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've been trying to build wxLua on my Linux box, and have a few
> (surmountable) problems I thought I'd share. I have no experience of
> WxWidgets at all, and absolute bare-minimum of C++. I'd like to keep it
> that way if at all possible: the application I need to write will be
> written entirely in Lua.
>
> My aim is to build a static unusual-dependancy-free binary that contains
> Lua and WxWidgets for Windows, Linux and Mac OS X, and my application
> will be a single Lua file (well, output from luac and several sources)
> that will either be executed via the usual UNIX #! magic, or shortcut
> under Windows.
>
> WxWidget-related packages that are installed are mentioned in wxdep.txt
>
> I have installed what I believe to be the build dependancies, and the
> configure script ran and completed without any unexpected issues, so I
> assumed everything was OK (output attached as wxconfigure.txt)
>
> The build fails trying to link. I have attached the output of make up
> to this point as wxmake.txt, but I will include the errors here:
>
> g++ -o ../bin/wxlua app_wxlua_lconsole.o app_wxlua_wxlua.o -L../lib
> -L/home/rjek/Desktop/wxLua/./modules/lua/lib -Wl,-rpath,../lib
> -lwxlua_gtk2_wxluasocket-2.8 -lwxlua_gtk2_wxluadebug-2.8
> -lwxlua_gtk2_wxbindstc-2.8 -lwxlua_gtk2_wxbind-2.8
> -lwxlua_gtk2_wxlua-2.8 -llua5.1 -lwx_gtk2u_stc-2.8 -pthread
> -lwx_gtk2u_xrc-2.8 -lwx_gtk2u_html-2.8 -lwx_gtk2u_adv-2.8
> -lwx_baseu_net-2.8 -lwx_baseu_xml-2.8 -lwx_gtk2u_core-2.8
> -lwx_baseu-2.8
<snip>
> Running the command again manually, except adding the following:
> -lwx_gtk2u_gl-2.8 -lwx_gtk2u_media-2.8
> results in the link succeeding. How do I tell wxLua to add these?
> Shouldn't the configure script have picked up the need for them?
>
> Also, it's not clear to me how to build a static version of this - even
> having read the relevant document on the website.
>
> Thanks for any input!
I am having the exact same problem. I emailed the list and they had some
ideas, but still it doesn't seem to work.
I found out that wx-config -libs only output the default libs and that list
doesn't include the media and gl library. It seems the wx-config should
actually have wx-config --libs default,media,gl. I don't know how config
determines what libraries to use, but it seems to be getting it wrong.
--
Regards,
Ryan
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users