Fixed. Upstream changed path management in build system without me noticing it. You may need to delete the build directory if cmake fails.
Search Criteria
Package Details: widelands-bzr r7282-2
Package Actions
| Package Base: | widelands-bzr |
|---|---|
| Description: | A realtime strategy game with emphasis on economy and transport - development version |
| Upstream URL: | http://wl.widelands.org |
| Category: | games |
| Licenses: | |
| Conflicts: | |
| Provides: | |
| Submitter: | matthiaskrgr |
| Maintainer: | gamag |
| Last Packager: | gamag |
| Votes: | 2 |
| First Submitted: | 2012-04-21 17:53 |
| Last Updated: | 2014-12-04 20:00 |
Dependencies (9)
- glew
- sdl2_image
- sdl2_mixer
- sdl2_net
- sdl2_ttf
- boost (make)
- bzr (make)
- cmake (make)
- python (make)
Required by (0)
Sources
- changelog
Latest Comments
Comment by gamag
Comment by kaputtnik
Works fine :-)
exept: The executables are stored in directory /usr
Comment by gamag
It's hopefully working now.
Comment by gamag
Upstream no longer depends on lua (since bzr rev 6829).
Comment by TiborB
Well, I managed to compile it - though without PKGBUILD, the procedure is like this:
#Uninstall LUA, and have LUA51 installed.
$bzr branch lp:widelands
$cd widelands
$sed -i "1 i #include <unistd.h>" src/main.cc
$sed -i "/Boost_USE_STATIC_LIBS/d" CMakeLists.txt
$test -d build/compile && rm -rf build/compile/* #not relevant for PKGBUILD as there will be no residuals from previous compilation
$mkdir -p build/compile && cd build/compile
$cmake ../.. -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/bla/bla/ \
-DWL_INSTALL_PREFIX=/bla/bla/ \
-DWL_INSTALL_DATADIR=share/widelands \
-DWL_INSTALL_BINDIR=bin |
$make install # I install directly to final location
Hope it helps :)
Comment by TiborB
nevermind, I will keep trying..
Comment by matthiaskrgr
well, thats as far as I got... :/
Comment by TiborB
I found that I have LUA51 installed - still no success.
Comment by matthiaskrgr
There is a seperate lua51 package which can be installed next to 5.2.
I can't uninstall lua (5.2) because I have quite some dependencies on it so I can't tell if there are/will be other problems or not.
Comment by TiborB
I have current LUA (v. 5.2.2).
So I should downgrade and it will compile or there is another problem except the problem with LUA?
Comment by matthiaskrgr
Actually this should be a problem of the PKGBUILD, however if you have lua 5.2 installed, the build will fail anyway, I'm waiting for an upstream fix for that since several months now...
Comment by TiborB
Now it fails with:
patching file src/main.cc
Hunk #1 FAILED at 18.
1 out of 1 hunk FAILED -- saving rejects to file src/main.cc.rej
I understand this is not a problem of PKGBUILD, I will keep trying... Thanks
Comment by matthiaskrgr
Mmh no idea. Maybe try again later?
I had cloned the repo some time ago and pulling still seems to work.
Comment by TiborB
Hi,
it failed with:
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
bzr: ERROR: No such file: 'http://bazaar.launchpad.net/~widelands-dev/widelands/trunk/.bzr/repository/pack-names'
Any idea what is wrong?
Comment by matthiaskrgr
widelands does only build with lua 5.1 (it fails if you have 5.2 and 5.1 installed).
I'm waiting for an upstream fix.
Comment by MelTraX
Compilation fails at the moment:
[ 82%] Building CXX object src/CMakeFiles/widelands_all.dir/logic/worker_descr.cc.o
In file included from /tmp/yaourt-tmp-meltrax/aur-widelands-bzr/src/widelands-build/src/logic/worker_descr.cc:37:0:
/tmp/yaourt-tmp-meltrax/aur-widelands-bzr/src/widelands-build/src/scripting/pdep/llimits.h:18:9: error: ‘LUAI_UINT32’ does not name a type
typedef LUAI_UINT32 lu_int32;
^
/tmp/yaourt-tmp-meltrax/aur-widelands-bzr/src/widelands-build/src/scripting/pdep/llimits.h:47:9: error: ‘LUAI_USER_ALIGNMENT_T’ does not name a type
typedef LUAI_USER_ALIGNMENT_T L_Umaxalign;
^
/tmp/yaourt-tmp-meltrax/aur-widelands-bzr/src/widelands-build/src/scripting/pdep/llimits.h:88:9: error: ‘lu_int32’ does not name a type
typedef lu_int32 Instruction;
^
make[2]: *** [src/CMakeFiles/widelands_all.dir/logic/worker_descr.cc.o] Error 1
make[1]: *** [src/CMakeFiles/widelands_all.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: A failure occurred in build().