Open dancemanUK opened 3 months ago
For Raspberry Pi, things are a bit more involve than other platforms. You can't use Neko, HashLink, or other runtimes. You need to use the rpi
target specifcally. Additionally, the rpi
target doesn't currently work correctly with Lime 8.1 and older. You're going to need to check out the Lime git repository and rebuild lime.ndll for Raspberry Pi.
git clone https://github.com/openfl/lime.git --recurse-submodules
cd lime
haxelib dev lime .
lime rebuild rpi -clean -release -nocffi
Then, in your project, you should be able to run:
lime test rpi
对于Raspberry Pi来说,事情比其他平台更复杂一些。您不能使用 Neko、HashLink 或其他运行时。您需要专门使用目标。此外,目标目前无法在 Lime 8.1 及更早版本中正常工作。您将需要查看 Lime git 存储库并为 Raspberry Pi 重建 lime.ndll。
rpi``rpi
git clone https://github.com/openfl/lime.git --recurse-submodules cd lime haxelib dev lime . lime rebuild rpi -clean -release -nocffi
然后,在您的项目中,您应该能够运行:
lime test rpi
Thank you , I will download the development version and retest it
You will also need to use hxcpp from git on a raspberry pi 5 running 64bit os. This morning a bug was fixed that made all 64bit haxe cpp apps crash on the pi4/5 crash. Also you might have to check out the 8.2.0-Dev branch of my fork of lime (gepatto/lime) because (64bit) raspberry pi support is not yet official and my fork handles the proper selection of 32/64 bit flags.
actuate: [1.9.0] box2d: [1.2.3] flixel-addons: [3.2.3] flixel-demos: [3.2.0] flixel-templates: [2.7.0] flixel-tools: [1.5.1] flixel-ui: [2.6.1] flixel: [5.8.0] format: [3.7.0] hxcpp: 4.3.2 [git] hxp: [1.3.0] layout: [1.2.1] lime-samples: [7.0.0] lime: 8.1.3 [dev:/home/pi/lime] openfl-samples: [8.7.0] openfl: [9.3.4]
Compiling group: native-toolkit-openal g++ -Ilib/openal/ -Ilib/custom/openal/alc/ -Ilib/openal/alc/ -Ilib/custom/openal/build/ -Ilib/openal/common/ -Ilib/custom/openal/include/ -Ilib/openal/include/ -DAL_ALEXT_PROTOTYPES -D_LARGEFILE_SOURCE -D_LARGE_FILES -DNOMINMAX -Ilib/custom/sdl/include/ -Ilib/sdl/include/ -Ilib/sdl/include/configs/rpi/ -DHAVE_SDL2 -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=500 -mfpu=neon -fcommon -fPIC -fvisibility=hidden -pthread -c -fvisibility=hidden -O2 -fpic -fPIC -Wno-overflow -DHX_LINUX -DRASPBERRYPI=RASPBERRYPI -DHXCPP_VISIT_ALLOCS(haxe) -DHXCPP_API_LEVEL=0(haxe) -I/home/pi/haxelib/hxcpp/git/include ... tags=[haxe,static]
pi@raspberrypi:~/lime $ git switch 8.2.0-Dev 分支 '8.2.0-Dev' 设置为跟踪 'origin/8.2.0-Dev'。 切换到一个新分支 '8.2.0-Dev' pi@raspberrypi:~/lime $ git pull 已经是最新的。 pi@raspberrypi:~/lime $ haxelib dev lime . Development directory set to /home/pi/lime pi@raspberrypi:~/lime $ lime rebuild rpi -clean -release -nocffi Compiling group: lime g++ -Iinclude -Ilib/custom/cairo/src/ -Ilib/custom/cairo/configs/linux/ -Ilib/cairo/src/ -DLIME_CAIRO -DHAVE_CONFIG_H -DCAIRO_HAS_FT_FONT -Ilib/curl/include/ -DLIME_CURL -DCURL_STATICLIB -Ilib/efsw/include/ -DLIME_EFSW -Ilib/freetype/include -DLIME_FREETYPE -Ilib/harfbuzz/src -DLIME_HARFBUZZ -Ilib/hashlink/src -DLIBHL_EXPORTS -Ilib/custom/jpeg/ -Ilib/jpeg/ -DLIME_JPEG -Ilib/lzma/src -DLIME_LZMA -Ilib/custom/ogg/include/ -Ilib/ogg/include/ -Ilib/vorbis/include/ -DLIME_OGG -Ilib/openal/include/ -DLIME_OPENAL -DLIME_OPENALSOFT -DAL_LIBTYPE_STATIC=1 -DAL_ALEXT_PROTOTYPES -DLIME_OPENGL -Ilib/custom/png/ -Ilib/png/ -Ilib/zlib/ -DLIME_PNG -Ilib/sdl/include/ -Ilib/sdl/include/configs/rpi/ -DHAVE_LIBC -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -I/usr/include/libdrm -I/usr/include/dbus-1.0 -I/usr/lib/arm-linux-gnueabihf/dbus-1.0/include -I/usr/local/include -ldrm -lgbm -Wl,--no-undefined -lm -ldl -ldrm -lpthread -lrt -DLIME_SDL -DHAVE_STDIO_H -Ilib/tinyfiledialogs/ -DLIME_TINYFILEDIALOGS -Ilib/ogg/include/ -Ilib/vorbis/include/ -DLIME_VORBIS -DLIME_ZLIB -c -fvisibility=hidden -O2 -fpic -fPIC -Wno-overflow -DHX_LINUX -DRASPBERRYPI=RASPBERRYPI -DHXCPP_VISIT_ALLOCS(haxe) -DHXCPP_API_LEVEL=0(haxe) -I/home/pi/haxelib/hxcpp/git/include ... tags=[haxe,static]