Hi,

Rob Kendrick yazmış:
> 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.
> [snip]

I've compiled wxLua something like you need. You may see ldd result, get 
source, project file,etc. at 
http://www.dynaset.org/dogusanh/download.html#cairopad .

I'm using Code::Blocks IDE. Project file's related parts are below:

--------------------------------------------------------------
                        <Target title="module-wxlib-unicode-static">
                                <Option output="bin/ds287u" prefix_auto="1" 
extension_auto="1" />
                                <Option object_output=".orgc-ubuntu/" />
                                <Option type="3" />
                                <Option compiler="gcc" />
                                <Option projectLinkerOptionsRelation="2" />
                                <Compiler>
                                        <Add option="-O2" />
                                        <Add option="-fno-strict-aliasing" />
                                        <Add option="-Winvalid-pch" />
                                        <Add 
option="`/home/hd/devel/wxGTK-2.8.7/buildgtk/lib/wx/config/inplace-gtk2-unicode-release-static-2.8
 
--cflags`" />
                                        <Add option="`pkg-config --cflags 
gtk+-2.0`" />
                                        <Add option="`pkg-config --cflags 
cairo`" />
                                        <Add option="-fpic" />
                                        <Add directory="." />
                                        <Add directory="wxbind/setup" />
                                        <Add directory="$(#hdlib)" />
                                        <Add directory="/home/hd/devel/lua/src" 
/>
                                        <Add directory="$(#sqlite)" />
                                </Compiler>
                                <Linker>
                                        <Add option="-s" />
                                        <Add 
option="`/home/hd/devel/wxGTK-2.8.7/buildgtk/lib/wx/config/inplace-gtk2-unicode-release-static-2.8
 
--libs`" />
                                        <Add option="`pkg-config --libs 
gtk+-2.0`" />
                                        <Add option="`pkg-config --libs cairo`" 
/>
                                        <Add option="-shared" />
                                        <Add option="-fpic" />
                                        <Add 
library="/home/hd/devel/wxGTK-2.8.7/buildgtk/lib/libwx_gtk2u_stc-2.8.a" />
                                        <Add library="lua5.1" />
                                        <Add directory="/home/hd/devel/lua/src" 
/>
                                        <Add directory="$(#sqlite)" />
                                </Linker>
                        </Target>
--------------------------------------------------------------

Hope it gives some idea...

--
Regards,
Hakki Dogusan

-------------------------------------------------------------------------
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

Reply via email to