Author Topic: How to build Barony Game  (Read 6274 times)

Borley

  • Full Member
  • ***
  • Posts: 177
  • Karma: +16/-0
    • View Profile
How to build Barony Game
« on: June 13, 2021, 03:05:15 pm »
I have finally gotten around to building Barony from source. No changes need to be made as it builds and runs just fine on Power. However, the instructions are a little incomplete, so I thought I would share here for the other 3 people on Earth who play this and also use PowerPC.

Adapted from their resources:

Code: [Select]
apt install libsdl2-dev libsdl2-image-dev libsdl2-net-dev libsdl2-ttf-dev libpng-dev libz-dev libphysfs-dev rapidjson-dev

git clone https://github.com/TurningWheel/Barony.git

mkdir build && cd build

The OpenAL bit is important, otherwise it will have no sound.

Code: [Select]
cmake .. -DOPENAL_ENABLED=ON

cd ../

make -j 4

Should create barony: ELF 64-bit LSB pie executable, 64-bit PowerPC or cisco 7500, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld64.so.2, for GNU/Linux 3.10.0, BuildID[sha1]=3923290b782f5cac6359a315534a6b79471522ee, not stripped

Next, pull in the game resources:

Code: [Select]
wget https://github.com/TurningWheel/Barony/releases/download/V3.3.7-dev/tmp-master-assets.zip

unzip tmp-master-assets.zip

From your copy of Barony, the following asset directories will need to be copied into the same directory as the barony executable; books, images, items, maps, models, music, sound.

Code: [Select]
./barony to play
« Last Edit: December 22, 2021, 03:54:13 pm by Borley »

ClassicHasClass

  • Sr. Member
  • ****
  • Posts: 467
  • Karma: +35/-0
  • Talospace Earth Orbit
    • View Profile
    • Floodgap
Re: How to build Barony Game
« Reply #1 on: June 14, 2021, 01:24:20 pm »
I assume this is the game? http://www.baronygame.com/ Looks fun!

Borley

  • Full Member
  • ***
  • Posts: 177
  • Karma: +16/-0
    • View Profile
Re: How to build Barony Game
« Reply #2 on: June 14, 2021, 11:20:58 pm »
Very much. I only go out of my way to build from source is a game is particularly interesting.

tle

  • Sr. Member
  • ****
  • Posts: 463
  • Karma: +53/-0
    • View Profile
    • Trung's Personal Website
Re: How to build Barony Game
« Reply #3 on: September 15, 2021, 06:27:35 am »
I have to try out this game. Thanks for sharing the tips
Faithful Linux enthusiast

My Raptor Blackbird

Borley

  • Full Member
  • ***
  • Posts: 177
  • Karma: +16/-0
    • View Profile
Re: How to build Barony Game
« Reply #4 on: October 30, 2021, 01:29:45 pm »
If you're trying to run the current release of Barony, there is a breaking change in SDL image library beyond 2.0.9.

You will need to grab an older version of libSDL2-2.0.so.0 , libSDL2_ttf-2.0.so.0 and libSDL2_image-2.0.so.0

and launch with: LD_PRELOAD="$LD_PRELOAD /path/to/libSDL2-2.0.so.0 /path/to/libSDL2_ttf-2.0.so.0 /path/to/libSDL2_image-2.0.so.0" /path/to/barony

markr87

  • Newbie
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
@Borley
« Reply #5 on: December 15, 2021, 01:41:39 pm »
Thank you so much for bringing this little gem to our attention.  This is awesome.  Could you do "Delver" next?   :D

Borley

  • Full Member
  • ***
  • Posts: 177
  • Karma: +16/-0
    • View Profile
Re: How to build Barony Game
« Reply #6 on: December 22, 2021, 03:49:43 pm »
I would first need to buy a copy for the assets. Just a quick pass through my library also reminds me I have Eldritch which is in the same genre. Maybe I'd do that one first.

Borley

  • Full Member
  • ***
  • Posts: 177
  • Karma: +16/-0
    • View Profile
Re: How to build Barony Game
« Reply #7 on: August 07, 2024, 12:19:31 pm »
Recent releases appear to have dropped OpenAL audio, requiring audio to be disabled in compile options before Barony can be built successfully.

Which means that recent Barony (with all the fancy lighting improvements) cannot be played on PowerPC linux with audio, until this has been resolved.

Borley

  • Full Member
  • ***
  • Posts: 177
  • Karma: +16/-0
    • View Profile
Re: How to build Barony Game
« Reply #8 on: November 20, 2024, 03:41:20 pm »
Some progress has been made with OpenAL. OpenAL patches are buildable through https://github.com/damiencarol/Barony/tree/openal_refresh

The build process has changed a bit since starting this thread.

Code: [Select]
apt install libgl1-mesa-dev libsdl2-dev libsdl2-image-dev libsdl2-net-dev libsdl2-ttf-dev libphysfs-dev rapidjson-dev libglut-dev libopenal-dev libvorbis-dev
Code: [Select]
cmake .. -DFMOD_ENABLED=OFF -DOPENAL_ENABLED=1

make -j 4

Copy game assets books, data, fonts, images, items, maps, models, music, sound, themes into the directory from which you will be launching the barony executable.