lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi Antonio,

Thanks for the fixes. About the problem with _cdlua_pushcanvas: I'm
using the source from Lua Binaries. The make process uses the flags
LUA_USE_POSIX and LUA_USE_DLOPEN, even on os x. So this doesn't seem to
be the problem (and as a quick check, compiling with the LUA_USE_MACOSX
section commented out gave the same result). Also, the two OpenGL
samples give a new error:

lua: error loading module 'iupluagl' from file
'/usr/local/lib/lua/5.1/libiupluagl51.so':
	dlopen(/usr/local/lib/lua/5.1/libiupluagl51.so, 2): Symbol not found:
_glXChooseFBConfig
  Referenced from: /usr/local/lib/libiupgl.dylib
  Expected in: flat namespace
 in /usr/local/lib/libiupgl.dylib
stack traceback:
	[C]: ?
	[C]: in function 'require'
	luagl.wlua:2: in main chunk
	[C]: ?

Am I missing something here?

Kind regards,
Roman

Am 17.01.2012 22:06, schrieb Antonio Scuri:
>   Hi Roman,
> 
>   Thanks for reporting all the errors.
> 
>> Tecmake: linking iuplua51 ...
>> g++ -o ../bin/MacOS106/iuplua51 ../obj/iuplua51/MacOS106/iup_lua51.o
>> -L../../lua5.1/lib/MacOS106 -lreadline -llua5.1 -lm
>> ld: in ../../lua5.1/lib/MacOS106/liblua5.1.so, can't link with bundle
>> (MH_BUNDLE) only dylibs (MH_DYLIB)
> 
>   That was an error in the Makefile. Fixed. 
> 
> 
>> lua: error loading module 'iupluacontrols' from file
>> '/usr/local/lib/lua/5.1/libiupluacontrols51.so':
>> 	dlopen(/usr/local/lib/lua/5.1/libiupluacontrols51.so, 2): Symbol not
>> found: _cdlua_pushcanvas
> 
>   This is a problem with the loadlib used by Lua when in MacOSX. If you compile Lua using LUA_USE_MACOSX, default for the standard Lua makefile, that problem will rise. Remove that define so Lua will use the dl* functions just like in Lua 5.2.
> 
> 
>> lua: error loading module 'iupluagl' from file
>> '/usr/local/lib/lua/5.1/libiupluagl51.so':
>> 	dlopen(/usr/local/lib/lua/5.1/libiupluagl51.so, 2): Symbol not found:
>> _IupGLCanvas
> 
>  This was an error in the iupgl Makefile. Fixed.
> 
> 
>> - The example file pplot.wlua gives me the following error:
>> lua: pplot.wlua:1: attempt to index global 'iup' (a nil value)
> 
>  It was missing "require("iuplua_pplot")" in the example. Fixed.
> 
> 
>> - The example file image.wlua stops with the following message: Abort trap
>  
>   That was a bug. Fixed.
> 
>   All fixes committed to CVS.
> 
> Thanks,
> Scuri
>