Skip to content

Instantly share code, notes, and snippets.

@cletrix
Created November 13, 2015 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cletrix/ecd08e95cbe32bdda424 to your computer and use it in GitHub Desktop.
Save cletrix/ecd08e95cbe32bdda424 to your computer and use it in GitHub Desktop.
Install Haxe, Neko, hxcpp, lime and OpenFL (3.2.2) on a raspberry pi 2 ( 06-08-2015 )
sudo apt-get install libgc-dev libpcre3-dev
sudo apt-get install mesa-utils build-essential git cmake libx11-dev
sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev libasound2-dev
#optional but recommended
sudo apt-get install sqlite3 libsqlite3-dev
sudo apt-get install libgtk2.0-dev (installs a lot of dependencies)
sudo apt-get install libmysqlclient-dev
#end optional
cd ~
mkdir haxe
cd haxe
mkdir src
cd /home/pi/haxe/src/
git clone https://github.com/HaxeFoundation/neko.git
cd neko
make all
sudo make install
cd /home/pi/haxe/src/
# get the package with a browser and move it to /home/pi/haxe/src/ .. wget doesn't seem to work
# wget http://haxe.org/download/file/3.1.3/haxe-3.1.3-raspi.tar.gz
# EDIT this one does seem to work
wget http://haxe.org/website-content/downloads/3.1.3/downloads/haxe-3.1.3-raspi.tar.gz
tar zxf haxe-3.1.3-raspi.tar.gz
cd ~/haxe/src/haxe-3.1.3
sudo mkdir /usr/lib/haxe
sudo cp -R std/ /usr/lib/haxe/std
sudo cp haxe* /usr/bin/
# make a user writable dir for the haxe libraries
# I keep mine in: /home/pi/haxe/lib
mkdir /home/pi/haxe/lib
haxelib setup
# enter path to haxelib >
Path : /home/pi/haxe/lib
haxelib install format
# make a dir for development libraries
mkdir /home/pi/haxe/libdev
cd /home/pi/haxe/libdev/
# THIS NO LONGER WORKS, because it seems the newer version needs haxe 3.2.0
# git clone https://github.com/HaxeFoundation/hxcpp.git
# haxelib dev hxcpp hxcpp
# cd /home/pi/haxe/libdev/hxcpp/tools/hxcpp/
# haxe compile.hxml -v
# cd /home/pi/haxe/libdev/hxcpp/project/
# neko build.n linux-m32 -v
## make sure u see a RPi dir in /home/pi/haxe/libdev/hxcpp/lib,
## otherwise duplicate the /home/pi/haxe/libdev/hxcpp/lib/Linux dir and rename it RPi
#get hxcpp from haxelib instead
haxelib install hxcpp
cd /home/pi/haxe/libdev/
git clone --recursive https://github.com/openfl/lime
haxelib dev lime lime
# get updated files from https://db.tt/1JFgOdLQ and overwrite files in appropiate directories
haxelib run lime rebuild tools -rpi -v
cd /home/pi/haxe/libdev/
git clone --recursive https://github.com/openfl/openfl.git
haxelib dev openfl openfl
haxelib install openfl-samples
haxelib install lime-samples
# you should now be able to run openfl
# try the following
mkdir /home/pi/openfl
cd mkdir /home/pi/openfl
openfl create DisplayingABitmap
cd DisplayingABitmap
openfl build linux -rpi -v
# then startx and go to /home/pi/openfl/DisplayingABitmap/Export/linux-rpi/cpp/bin/ and doubleclick the app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment