Monkey 2 Vs Raspberry Pi

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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #9590

    impixi
    Participant

    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…

    #9600

    Mark Sibly
    Keymaster

    I 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.

    #9614

    Simon Armstrong
    Participant

    A 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.

    #9628

    impixi
    Participant

    I 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…

    #9630

    Mark Sibly
    Keymaster

    I 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!

    #9631

    Mark Sibly
    Keymaster

    This might be useful too:

    http://gnutoolchains.com/raspberry/tutorial/

    #9656

    impixi
    Participant

    Thanks for the links Mark. I’ll try that when my spare SD cards arrive…

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.