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
Question Pinebook pro dead / keyboard issue? / Troubleshooting Mengalef 2 363 12-05-2024, 04:16 PM
Last Post: tllim
  Testing Some More Games on the Pinebook Pro! ImmyChan 5 3,943 09-24-2024, 01:43 AM
Last Post: pigkang
  Converting the Pinebook Pro into a CrowView Note like device 8jef 0 349 08-18-2024, 05:42 PM
Last Post: 8jef
  Pinebook Pro Initial Impressions kunger 443 685,174 04-16-2024, 07:29 PM
Last Post: KC9UDX
  looking to buy one pinebook pro (mainland China) duanduan 3 3,280 03-21-2024, 07:44 PM
Last Post: wangyukunshan
  Cellular module for Pinebook Pro Lotech 1 1,049 03-05-2024, 05:40 AM
Last Post: KC9UDX
  Screen on pinebook stays black but can ssh into machine tuxxpine 0 754 02-23-2024, 04:22 PM
Last Post: tuxxpine
  Sale my ANSI PineBook Pro cuthbertdavies 0 740 02-14-2024, 09:12 PM
Last Post: cuthbertdavies
  Compiling with -j6 on the Pinebook Pro (Overheat) KC9UDX 0 666 02-14-2024, 09:01 AM
Last Post: KC9UDX
  Manjaro versions bad and good gilwood 0 726 02-12-2024, 05:03 PM
Last Post: gilwood

Forum Jump:


Users browsing this thread: 41 Guest(s)