Closed cuinjune closed 6 years ago
Yup, it's not done yet. I haven't had the time to update my addons for the 0.10 release.
Dan Wilcox danomatika.com robotcowboy.com
On Jun 21, 2018, at 3:38 PM, Zack Lee notifications@github.com wrote:
Hi, I just downloaded openFrameworks 0.10.0 and ofxLua-of-0.10.0 on macOS and then I opened luaExample on Xcode using the Project Generator.
However, when I build the project, I get the following errors.
/Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13961:77: error: unknown type name 'ofMeshData'; did you mean 'ofMeshFace'? static int _wrap_MeshData_getVerticesData(lua_State L) { int SWIG_arg = 0; ofMeshData arg1 = (ofMeshData ) 0 ; ^
~~~~~ ofMeshFace In file included from /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osxrelease/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:2912: In file included from ../../../libs/openFrameworks/ofMain.h:49: In file included from ../../../libs/openFrameworks/gl/ofGLRenderer.h:4: In file included from ../../../libs/openFrameworks/graphics/of3dGraphics.h:12: In file included from ../../../libs/openFrameworks/3d/of3dPrimitives.h:3: ../../../libs/openFrameworks/3d/ofMesh.h:708:7: note: 'ofMeshFace' declared here using ofMeshFace = ofMeshFace<ofDefaultVertexType, ofDefaultNormalType, ofDefaultColorType, ofDefaultTexCoordType>; ^ /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13961:97: error: use of undeclared identifier 'ofMeshData' static int _wrap_MeshData_getVerticesData(lua_State L) { int SWIG_arg = 0; ofMeshData arg1 = (ofMeshData ) 0 ; ^ /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13961:109: error: expected expression static int _wrap_MeshData_getVerticesData(lua_State L) { int SWIG_arg = 0; ofMeshData arg1 = (ofMeshData *) 0 ; ^ /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13962:21: error: use of undeclared identifier 'ofArrayView' SwigValueWrapper< ofArrayView< void > > result; SWIG_check_num_args("ofMeshData::getVerticesData",1,1) ^ /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13962:39: error: expected '(' for function-style cast or type construction SwigValueWrapper< ofArrayView< void > > result; SWIG_check_num_args("ofMeshData::getVerticesData",1,1)/Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13966:3: error: use of undeclared identifier 'result' result = ((ofMeshData const *)arg1)->getVerticesData(); { ^ /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13966:14: error: use of undeclared identifier 'ofMeshData' result = ((ofMeshData const *)arg1)->getVerticesData(); { ^ /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13967:5: error: use of undeclared identifier 'ofArrayView' ofArrayView< void > * resultptr = new ofArrayView< void >((const ofArrayView< void > &) result); ^ /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13967:23: error: expected '(' for function-style cast or type construction ofArrayView< void > * resultptr = new ofArrayView< void >((const ofArrayView< void > &) result); ~~~~ ^ /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13967:27: error: use of undeclared identifier 'resultptr' ofArrayView< void > * resultptr = new ofArrayView< void >((const ofArrayView< void > &) result); ^ /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13967:43: error: unknown type name 'ofArrayView' ofArrayView< void > * resultptr = new ofArrayView< void >((const ofArrayView< void > &) result); ^ /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13968:35: error: use of undeclared identifier 'resultptr' SWIG_NewPointerObj(L,(void *) resultptr,SWIGTYPE_p_ofArrayViewT_void_t,1); SWIG_arg++; } return SWIG_arg; if(0) SWIG_fail; ^ /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13970:76: error: unknown type name 'ofMeshData'; did you mean 'ofMeshFace'? static int _wrap_MeshData_getNormalsData(lua_State* L) { int SWIG_arg = 0; ofMeshData *arg1 = (ofMeshData *) 0 ; ^~~~~~~~~~ ofMeshFace In file included from /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:2912: In file included from ../../../libs/openFrameworks/ofMain.h:49: In file included from ../../../libs/openFrameworks/gl/ofGLRenderer.h:4: In file included from ../../../libs/openFrameworks/graphics/of3dGraphics.h:12: In file included from ../../../libs/openFrameworks/3d/of3dPrimitives.h:3: ../../../libs/openFrameworks/3d/ofMesh.h:708:7: note: 'ofMeshFace' declared here using ofMeshFace = ofMeshFace_<ofDefaultVertexType, ofDefaultNormalType, ofDefaultColorType, ofDefaultTexCoordType>; ^ /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13970:96: error: use of undeclared identifier 'ofMeshData' static int _wrap_MeshData_getNormalsData(lua_State* L) { int SWIG_arg = 0; ofMeshData *arg1 = (ofMeshData *) 0 ; ^ /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13970:108: error: expected expression static int _wrap_MeshData_getNormalsData(lua_State* L) { int SWIG_arg = 0; ofMeshData *arg1 = (ofMeshData *) 0 ; ^ /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13971:21: error: use of undeclared identifier 'ofArrayView' SwigValueWrapper< ofArrayView< void > > result; SWIG_check_num_args("ofMeshData::getNormalsData",1,1) ^ /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13971:39: error: expected '(' for function-style cast or type construction SwigValueWrapper< ofArrayView< void > > result; SWIG_check_num_args("ofMeshData::getNormalsData",1,1) ~~~~ ^ /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13974:74: error: use of undeclared identifier 'result' SWIG_fail_ptr("MeshData_getNormalsData",1,SWIGTYPE_p_ofMeshData); } result = ((ofMeshData const *)arg1)->getNormalsData(); ^ /Users/cuinjune/Zack/openFrameworks/of_v0.10.0_osx_release/addons/ofxLua/src/bindings/desktop/ofxLuaBindings.cpp:13974:85: error: use of undeclared identifier 'ofMeshData' SWIG_fail_ptr("MeshData_getNormalsData",1,SWIGTYPE_p_ofMeshData); } result = ((ofMeshData const *)arg1)->getNormalsData(); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. I'm using Xcode 9.2 on macOS High Sierra 10.13.3. Am I missing something? Any advice or guidance would be greatly appreciated. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
@danomatika I see. Thank you so much for your work and I look forward to the updates on your addons.
Edit: By the way, I could successfully build and run ofxPd and ofxMidi examples using OF 0.10.0 after small fixes. I think you will be able to quickly update these two addons at least.
@danomatika May I ask when you are expecting to finish updating ofxLua for OF 0.10.0? (roughly)
@danomatika Hi, I could successfully build ofxLua on OF 0.10.0 when I download https://github.com/danomatika/swig-openframeworks/tree/of-0.10.0 and generate SWIG binding with
make desktop LANG=lua NAME=ofxLuaBindings
The generated SWIG binding doesn't have something called ofMeshData
which is causing the error.
Could you please tell me why https://github.com/danomatika/ofxLua/blob/of-0.10.0/src/bindings/desktop/ofxLuaBindings.cpp looks different from the one that I generate myself?
The bindings in that branch were generated when OF 0.10.0 was in testing and don't reflect any changes made for the release. I will probably get to OF stuff some time this coming week.
On Jun 30, 2018, at 2:18 PM, Zack Lee notifications@github.com wrote:
@danomatika https://github.com/danomatika Hi, I could successfully build ofxLua on OF 0.10.0 when I download https://github.com/danomatika/swig-openframeworks/tree/of-0.10.0 https://github.com/danomatika/swig-openframeworks/tree/of-0.10.0 and generate SWIG binding with
make desktop LANG=lua NAME=ofxLuaBindings
The generated SWIG binding doesn't have something called ofMeshData which is causing the error.
Could you please tell me why https://github.com/danomatika/ofxLua/blob/of-0.10.0/src/bindings/desktop/ofxLuaBindings.cpp https://github.com/danomatika/ofxLua/blob/of-0.10.0/src/bindings/desktop/ofxLuaBindings.cpp looks different from the one that I generate myself?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/danomatika/ofxLua/issues/49#issuecomment-401537598, or mute the thread https://github.com/notifications/unsubscribe-auth/AAdVfR0xOVpPcBTAhNgFlFvLk_bBly6Bks5uB2yMgaJpZM4UyFnF.
Dan Wilcox @danomatika http://twitter.com/danomatika danomatika.com http://danomatika.com/ robotcowboy.com http://robotcowboy.com/
I see, Thank you for explaining it. I look forward to your updates!
This should be fixed now with ofxLua 1.3.1. It took a while, but now the glm lib is wrapped for OF and Lua.
Hi, I just downloaded openFrameworks 0.10.0 and ofxLua-of-0.10.0 on macOS and then I opened luaExample on Xcode using the Project Generator.
However, when I build the project, I get the following errors.
I'm using Xcode 9.2 on macOS High Sierra 10.13.3. Am I missing something? Any advice or guidance would be greatly appreciated.