(by sashikknox)
![]() |
![]() |
|---|---|
![]() |
![]() |
- first, install SailfishSDK
- prepare for build
- on Linux: you should add
SailfishSDK/binfolder to your PATHor just run sfdk tool, use absolute path, like# by default, SailfishSDK installs to ~/SailfishOS export PATH=~/SailfishOS/bin/:${PATH}
~/SailfishOS/bin/sfdk ... - on Windows, SailfishOS SDK bin folder should be too in PATH
- list SailfishOS targets names
sfdk engien exec sb2-config -lit should show you something like
SailfishOS-4.0.1.48-armv7hl
SailfishOS-4.0.1.48-i486
this targets you should use in next step for build rpm files for SailfishOS
4. then, you can build game (on Windows and Linux, gae build in same way)
# first create buildroot
mkdir -p `pwd`/build_rpm/SOURCES
# and create sources archive from current commit
git archive --output `pwd`/build_rpm/SOURCES/harbour-quake2.tar.gz HEAD
# if ypu change comething, you should first commit it, then build RPM,
# or pack you sources by yourself, something like
# tar -czvf `pwd`/build_rpm/SOURCES/harbour-quake2.tar.gz Engine Ports SDL2 spec
# then install dependencies in arm target
sfdk engine exec sb2 -t SailfishOS-4.0.1.48-armv7hl -R -m sdk-install zypper in -y pulseaudio-devel\
wayland-devel libGLESv2-devel wayland-egl-devel wayland-protocols-devel libusb-devel libxkbcommon-devel\
mce-headers dbus-devel libvorbis-devel libogg-devel rsync
# and build ARM version of Quake2
sfdk engine exec sb2 -t SailfishOS-4.0.1.48-armv7hl rpmbuild --define "_topdir `pwd`/build_rpm" --define "_arch armv7hl" -ba spec/quake2.spec
# then install dependencies in i486 target
sfdk engine exec sb2 -t SailfishOS-4.0.1.48-i486 -R -m sdk-install zypper in -y pulseaudio-devel\
wayland-devel libGLESv2-devel wayland-egl-devel wayland-protocols-devel libusb-devel libxkbcommon-devel\
mce-headers dbus-devel libvorbis-devel libogg-devel rsync
# and build ч86 version of Quake2
sfdk engine exec sb2 -t SailfishOS-4.0.1.48-i486 rpmbuild --define "_topdir `pwd`/build_rpm" --define "_arch i486" -ba spec/quake2.spec


