danomatika / ofxLua

(maintained) a lua scripting interface & bindings for openFrameworks
Other
164 stars 36 forks source link

issue in ubuntu 12.04 64bit #3

Closed kalwalt closed 11 years ago

kalwalt commented 11 years ago

i get this errors trying to build your example: -------------- Build: Debug in ofxLuaExample ---------------

Using makefile: Makefile compiling x86_64 object for: src/AppCore.cpp In file included from ../../../addons/ofxLua/src/luabind/luabind/wrapper_base.hpp:31:0, from ../../../addons/ofxLua/src/luabind/luabind/back_reference.hpp:27, from ../../../addons/ofxLua/src/luabind/luabind/class.hpp:93, from ../../../addons/ofxLua/src/luabind/luabind/luabind.hpp:28, from ../../../addons/ofxLua/src/ofxLua.h:36, from src/AppCore.h:15, from src/AppCore.cpp:11: ../../../addons/ofxLua/src/luabind/luabind/detail/call_member.hpp:377:1: error: missing binary operator before token "(" In file included from ../../../addons/ofxLua/src/luabind/luabind/back_reference.hpp:27:0, from ../../../addons/ofxLua/src/luabind/luabind/class.hpp:93, from ../../../addons/ofxLua/src/luabind/luabind/luabind.hpp:28, from ../../../addons/ofxLua/src/ofxLua.h:36, from src/AppCore.h:15, from src/AppCore.cpp:11: ../../../addons/ofxLua/src/luabind/luabind/wrapper_base.hpp:136:1: error: missing binary operator before token "(" In file included from ../../../addons/ofxLua/src/luabind/luabind/function.hpp:10:0, from ../../../addons/ofxLua/src/luabind/luabind/class.hpp:94, from ../../../addons/ofxLua/src/luabind/luabind/luabind.hpp:28, from ../../../addons/ofxLua/src/ofxLua.h:36, from src/AppCore.h:15, from src/AppCore.cpp:11: ../../../addons/ofxLua/src/luabind/luabind/detail/call_function.hpp:422:1: error: missing binary operator before token "(" In file included from ../../../addons/ofxLua/src/luabind/luabind/detail/constructor.hpp:12:0, from ../../../addons/ofxLua/src/luabind/luabind/class.hpp:96, from ../../../addons/ofxLua/src/luabind/luabind/luabind.hpp:28, from ../../../addons/ofxLua/src/ofxLua.h:36, from src/AppCore.h:15, from src/AppCore.cpp:11: ../../../addons/ofxLua/src/luabind/luabind/wrapper_base.hpp:136:1: error: missing binary operator before token "(" In file included from ../../../addons/ofxLua/src/luabind/luabind/class.hpp:105:0, from ../../../addons/ofxLua/src/luabind/luabind/luabind.hpp:28, from ../../../addons/ofxLua/src/ofxLua.h:36, from src/AppCore.h:15, from src/AppCore.cpp:11: ../../../addons/ofxLua/src/luabind/luabind/detail/call_member.hpp:377:1: error: missing binary operator before token "(" src/AppCore.cpp: In member function ‘void AppCore::nextScript()’: src/AppCore.cpp:137:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] src/AppCore.cpp: In member function ‘void AppCore::runTests()’: src/AppCore.cpp:172:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] src/AppCore.cpp:180:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] src/AppCore.cpp:188:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] src/AppCore.cpp:199:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] src/AppCore.cpp:235:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] src/AppCore.cpp:265:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] src/AppCore.cpp:272:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] make: *\ [obj/x86_64Debug/src/AppCore.o] Errore 1 Process terminated with status 2 (0 minutes, 13 seconds) 5 errors, 8 warnings

what we can do? Thanks

danomatika commented 11 years ago

Eh, it looks like an issue with the BOOST_PP_ITERATION_FLAGS() define in luabind and GCC 4.7: http://dev.ryzom.com/issues/1462

I'm looking into updating the luabind build or patching it.

danomatika commented 11 years ago

Ok, I applied the fixes they suggested in that link in the previous post. Can you try the bugfix-luabind-boost-define branch?

kalwalt commented 11 years ago

yex of course Dan ! I do it right now!

kalwalt commented 11 years ago

it works perfectly! the issue is fixed. I started to interest in Lua because i found this noise lib:

http://accidentalnoise.sourceforge.net/index.html

it has a lua binding :

http://accidentalnoise.sourceforge.net/lua.html

Do you think it is possible to integrate in OF via ofxLua?

danomatika commented 11 years ago

Sure, but I'd say you can make your own binding using luabind as it's included with ofxLua. See the example wrapper, it's pretty easy.

danomatika commented 11 years ago

Also, OF has perlin noise builtin with ofNoise() ...