Games compilation howto on the Pinebook-pro (Manjaro Linux and Debian native)
Starcraft on Pinebookpro Manjaro

http://45.76.81.249/Pinebook64/pinebook-...starcraft/


// Make sure we have Lua5.1 !!
// When multiple Lua versions are present
// We need to define lua version during cmake
// And stratagus works probably with Lua 5.1 only

// For the build's sake remove lua (5.3) and lua52
// pacman -R lua lua52


// Lets install a few dependencies
// Assuming we already have the
// GCC build environment in place

# pacman -S
cmake
lua51
harfbuzz
tolua++
libtheora
libmikmod
sdl2 sdl2_graphics sdl2_image sdl2_mixer sdl2_net sdl2_ttf
sqlite
libmng
wget

// I have uploaded the working sources to my repo
// for others to replicate the build
// Original location is https://launchpad.net/stratagus/+download
// I have patched the source code so that it builds using GCC 8 and 9
//
// Create a working directory STARCRAFT
// Download stratagus sources and extract them

mkdir $HOME/STARCRAFT
cd $HOME/STARCRAFT
wget http://45.76.81.249/Pinebook64/pinebook-...hed.tar.gz
gunzip stratagus_2.2.7.patched.tar.gz
tar -xvf stratagus_2.2.7.patched.tar
cd stratagus_2.2.7.patched
mkdir build
cd build
cmake ..
make -j3
su
# make install
# exit

// Lets download and compile stargus

cd $HOME/STARCRAFT
wget http://45.76.81.249/Pinebook64/pinebook-...2.7.tar.gz
gunzip stargus_2.2.7.tar.gz
tar -xvf stargus_2.2.7.tar
cd stargus_2.2.7
mkdir build
cd build
CFLAGS="-isystem /usr/include/harfbuzz" CXXFLAGS="-isystem /usr/include/harfbuzz" cmake ..
make -j3
su
# make install
# exit

// Now we need to extract the stargus.tar data tarball and place it
// in /usr/local/share/games/stratagus/
// I have included the Starcraft data since the extraction does not
// work for me on aarch64 - it worked on x86_64 with startool
// and I believe the game is offered for free from Blizzard anyway

// Download the Starcraft Data file

cd $HOME/STARCRAFT
wget http://45.76.81.249/Pinebook64/pinebook-...targus.tar
tar -xvf stargus.tar
su
# rm -rf /usr/local/share/games/stratagus/stargus

// Copy or move the extracted stargus tarball here

# cp -rv /home/user/STARCRAFT/stargus /usr/local/share/games/stratagus

// Finally symlink the game binary

# ln -s /usr/local/games/stargus /usr/local/bin/stargus
# exit

// Play the game

stargus


P.S Please note that on higher resolutions other than 800x600
the game crashes when building a first structure ..
It seems to be stable on 800x600
  Reply


Messages In This Thread
RE: Games compilation howto on the Pinebook-pro (Manjaro Linux and Debian native) - by astr0baby - 06-30-2020, 02:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinebook problem meghancordo 1 212 07-24-2025, 07:28 AM
Last Post: mikehenson
Question Printing and scanning documents with pinebook? Www 0 440 06-28-2025, 01:25 AM
Last Post: Www
Question Full desktop Surfing and Absolute Privacy on the pinebook? Www 0 178 06-28-2025, 01:04 AM
Last Post: Www
  Pinebook Pro in EU for Sale - €90 jan_vdk 4 2,771 06-19-2025, 02:14 AM
Last Post: shelfaberrant
  Pinebook pro bricked? michaelmoua 2 829 03-12-2025, 11:09 AM
Last Post: tophneal
  Use SD to install new OS over pinebook debian Rudy558 10 15,216 03-09-2025, 11:17 AM
Last Post: davisthomas
  Problem: Wi-Fi Connectivity Issues on Pinebook Pro markwood00 1 971 02-05-2025, 03:56 AM
Last Post: waylonwesley
  Pinebook Next !spekulation! Surehand53 2 1,420 01-23-2025, 11:49 AM
Last Post: Surehand53
  Pinebook Pro wants a PIN for my bluetooth mouse ColoBill 1 764 01-19-2025, 04:38 PM
Last Post: ColoBill
Tongue Yet another Pinebook Pro won't boot thread pinemouth 5 5,076 12-27-2024, 11:38 AM
Last Post: akash3995

Forum Jump:


Users browsing this thread: 3 Guest(s)