About Monkey 2 › Forums › Monkey 2 Development › RPI 2 Build…
This topic contains 9 replies, has 4 voices, and was last updated by
AdamStrange
2 years, 3 months ago.
-
AuthorPosts
-
December 27, 2016 at 8:32 pm #6048
I’ve been messing around with the Raspberry Pi for a while now, I’ve had the Pi 2B for about over 6 months. Having had experience with Linux before hand, the Raspbian OS wasn’t too hard for me to get into. Definately a great platform for hobbyists and indie devs. I saw the mx2cc_raspbian in the Monkey repo and I wanted to checked it out, I installed the required packages to run a complete rebuild of Monkey and Ted2 on the new OS for the Raspberry Pi called “Pixel”
And after a bit of scratching my head, I actually got it to build and run ALMOST without any issues!
The build of Ted2 seems to be working fine in terms of writing code, building and running code. But I’ve noticed a few things.
– Every GUI Based App is always Fullscreen regardless of EndFullscreen()’s presence.
– Opening/Saving a File in Ted2 makes everything freeze. I suspect this is due to the Open File Function is being called but since Ted2 is Fullscreen and essentially “always on top,” it’s waiting for the File Dialog to close before unsuspending itself.Does anyone else have a build on the Raspberry Pi that’s doing this? I’m running Monkey 1.0.91
Cheers
December 27, 2016 at 9:06 pm #6050you could just use a text editor and compile using a terminal or even a Makefile…
I should dust off my PI sometime… but I’m not a systemd fan, and despite what some people think systemd isn’t optional in Jessie, there are that many dependencies that its impossible to disinfect a system, AntiX Linux now have loads of packages, many with only package dependencies removed, its almost as if it were done on purpose… I digress … could be an excuse to try out Void Linux on PI it works excellently on my laptop… anyway…
../../monkey2/bin/mx2cc_linux makeapp mojotest.monkey2
will build your app obviously your relative path to mx2cc will probably be different
if you run mx2cc (there’s a pi one) you can get a list of all the parameters
December 27, 2016 at 9:46 pm #6052I spent a fair bit of time on the Raspberry Pi but just couldn’t get it working well/properly.
If you want GLES20 acceleration then yes, you’re stuck with a ‘fullscreen mode’ that doesn’t play particularly nicely with the desktop X GUI (if at all?).
If anyone has any tweaks etc, please let me know, but it’s a frustrating target to write for – VERY slow build times of course, plus you’re kind of own you’re own when it comes to getting it working, with very sparse/confusing docs etc.
I don’t want to remove raspberry Pi support, but it’s a little much for me to take on ‘properly’ right now.
December 27, 2016 at 9:53 pm #6054I’ve opted to go with that solution for now. Hopefully this won’t be too hard to fix. xD
Edit: Oh I see. xD Yeah I’ve noticed building apps takes forever
As for any workarounds. I found THIS and it appears that.
“After talking to developers in the SDL FreeNode IRC channel, it would seem that SDL 2.0.3 has removed all windowed mode support for Raspbian. So the answer is: It’s currently not possible to have windowed SDL2 programs on Raspbian.”
So I guess the only way would be too downgrade the libsdl-dev to a version lower than 2.0.3… But this is where my knowledge stops. Heh…
December 27, 2016 at 10:12 pm #6055No, I think in general you can’t use GLES20 HW acceleration in ‘X’ on Pi (although no one seems to *really* know…). I think SDL used to support software rendering in X, but that’s not much use. There’s a whole lower level ‘layer’ system in there for accelerated GLES20 support.
There was a beta GL driver with HW acceleration that sort of worked, but it was doing something weird with quad vertex colors. I suspect it’ll take a while to be usable. Might be an eventual option though.
December 27, 2016 at 10:31 pm #6056Wow, this goes deep into the 1 and 0’s.
I guess since it’s even working in the first place is a huge step forward. I’m sure we’ll get there.I’ll just add Window Controls on the top of the Ted2 GUI specifically for the raspbian build and see how far I can get with it. xD Thanks for the reply!
December 30, 2016 at 10:13 am #6106how do you get monkey2 running on a pi. I just get compile errors. is there is proper set of step by sep instructions?
December 30, 2016 at 10:36 am #6107keeps failing on SDL_CreateWindow
December 31, 2016 at 2:18 pm #6117There aren’t any “proper” instructions that I know of at the moment.
I just used the ol’fashioned process of trial and error, and google. xD
All I know is that a fresh install of the Raspbian/Pixel OS is missing a lot of packages for building Monkey Apps.
base-devel
libsdl-dev
libudev (I think)I don’t remember exactly what I did. xDxDxD
I’ll see if I can do it again and make “proper” instructions after the new year.January 2, 2017 at 6:11 am #6133That would be great. I found I can run V1.02, but not any others.
I’ve also found that the sol bug mean you can’t run compiled things from ted. but shut down and run from the desktop. only one opengl window on a pi. So I’m getting better
-
AuthorPosts
You must be logged in to reply to this topic.