I just got a Raspberry Pi 2 and would love to test it with OpenFL / Lime. I’ve seen other people having success running some of the samples with the first model (i think).
How would i go about compiling it for Raspberry Pi 2 Model B?
I would like to see Raspberry Pi 2 support as well
I believe that it supports the “armhf” architecture, which I have built from a desktop Ubuntu system using the additional GCC toolchain (I forget the package name) and the current lime rebuild linux -rpi command
I forget if it required modifications to HXCPP or not.
My big problem was no Haxe or Neko for armhf so I did not test on a real device. I think it would be neat to have something similar to “Python Games” and a ready-to-go package to work on the Pi
I believe I’ve built already using a desktop Ubuntu install, I think I also compiled using Ubuntu on the Raspberry Pi. If you can build Lime for armhf using -rpi, then it’s a matter of getting armhf builds of Neko and Haxe from somewhere, primarily
I started on this a while ago, but so far no luck on raspian wheezy.
I did manage to compile neko ( you will have to compile the targets from the makefile manually in a specific order) and dowloaded the haxe binary. I then got as far as installing haxelib. But I get some path errors ( weird double // in path) when trying to installing lime.
Maybe we can make it a joint effort. I’ll document what I’ve done and where I get stuck. If anyone else is willing to have a go…
I can try the whole process here the next weekend - i’ll follow both of your recommendations and then post my results here. If we can find what is missing maybe we can make this work.
I’m doing individual make steps because ‘make all’ won’t work for me
make std
make neko
make libneko
make compiler
make libs ( interactive, you will be asked to skip if a package is not avaiblable)
make tools
make test
sudo make install
Uncaught exception - load.c(237) : Failed to load library : /usr/lib/haxe/lib/lime/2,5,2//ndll/Linux/lime.ndll (/usr/lib/haxe/lib/lime/2,5,2//ndll/Linux/lime.ndll: cannot open shared object file: No such file or directory)
got the dev version from git, but neko build.n goes into an endless loop:
Usage : neko build.n [clean] [link-]target[-arch][-arch] …] [-debug] [-verbose] [-D…]
target : ios, android, windows, linux, mac, mingw
default (=current system)
link : ndll- or static-
(none specified = both link types, mingw static only
arch : -armv5 -armv6 -armv7 -arm64 -x86 -x86_64 -m32 -m64
(none specified = all valid architectures
-D… : defines passed to hxcpp build system
eg: neko build.n clean ndll-mac-m32-m64 = rebuild both mac ndlls
Specify target or ‘default’ to remove this message
Using default = linux
neko run.n Build.xml -Dlinux -DHXCPP_M64 /home/pi/software/hxcpp/project/
This version of hxcpp (/home/pi/software/hxcpp/) appears to be a source/developement version.
Before this can be used, you need to:
Rebuild the main command-line tool, this can be done with:
cd tools/hxcpp
haxe compile.hxml
Build the binaries appropriate to your system(s), this can be done with:
cd project
neko build.n
Would you like to do this now [y/n]y
Compiling hxcpp tool…
Standard library not found
Building binaries…
Hehe I was just typing this , it looks like I didn’t install Haxe properly on this SD-card (got too many) …
I have been trying to find a proper installation guide for haxe on rpi2 but no luck so far.
I just got the binaries and copied them over to /usr/local/bin/ .
Is there a default path for the std directory that Haxe looks for, or should I add a variable to my .profile ?
i.e.: export HAXE_STD_PATH=/SOME/PATH