Latest Posts

Topic: Crash in build19 "A Place to Call Home"

Lokimaros
Avatar
Topic Opener
Joined: 2016-10-21, 16:51
Posts: 49
Ranking
Pry about Widelands
Location: Leiden, the Netherlands
Posted at: 2016-10-28, 08:26

cd /usr/local/src/widelands-repo/trunk/build cmake .. vi CMakeCache.txt # Changing to CMAKE_INSTALL_PREFIX:PATH=/usr/local/games/widelands cmake .. ninja ninja install


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 14:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2016-10-28, 08:31

That definitely does not define the datadir. You have to define it.

We have a WL_INSTALL_BASEDIR and a WL_INSTALL_DATADIR in our CMakelists.txt.

I hope that helps, I'm no CMake expert.

Edited: 2016-10-28, 08:33

Busy indexing nil values

Top Quote
Lokimaros
Avatar
Topic Opener
Joined: 2016-10-21, 16:51
Posts: 49
Ranking
Pry about Widelands
Location: Leiden, the Netherlands
Posted at: 2016-10-28, 15:15

After some wrestling and spelling out the compile.sh script, it appears the procedure to install it my way is:

#!/bin/s
cd /usr/local/src/
bzr branch lp:widelands
cd widelands
if [ ! -d build ]; then
mkdir build
fi
cd build
rm compile.log
cmake -G Ninja ..  -DCMAKE_BUILD_TYPE=Debug -DWL_INSTALL_BASEDIR=/usr/local/games/widelands -DOPTION_BUILD_WEBSITE_TOOLS=ON -DOPTION_BUILD_TRANSLATIONS=ON | tee compile.log
ninja 2>&1 | tee -a compile.log
ninja install 2>&1 | tee -a compile.log

Top Quote
Lokimaros
Avatar
Topic Opener
Joined: 2016-10-21, 16:51
Posts: 49
Ranking
Pry about Widelands
Location: Leiden, the Netherlands
Posted at: 2016-10-30, 10:01

Oops, I tell a lie, again. It should be -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/games/widelands, not -DWL_INSTALL_BASEDIR=/usr/local/games/widelands, though I use both now for safety's sake:

root@hex /usr/local/src/widelands/src Sun Oct 30 10:34:43
$ cat /usr/local/bin/bwl
#!/bin/sh
cd /usr/local/src/
#bzr branch lp:widelands
cd widelands
if [ ! -d build ]; then
mkdir build
fi
cd build
rm compile.log
cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Debug -DWL_INSTALL_BASEDIR=/usr/local/games/widelands -DOPTION_BUILD_WEBSITE_TOOLS=ON -DOPTION_BUILD_TRANSLATIONS=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/games/widelands 2>&1 | tee compile.log
ninja 2>&1 | tee -a compile.log
ninja install 2>&1 | tee -a compile.log
root@hex /usr/local/src/widelands/src Sun Oct 30 10:50:29
$


HTH, HAND.


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 14:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2016-10-30, 11:10

Glad you got it working face-smile.png


Busy indexing nil values

Top Quote
Lokimaros
Avatar
Topic Opener
Joined: 2016-10-21, 16:51
Posts: 49
Ranking
Pry about Widelands
Location: Leiden, the Netherlands
Posted at: 2016-10-30, 11:57

Well, at least someone is glad, then. Oh, wait, so am I! ;-)


Top Quote