About Monkey 2 › Forums › Monkey 2 Programming Help › Monkey 2 Vs Raspberry Pi
This topic contains 6 replies, has 3 voices, and was last updated by
impixi
1 year, 8 months ago.
-
AuthorPosts
-
July 29, 2017 at 10:28 am #9590
I know there are some old threads related to Monkey2 running on Raspberry Pi but has anyone got the recent MX2 releases running on the Raspberry Pi Zero W or Raspberry Pi 3B?
I’m almost ready to have a crack at it myself (just waiting on some *fast* micro SD cards), so any tips appreciated. I plan on using a “minimalist” linux-based OS (not Raspian), so that might complicate matters too…
July 30, 2017 at 5:15 am #9600I never quite got SDL2 working properly on Pi, plus build times were atrocious!
I could get apps running, but the mouse wouldn’t be working or they’d crash on quit etc.
Good luck though, SDL2 does at least have Pi code in there.
July 31, 2017 at 10:29 am #9614A fresh checkout of monkey2 and ./mx2cc_raspbian makemods -verbose=3 has a MAV on container.monkey2. I currently suspect I don’t have enough ram on a pi2 for this kind of compilation.
August 1, 2017 at 2:16 am #9628I just tried compiling monkey2 on my Pi Zero W with Raspian OS installed and encountered the following:
pi@raspberrypi:/media/pi/USB Stick/monkey2/scripts $ ./rebuildmx2cc.sh
***** Rebuilding mx2cc *****
mx2cc version 1.0.9
***** Making module ‘monkey’ *****
Parsing…
Semanting…
Translating…
Compiling…
Build error: System command ‘arm-linux-gnueabihf-g++ -std=c++11 -I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads -O3 -DNDEBUG -I”/media/pi/USB Stick/monkey2/modules/monkey/native” -I”/media/pi/USB Stick/monkey2/modules/” -c -o “/media/pi/USB Stick/monkey2/modules/monkey/monkey.buildv1.0.9/raspbian_release/build/_1src_2monkey_0monkey.cpp.o” “/media/pi/USB Stick/monkey2/modules/monkey/monkey.buildv1.0.9/raspbian_release/src/monkey_monkey.cpp”‘ failed.arm-linux-gnueabihf-g++ -std=c++11 -I/opt/vc/include -I/opt/vc/include/interface/vmcs_host/linux -I/opt/vc/include/interface/vcos/pthreads -O3 -DNDEBUG -I”/media/pi/USB Stick/monkey2/modules/monkey/native” -I”/media/pi/USB Stick/monkey2/modules/” -c -o “/media/pi/USB Stick/monkey2/modules/monkey/monkey.buildv1.0.9/raspbian_release/build/_1src_2monkey_0monkey.cpp.o” “/media/pi/USB Stick/monkey2/modules/monkey/monkey.buildv1.0.9/raspbian_release/src/monkey_monkey.cpp”
/media/pi/USB Stick/monkey2/modules/monkey/monkey.buildv1.0.9/raspbian_release/src/monkey_monkey.cpp:14:1: error: ‘bbInit’ does not name a type
bbInit mx2_monkey_monkey_init(“monkey_monkey”,&mx2_monkey_monkey_init_f);
^***** Fatal mx2cc error *****
It looks like generated object file name discrepancy issues. The actual files in the monkey.buildv1.0.9/raspbian_release/build/ directory are named like:
_1_1_1native_2bbarray.cpp.o
Is this something I can fix at my end? I’m not properly familiar with the build tool chain yet…
Then again it might be better if I stick with plain old C for my Pi experiments, rather than try to hack monkey2…
August 1, 2017 at 3:21 am #9630I think I used this to build mx2cc_raspbian on windows:
http://gnutoolchains.com/raspberry/
If you install that, add it to PATH, rebuildmx2cc_raspbian.bat might magically work. Then you’ve just to get the exe from windows to pi.
I’ll have a go at getting it building again tomorrow. Currently at home downloading xcode as it was taking forever at work…and whadya know, after no small amount of blood sweat and tears I think I’ve just uploaded my first monkey2 ios app to itunes connect!
August 1, 2017 at 3:28 am #9631August 2, 2017 at 1:09 am #9656Thanks for the links Mark. I’ll try that when my spare SD cards arrive…
-
AuthorPosts
You must be logged in to reply to this topic.