Software > Applications and Porting

How to build Barony Game

(1/2) > >>

Borley:
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: ---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
--- End code ---

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


--- Code: ---cmake .. -DOPENAL_ENABLED=ON

cd ../

make -j 4
--- End code ---

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: ---wget https://github.com/TurningWheel/Barony/releases/download/V3.3.7-dev/tmp-master-assets.zip

unzip tmp-master-assets.zip
--- End code ---

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: ---./barony
--- End code ---
to play

ClassicHasClass:
I assume this is the game? http://www.baronygame.com/ Looks fun!

Borley:
Very much. I only go out of my way to build from source is a game is particularly interesting.

tle:
I have to try out this game. Thanks for sharing the tips

Borley:
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

Navigation

[0] Message Index

[#] Next page

Go to full version