On Mon, 2008-01-14 at 12:07 -0500, John Labenski wrote:

> Yes, if Lua is in your include paths it will try to find it and if
> found will use it by default, else specify the path.
>
> $configure --with-lua-prefix=/usr/include/lua5.1

Right, it does indeed fail to detect my system-installed packaged Lua,
so I have to use the above configure option.  However, it then fails to
build: (the wxbindaui disabling is something I'll post about seperately:
it fails to compile on the WxWidgets shipped with Ubuntu 7.10)

[EMAIL PROTECTED]:~/cvs/wxLua$ ./configure --disable-wxbindaui
--with-lua-prefix=/usr/include/lua5.1/

<snip test output>

 ----------------------------------------------------------------
  Configuration for wxLua 2.8.4.0 successfully completed.
  Summary of main configuration settings for wxLua:
  - RELEASE build
  - UNICODE mode
  - STATIC mode

  - wxLua application:              yes
  - wxLuaCan application:           yes
  - wxLuaEdit application:          no
  - wxLuaFreeze application:        yes

  - Using SYSTEM lua library (prefix is '/usr/include/lua5.1/')
  - enable_wxbindadv module:        yes
  - enable_wxbindaui module:        no
  - 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 libraries for which
    binding modules will be created: 
     stc,richtext,xrc,xml,net,media,html,gl,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.4.0
  has the following settings:
  - RELEASE build
  - UNICODE mode
  - SHARED mode
  - VERSION: 2.8.4
  - PORT: gtk2

  Now, just run make.
 ----------------------------------------------------------------
[EMAIL PROTECTED]:~/cvs/wxLua$ make
(cd ./modules/ && make )
make[1]: Entering directory `/home/rjek/cvs/wxLua/modules'
/home/rjek/cvs/wxLua/bk-make-pch .pch/wxprec_wxlua_lib/wx/wxprec.h.gch
wx/wxprec.h g++ -I.pch/wxprec_wxlua_lib -I../modules/wxbind/setup
-I../modules -I./.. -I/include
-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
-DwxLUA_USEBINDING_WXAUI=0 -O2
/home/rjek/cvs/wxLua/bk-deps g++ -c -o wxlua_lib_dummy.o
-I.pch/wxprec_wxlua_lib -I../modules/wxbind/setup -I../modules -I./..
-I/include -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 -DwxLUA_USEBINDING_WXAUI=0 -O2 ./wxlua/src/dummy.cpp
/home/rjek/cvs/wxLua/bk-deps g++ -c -o wxlua_lib_wxlbind.o
-I.pch/wxprec_wxlua_lib -I../modules/wxbind/setup -I../modules -I./..
-I/include -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 -DwxLUA_USEBINDING_WXAUI=0 -O2 ./wxlua/src/wxlbind.cpp
In file included from ../modules/wxlua/include/wxlbind.h:13,
                 from ./wxlua/src/wxlbind.cpp:20:
../modules/wxlua/include/wxldefs.h:19:21: error: lua.h: No such file or
directory
../modules/wxlua/include/wxldefs.h:20:24: error: lualib.h: No such file
or directory
../modules/wxlua/include/wxldefs.h:21:25: error: lauxlib.h: No such file
or directory
../modules/wxlua/include/wxlbind.h:125: error: ‘lua_CFunction’ does not
name a type

<snip /many/ errors to do with not having the Lua headers>

Doesn't look like it's passing /usr/include/lua5.1/ to any of the
invocations of the compiler.

B.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to