From: John L. <jla...@gm...> - 2006-01-19 03:50:36
|
On 1/18/06, Francesco Montorsi <f18...@ya...> wrote: > Hi all, > > I'm finally back from my last exams (crossing fingers waiting > results :)) Good luck! > >I tried to compile on Linux. ( wxWidgets 2.6.2 with contrib installed > >and static libs last installed ). > >So wx-config gives static libs when asking for --libs.) > >But i have several problems. > >How does one configure to become static or dynamic libs? > > > >First i get warnings like this. > >./wxlua/src/wxlstate.cpp:314:5: warning: "WXWIN_COMPATIBILITY_24" is > yes, I get these, too. > Maybe someone with more wxLua knowledge could fix these... Ok, I've removed WXWIN_COMPATIBILITY_24 since I think the !wxCHECK_VERSION(2,5,0) is good enough, but I think it should be defined in 2.6 to either 0 or 1 no matter what. I think your wx/setup.h (in linux in wxWidgets/lib/wx/include/gtk2-unicode-debug-2.7/wx for me when I compile in gtk2 in unicode) is not being included somehow? It's committed now. > >Eventually it compiles, but when i call make install, the result is >th= is. > >I have no idea what is going on here. > I know what the problem is: bakefile 0.9 doesn't have good > install/uninstall support. > > John and all other wxLua admin: I made a patched version of Bakefile > (0.2.0) with a lot of additional features which would fix, among others, > also install and uninstall targets. > Should I upgrade wxLua bakefiles to 0.2.0, while we wait that my > additional features (which I also submit to bakefile project as patches) > are applied and official 0.2 is released ? > > My bakefile 0.2.0 is available at: > www.geocities.com/f18m_cpp217828/frm-bakefile.tar.gz Ok, I never install anything in my linux systems. Using your bakefile means that we have to always use that from now on right? I've unfortunately had problems using bakefile in linux when I download the src and compile it myself. It can't find the wxWidgets presets IIRC. Therefore I've been using it in windows, is it easy to compile there, I'd hope so? :) > >I tried configure --enable-wxlua-app, > >this does not do anything it looks. > IIRC something like wxluasetup.h was supposed to be created and the > WXLUASETUP_DIR & WXLUABINDLIB_DIR options should be used somewhere in > bakefiles. > Anyway --enable-wxlua-app should work. I'll look into this. > > > >Assuming i do something wrong and all this should work. > >How does one find the wxLua settings? > >Is there a wxlua-config ---libs --include etc. ? > I think it would be a little overkill create a wxlua-config script; > wouldn't be better to create a wxlua.pc file for pkg-config, so that one > could use > > pkg-config wxlua --libs > or > pkg-config wxlua --cflags Probably, I've never used tried this, but I have some *.pc files on my system and they seem fairly straightforward. > >I need to detect wxLua, i am trying to this from Cmake currently by > >setting a WXLUA var. > >But if there will be wxlua-config , that would be the solution. > I propose to use a pkg-config template file just because it's ultra easy > to build one. Basically the wxlua.pc.in file would look as: > > prefix=3D@prefix@ > exec_prefix=3D@exec_prefix@ > libdir=3D@libdir@ > includedir=3D@includedir@ > > Name: @PACKAGE_NAME@ > Description: wxWidgets lua wrappers > Version: @PACKAGE_VERSION@ > Requires: > Libs: -L${libdir} -lwxlua > Cflags: -I${includedir}/lua > > Just let me know... > Francesco Montorsi This would be good if you could add it. > PS: wxLua currently doesn't compile on my AMD64 linux box. > This is because in a lot of places some (int) casts are used to cast > memory pointers. In a 64 bit environment pointers are 64 bit wide and > thus I replaced all those (int) with (long). Then wxLua compiled. > Should I commit these changes ? Yes please, I don't have access to any 64 bit machines. > PS2: I subscribed wxlua-users mailing list to Gmane. I hope this is not > a problem to anyone ;) Great. Regards, John Labenski |