cuinjune / Ofelia

A real-time cross-platform creative coding tool for multimedia development
GNU General Public License v3.0
363 stars 21 forks source link

Build failed in arch linux. #10

Open rdtor opened 5 years ago

rdtor commented 5 years ago

home/s/of-workspace/addons/ofxLua/src/bindings/desktop/ofBindings.cpp:45679:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ if (arg1) (arg1)->timeoutSeconds = arg2; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } ^~ /home/s/of-workspace/addons/ofxLua/src/bindings/desktop/ofBindings.cpp: In function ‘int _wrap_HttpResponse_status_set(lua_State*)’: /home/s/of-workspace/addons/ofxLua/src/bindings/desktop/ofBindings.cpp:45842:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (arg1) (arg1)->status = arg2; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } ^~ /home/s/of-workspace/addons/ofxLua/src/bindings/desktop/ofBindings.cpp:45842:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ if (arg1) (arg1)->status = arg2; return SWIG_arg; if(0) SWIG_fail; fail: lua_error(L); return SWIG_arg; } ^~ /home/s/of-workspace/addons/ofxLua/src/bindings/desktop/ofBindings.cpp: At global scope: /home/s/of-workspace/addons/ofxLua/src/bindings/desktop/ofBindings.cpp:15364:12: warning: ‘int _wrap_3dPrimitive_draw(lua_State)’ defined but not used [-Wunused-function] static int _wrap_3dPrimitive_draw(lua_State L) { int SWIG_arg = 0; of3dPrimitive arg1 = (of3dPrimitive ) 0 ; ^~~~~~ make[1]: [/home/s/of-workspace/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:354: /home/s/of-workspace/addons/obj/linux64/Release/ofxLua/src/bindings/desktop/ofBindings.o] Error 1 make[1]: Leaving directory '/home/shank/of-workspace/addons/ofxOfelia/Linux64External' make: [/home/s***/of-workspace/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:129: Release] Error 2

cuinjune commented 5 years ago

@rdtor Hi, Thank you for reporting the problem.

I just updated the README and added the setup guide for building the external. Could you please follow the guide and try to build the external again?

rdtor commented 5 years ago

hey thx, i tried to run make file in linux64External i am getting this error i think its related to Lua,

home/shank/of-workspace/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:45765:43: error: ‘ofBaseFileSerializer’ was not declared in this scope return (void )((ofBaseSerializer ) (ofBaseFileSerializer ) ((ofXml ) x)); ^~~~~~~~ /home/shank/of-workspace/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:45765:43: note: suggested alternative: ‘ofBaseVideoGrabber’ return (void )((ofBaseSerializer ) (ofBaseFileSerializer ) ((ofXml ) x)); ^~~~~~~~ ofBaseVideoGrabber /home/shank/of-workspace/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:45765:65: error: expected primary-expression before ‘)’ token return (void )((ofBaseSerializer ) (ofBaseFileSerializer ) ((ofXml ) x)); ^ /home/shank/of-workspace/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp: At global scope: /home/shank/of-workspace/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:12806:12: warning: ‘int _wrap_3dPrimitive_draw(lua_State)’ defined but not used [-Wunused-function] static int _wrap_3dPrimitive_draw(lua_State L) { int SWIG_arg = 0; of3dPrimitive arg1 = (of3dPrimitive ) 0 ; ^~~~~~ make[1]: [/home/shank/of-workspace/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:354: /home/shank/of-workspace/addons/obj/linux64/Release/ofxLua/src/bindings/desktop/ofxLuaBindings.o] Error 1 make[1]: Leaving directory '/home/shank/of-workspace/addons/ofxOfelia/Linux64External' make: [/home/shank/of-workspace/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:129: Release] Error 2

rdtor commented 5 years ago

i used the ofxLua from the libs folder and it compiled instead from the repository of danomatika

rdtor commented 5 years ago

I tested it out and it looks amazing however some of the examples are not running this is the output error from example/image/pointilism

ofelia v2.2 : compiled on Jun 5 2019 (c) 2018 Zack Lee cuinjune@gmail.com

ofWindow ... couldn't create ofSetup ... couldn't create ofSetBackgroundColor 255 ... couldn't create ofSetBackgroundAuto 0 ... couldn't create ofImage $0-img ... couldn't create ofDraw ... couldn't create ofGetImagePtr $0-img ... couldn't create ofGetPtr $0-vars ... couldn't create

This one is from the brownian motion example ALSA output error (snd_pcm_open): Device or resource busy ofWindow ... couldn't create ofSetup ... couldn't create ofBackground 51 ... couldn't create ofSetFrameRate 30 ... couldn't create ofDraw ... couldn't create ofGetPtr $0-vars ... couldn't create ..

However i could run the shapes, sounds, pd, text, shader video example so far

rdtor commented 5 years ago

here is a Edit i fixed the example issue, all the non running examples folder should be moved up a directory