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 Pro Initial Impressions kunger 443 590,692 04-16-2024, 07:29 PM
Last Post: KC9UDX
  looking to buy one pinebook pro (mainland China) duanduan 3 2,317 03-21-2024, 07:44 PM
Last Post: wangyukunshan
  Cellular module for Pinebook Pro Lotech 1 406 03-05-2024, 05:40 AM
Last Post: KC9UDX
  Screen on pinebook stays black but can ssh into machine tuxxpine 0 309 02-23-2024, 04:22 PM
Last Post: tuxxpine
  Sale my ANSI PineBook Pro cuthbertdavies 0 295 02-14-2024, 09:12 PM
Last Post: cuthbertdavies
  Compiling with -j6 on the Pinebook Pro (Overheat) KC9UDX 0 231 02-14-2024, 09:01 AM
Last Post: KC9UDX
  Manjaro versions bad and good gilwood 0 258 02-12-2024, 05:03 PM
Last Post: gilwood
  Pinebook Pro in EU for Sale - €90 jan_vdk 2 682 02-07-2024, 02:12 AM
Last Post: 23Ro
  Pinebook Pro for sale tomekdev 2 762 02-01-2024, 11:35 AM
Last Post: tomekdev
  Video Editing Is Possible On The PineBook Pro! ImmyChan 10 7,632 12-17-2023, 09:29 PM
Last Post: insideau786

Forum Jump:


Users browsing this thread: 6 Guest(s)