danomatika / swig-openframeworks

a SWIG interface for openFrameworks with included Makefile, submodule this in your language wrapper addons
Other
39 stars 11 forks source link

error when generating bindings for linux on raspberry pi 3 #11

Closed stephanschulz closed 7 years ago

stephanschulz commented 7 years ago

i am trying to make new swig bindings for ofxPython. it worked will for of 0.9.8 on OS X but not on linux on my pi3.

i am using the .generatebindings.sh from ofxPython https://github.com/antimodular/ofxPython/blob/master/generatebindings.sh i changed the word desktop to linuxarm as per your readme file.

but i get make: *** No rule to make target 'linuxarm'. Stop

would you know what i am doing wrong?

thanks.

danomatika commented 7 years ago

Looks like the swig-of submodule in ofxPython is 2 years old, probably before the linuxarm target was added. Update to the current version.

Also, I'd suggest updating the generatebindings.sh script to generate both desktop and linuxarm bindings to subdirectories and then only build the correct source files based on the platform. This is what ofxLua does, see https://github.com/danomatika/ofxLua/blob/master/scripts/generate_bindings.sh and https://github.com/danomatika/ofxLua/blob/master/addon_config.mk.

stephanschulz commented 7 years ago

wow thanks for your super fast reply.

i have forked the original addon, downloaded your current swig master, and got it all to work for of 0.9.8. see my OF0.9.8 branch

but linux was still not working. but i see now that in addon_config.mk armv6+7 was empty.

so i will try these changes: https://github.com/antimodular/ofxPython/blob/OF0.9.8/generatebindings.sh https://github.com/antimodular/ofxPython/blob/OF0.9.8/addon_config.mk do you think this will work?

this is all new to me. i am learning as i go.

thanks.

danomatika commented 7 years ago

In the addon_config.mk:

For the generatebindings script:

danomatika commented 7 years ago

Also, open an issue to update ofxPython on the ofxPython repo. The rest are details with that project and not specific to the swig bindings.