On Jan 14, 2008 8:26 AM, Francesco Montorsi <[EMAIL PROTECTED]> wrote:
> Hi,
> I've done a big commit on the configure script which should fix all
> problems. The bugs I've found in the configure script were mainly:
>
> 1) libraries were passed to wx-config --libs in wrong order; e.g.
> wx-config --libs base,core,adv instead of wx-config --libs adv,core,base
>
> 2) linker line was being built incorrectly; with -l option you give
> e.g. "-lmylib" and GNU's ld will search for libmylib.a or
> libmylib.so.x.x.x libraries.... you cannot pass to -l a full library
> name with final .a
>
> 3) for some reason wxwin.m4 was defining the BUILD variable only when
> DEBUG option was left to the 'auto' default value; this is my fault but
> since I last touched wxwin.m4 a lot of time ago, I really don't
> understand how it's possible that this bug was unnoticed so far...
>
> Last, I also removed lots of copy&paste from configure.ac making it
> easier to mantain.
>
> Please everyone test building against latest CVS.
I started with a fresh copy from CVS and ran ./configure --with-wxversion=
2.8
Then I ran make.
*Configure Output*:
----------------------------------------------------------------
Configuration for wxLua 2.8.7.0 successfully completed.
Summary of main configuration settings for wxLua:
- RELEASE build
- UNICODE mode
- SHARED mode
- wxLua application: yes
- wxLuaCan application: yes
- wxLuaEdit application: no
- wxLuaFreeze application: yes
- Using BUILT-IN lua library
- enable_wxbindadv module: yes
- enable_wxbindaui module: yes
- enable_wxbindbase module: yes
- enable_wxbindcore module: yes
- enable_wxbindgl module: yes
- enable_wxbindhtml module: yes
- enable_wxbindmedia module: yes
- enable_wxbindnet module: yes
- enable_wxbindrichtext module: yes
- enable_wxbindstc module: yes
- enable_wxbindxml module: yes
- enable_wxbindxrc module: yes
- compact list of the wxWidgets library for which
binding modules will be created:
stc,richtext,xrc,xml,net,media,html,gl,aui,adv,core,base
- enable_wxluadebug module: yes
- enable_wxluasocket module: yes
- enable_luamodule module: yes
- install custom wxBind stuff: yes
- wxLua make install path settings:
prefix : '/usr/local'
exec_prefix : '${prefix}'
libdir : '${exec_prefix}/lib'
datadir : '${datarootdir}'
The wxWidgets build which will be used by wxLua 2.8.7.0
has the following settings:
- RELEASE build
- UNICODE mode
- SHARED mode
- VERSION: 2.8.7
- PORT: gtk2
Now, just run make.
----------------------------------------------------------------
*Make Failures*:
/home/rpusztai/devel/libraries/wxLua/bk-deps g++ -c -o
mod_luamodule_luamodule.o -I../modules -I./..
-I/home/rpusztai/devel/libraries/wxLua/./modules/lua/include
-DWXMAKINGDLL_LUAMODULE -fPIC -DPIC -I/usr/lib/wx/include/gtk2-
unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64
-D_LARGE_FILES -D__WXGTK__ -pthread -O2 ./luamodule/src/luamodule.cpp
g++ -shared -fPIC -o ../lib/wx.so mod_luamodule_luamodule.o -L../lib
-L/home/rpusztai/devel/libraries/wxLua/./modules/lua/lib
-lwxlua_gtk2u_wxbindxrc- 2.8
-lwxlua_gtk2u_wxbindstc-2.8-lwxlua_gtk2u_wxbindrichtext-
2.8 -lwxlua_gtk2u_wxbindmedia-2.8
-lwxlua_gtk2u_wxbindhtml-2.8-lwxlua_gtk2u_wxbindgl-
2.8 -lwxlua_gtk2u_wxbindaui-2.8
-lwxlua_gtk2u_wxbindadv-2.8-lwxlua_gtk2u_wxbindxml-
2.8 -lwxlua_gtk2u_wxbindnet-2.8
-lwxlua_gtk2u_wxbindcore-2.8-lwxlua_gtk2u_wxbindbase-
2.8 -lwxlua_gtk2u_wxluasocket-2.8
-lwxlua_gtk2u_wxluadebug-2.8-lwxlua_gtk2u_wxlua-
2.8 -llua5.1 -pthread -lwx_gtk2u_stc-2.8 -lwx_gtk2u_richtext-
2.8-lwx_gtk2u_xrc-
2.8 -lwx_baseu_xml-2.8 -lwx_baseu_net-2.8 -lwx_gtk2u_media-2.8-lwx_gtk2u_html-
2.8 -lwx_gtk2u_gl-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_adv-2.8 -lwx_gtk2u_core-
2.8 -lwx_baseu-2.8
/usr/bin/ld: cannot find -lwxlua_gtk2u_wxbindxrc- 2.8
collect2: ld returned 1 exit status
make[1]: *** [../lib/wx.so] Error 1
make[1]: Leaving directory `/home/rpusztai/devel/libraries/wxLua/modules'
make: *** [modules] Error 2
*<wxLua>/lib *:
libwxlua_gtk2_wxbindadv-2.8.so
libwxlua_gtk2_wxbindadv-2.8.so.0libwxlua_gtk2_wxbindadv-
2.8.so.0.0.7
libwxlua_gtk2_wxbindaui- 2.8.so
libwxlua_gtk2_wxbindaui-2.8.so.0libwxlua_gtk2_wxbindaui-
2.8.so.0.0.7
libwxlua_gtk2_wxbindbase-2.8.so
libwxlua_gtk2_wxbindbase-2.8.so.0libwxlua_gtk2_wxbindbase-
2.8.so.0.0.7
libwxlua_gtk2_wxbindcore- 2.8.so
libwxlua_gtk2_wxbindcore-2.8.so.0libwxlua_gtk2_wxbindcore-
2.8.so.0.0.7
<snip>
libwxlua_gtk2_wxbindxml-2.8.so
libwxlua_gtk2_wxbindxml-2.8.so.0libwxlua_gtk2_wxbindxml-
2.8.so.0.0.7
libwxlua_gtk2_wxbindxrc-2.8.so
libwxlua_gtk2_wxbindxrc-2.8.so.0libwxlua_gtk2_wxbindxrc-
2.8.so.0.0.7
libwxlua_gtk2_wxlua-2.8.so libwxlua_gtk2_wxlua- 2.8.so.0libwxlua_gtk2_wxlua-
2.8.so.0.0.7
libwxlua_gtk2_wxluadebug-2.8.so
libwxlua_gtk2_wxluadebug-2.8.so.0libwxlua_gtk2_wxluadebug-
2.8.so.0.0.7
libwxlua_gtk2_wxluasocket- 2.8.so
libwxlua_gtk2_wxluasocket-2.8.so.0libwxlua_gtk2_wxluasocket-
2.8.so.0.0.7
Notice that the shared libraries are still named wrong. There is no 'u' in
the names. It doesn't build. I checked the variable in the modules/makefile
and all of them are still commented out.
--
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