Hi,
I am trying to build wxLua 2.8.10.0 from source on Mac OS X 10.5.8, and am
encountering the following problem:
Despite specifying --disable-wxbindstc to the configure script, the make
command still tries to build the wxSTC bindings, which fail. The exact
procedure I followed is listed below.
1. I built and installed wxWidgets 2.8.10.0:
tar -xzf wxMac-2.8.10.tar.gz
cd wxMac-2.8.10/
mkdir osx-build
cd osx-build/
../configure --enable-monolithic --disable-debug --enable-shared
--enable-unicode
make
sudo make install
2. I then tried to build wxLua:
tar -xzf wxLua-2.8.10.0-src.tar.gz
cd wxLua/
mkdir osx-build/
./configure --prefix=/cross/osx --disable-debug --enable-shared
--enable-unicode --disable-wxlua-app --disable-wxluacan-app
--disable-wxluaedit-app --disable-wxluafreeze-app --disable-wxluadebug
--disable-wxluasocket --enable-monolithic-luamodule --disable-wxbindstc
make
The configure script produced the following summary:
----------------------------------------------------------------
Configuration for wxLua 2.8.10.0 successfully completed.
Summary of main configuration settings for wxLua:
- RELEASE build
- UNICODE mode
- SHARED mode
- Lua interpreter: yes
- Lua compiler: no
- wxLua application: no
- wxLuaCan application: no
- wxLuaEdit application: no
- wxLuaFreeze application: no
- Using BUILT-IN lua library
- enable_wxbindadv module: yes
- enable_wxbindaui module: yes
- enable_wxbindbase module: yes
- enable_wxbindcore module: yes
- enable_wxbindgl module: no
- enable_wxbindhtml module: yes
- enable_wxbindmedia module: no
- enable_wxbindnet module: yes
- enable_wxbindrichtext module: yes
- enable_wxbindstc module: no
- enable_wxbindxml module: yes
- enable_wxbindxrc module: yes
- compact list of the wxWidgets libraries for which
binding modules will be created:
richtext,xrc,xml,net,html,aui,adv,core,base
- enable_wxluadebug module: no
- enable_wxluasocket module: no
- enable_luamodule module: yes
- enable_monolithic_luamodule module: yes
- install custom wxBind stuff: yes
- wxLua make install path settings:
prefix : '/cross/osx'
exec_prefix : '${prefix}'
libdir : '${exec_prefix}/lib'
datadir : '${datarootdir}'
The wxWidgets build which will be used by wxLua 2.8.10.0
has the following settings:
- RELEASE build
- UNICODE mode
- SHARED mode
- VERSION: 2.8.10
- PORT: mac
Now, just run make.
----------------------------------------------------------------
Running make succeeds up until it tries to build wxstc_bind.cpp, when it
generates the following error:
/Users/awm/Development/Lua/wxLua/osx-build/bk-deps g++ -c -o
mod_luamodule_mono_wxstc_bind.o -I.pch/wxprec_mod_luamodule_mono
-I../../modules -I./../..
-I/Users/awm/Development/Lua/wxLua/osx-build/../modules/lua/include
-I../../modules/wxbind/setup -DWXMAKINGDLL_LUAMODULE -DWXMAKINGDLL_WXBINDADV
-DWXMAKINGDLL_WXBINDAUI -DWXMAKINGDLL_WXBINDBASE -DWXMAKINGDLL_WXBINDCORE
-DWXMAKINGDLL_WXBINDGL -DWXMAKINGDLL_WXBINDHTML -DWXMAKINGDLL_WXBINDMEDIA
-DWXMAKINGDLL_WXBINDNET -DWXMAKINGDLL_WXBINDRICHTEXT -DWXMAKINGDLL_WXBINDSTC
-DWXMAKINGDLL_WXBINDXML -DWXMAKINGDLL_WXBINDXRC -DWXMAKINGDLL_WXLUADEBUG
-DWXMAKINGDLL_WXLUASOCKET -DWXMAKINGDLL_WXLUA -dynamic -fPIC -DPIC
-I/usr/local/lib/wx/include/mac-unicode-release-2.8
-I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-D__WXMAC__ -DwxLUA_USEBINDING_WXGL=0 -DwxLUA_USEBINDING_WXMEDIA=0
-DwxLUA_USEBINDING_WXSTC=0 -O2 -fno-common
../../modules/wxbind/src/wxstc_bind.cpp
In file included from ../../modules/wxbind/src/wxstc_bind.cpp:19:
../../modules/wxbind/include/wxstc_bind.h:46:24: error: wx/stc/stc.h: No
such file or directory
/usr/local/include/wx-2.8/wx/fontdlg.h: In constructor
‘wxFontDialogBase::wxFontDialogBase(wxWindow*, const wxFontData*)’:
/usr/local/include/wx-2.8/wx/fontdlg.h:67: warning: ‘__base_ctor ’ is
deprecated (declared at /usr/local/include/wx-2.8/wx/fontdlg.h:66)
../../modules/wxbind/src/wxstc_bind.cpp: In function ‘int
wxLua_wxStyledTextCtrl_AddRefDocument(lua_State*)’:
../../modules/wxbind/src/wxstc_bind.cpp:38: error: ‘wxStyledTextCtrl’ was
not declared in this scope
../../modules/wxbind/src/wxstc_bind.cpp:38: error: ‘self’ was not declared
in this scope
../../modules/wxbind/src/wxstc_bind.cpp:38: error: expected
primary-expression before ‘)’ token
../../modules/wxbind/src/wxstc_bind.cpp:38: error: expected `;' before
‘wxluaT_getuserdatatype’
[... many similar errors ...]
../../modules/wxbind/src/wxstc_bind.cpp: In function ‘int
wxLua_wxStyledTextEvent_constructor(lua_State*)’:
../../modules/wxbind/src/wxstc_bind.cpp:8678: error: ‘wxStyledTextEvent’ was
not declared in this scope
../../modules/wxbind/src/wxstc_bind.cpp:8678: error: ‘returns’ was not
declared in this scope
../../modules/wxbind/src/wxstc_bind.cpp:8678: error: expected type-specifier
before ‘wxStyledTextEvent’
../../modules/wxbind/src/wxstc_bind.cpp:8678: error: expected `;' before
‘wxStyledTextEvent’
../../modules/wxbind/src/wxstc_bind.cpp:8680: error: no matching function
for call to ‘wxluaO_addgcobject(lua_State*&, <type error>)’
../../modules/wxlua/include/wxlstate.h:301: note: candidates are: void
wxluaO_addgcobject(lua_State*, wxObject*)
../../modules/wxlua/include/wxlstate.h:302: note: void
wxluaO_addgcobject(lua_State*, void*, wxObject*)
../../modules/wxbind/src/wxstc_bind.cpp: In function ‘wxLuaBindEvent*
wxLuaGetEventList_wxstc(size_t&)’:
../../modules/wxbind/src/wxstc_bind.cpp:8767: error:
‘wxEVT_STC_AUTOCOMP_SELECTION’ was not declared in this scope
../../modules/wxbind/src/wxstc_bind.cpp:8768: error:
‘wxEVT_STC_CALLTIP_CLICK’ was not declared in this scope
../../modules/wxbind/src/wxstc_bind.cpp:8769: error: ‘wxEVT_STC_CHANGE’ was
not declared in this scope
../../modules/wxbind/src/wxstc_bind.cpp:8770: error: ‘wxEVT_STC_CHARADDED’
was not declared in this scope
[... many similar errors ...]
./../modules/wxbind/src/wxstc_bind.cpp:10167: error: ‘wxSTC_YAML_REFERENCE’
was not declared in this scope
../../modules/wxbind/src/wxstc_bind.cpp:10168: error: ‘wxSTC_YAML_TEXT’ was
not declared in this scope
../../modules/wxbind/src/wxstc_bind.cpp: In function ‘wxLuaBindClass*
wxLuaGetClassList_wxstc(size_t&)’:
../../modules/wxbind/src/wxstc_bind.cpp:10257: error: ‘wxStyledTextCtrl’ has
not been declared
../../modules/wxbind/src/wxstc_bind.cpp:10257: error: ‘ms_classInfo’ was not
declared in this scope
../../modules/wxbind/src/wxstc_bind.cpp:10258: error: ‘wxStyledTextEvent’
has not been declared
make[1]: *** [mod_luamodule_mono_wxstc_bind.o] Error 1
make: *** [modules] Error 2
Any suggestions are welcome.
Thanks,
Andrew
P.S. How do I enable building the Lua compiler (luac) when using the
internal lua?
P.P.S. I should also point out that the wxWidgets library has to be compiled
with version 2.6 compatibility turned on in order for the wxLua bindings for
wxSashWindow to build.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users