Latest Posts

Topic: CMake Warning

Tmk
Avatar
Topic Opener
Joined: 2010-05-08, 17:06
Posts: 44
Ranking
Pry about Widelands
Posted at: 2013-03-28, 18:48

Hello. I'm trying to compile Widelands from source on openSUSE and CMake warns

CMake Warning at src/minizip/CMakeLists.txt:3 (message): You are using widelands-bundled minizip sources. Please install your distribution's minizip library..."

Which package would that be on openSUSE 12.3?

Also, it fails with

make[2]: *** [src/CMakeFiles/widelands_all.dir/scripting/lua_bases.cc.o] Fehler 1

make[1]: *** [src/CMakeFiles/widelands_all.dir/all] Fehler 2

make: *** [all] Fehler 2

Am I missing some lua packages? I have

liblua5_1 liblua5_1-32bit liblua5_2 lua lua-devel

Regards


Top Quote
SirVer

Joined: 2009-02-19, 14:18
Posts: 1445
Ranking
One Elder of Players
Location: Germany - Munich
Posted at: 2013-03-28, 19:32

looks good to me - you need to paste a little more of the output (best to pastebin or gist.github) or so to really see the error here.


Top Quote
gamag

Joined: 2012-01-05, 17:27
Posts: 15
Ranking
Pry about Widelands
Location: Switzerland
Posted at: 2013-03-28, 19:57

You need lua51 and lua51-devel


Top Quote
QCS

Joined: 2009-12-29, 21:47
Posts: 256
Ranking
Tribe Member
Posted at: 2013-03-29, 13:25

Looks like openSUSE does not have a minizip library (yet?). You might have to live with this warning for the time being... or switch to a distribution which gives you more freedom, like Gentoo/Sabayon.


CMake is evil.

Top Quote
Tmk
Avatar
Topic Opener
Joined: 2010-05-08, 17:06
Posts: 44
Ranking
Pry about Widelands
Posted at: 2013-03-29, 16:52

Hello. I installed lua51-devel, which removed lua-devel, which seems to be the openSUSE 12.3's default and was version 5.2.

I could live with the warning, if it compiled...

Here is the output of the terminal https://gist.github.com/anonymous/b27da2bd1e4a001d5600

Can you see anything?


Top Quote
SirVer

Joined: 2009-02-19, 14:18
Posts: 1445
Ranking
One Elder of Players
Location: Germany - Munich
Posted at: 2013-03-29, 17:56

It does not link the lua library into widelands - try removing everything that was created by the compile.sh and try again.


Top Quote
Tmk
Avatar
Topic Opener
Joined: 2010-05-08, 17:06
Posts: 44
Ranking
Pry about Widelands
Posted at: 2013-03-29, 18:20

I did and now it works. Thanks for the help everyone!


Top Quote
hjd

Joined: 2011-06-12, 19:24
Posts: 164
Ranking
At home in WL-forums
Location: bugs.launchpad.net/widelands
Posted at: 2013-03-29, 20:56

Tmk: Nice to hear thinks worked out in the end. Likely CMake had cached the other version the lua libraries and tried to use those instead of the packages you installed afterwards.

Btw, could someone please update the list of packages required for building on OpenSuse to what is currently needed?


Ships!

Top Quote
Tmk
Avatar
Topic Opener
Joined: 2010-05-08, 17:06
Posts: 44
Ranking
Pry about Widelands
Posted at: 2013-03-29, 22:27

The list is fine for 12.3, except libpng14-devel needs to be replaced with libpng15-devel. Did that.


Top Quote