Latest Posts

Topic: Arch linux compilation fails

Tibor

Topic Opener
Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2020-08-30, 20:40

I am trying to compile current master and get this:

 ninja: error: '/usr/lib/lib/libSDL2main.a;/usr/lib/lib/libSDL2.so;-lpthread', needed by 'src/ai/test/test_ai', missing and no known rule to make it

I seems to have all dependencies, at least I checked our wiki page about installation (arch linux part)

These are sdl2 packages on my system

sdl2-2.0.12-2
sdl2_image-2.0.5-2
sdl2_mixer-2.0.4-4
sdl2_net-1:2.0.1-3
sdl2_ttf-2.0.15-2

Thanks


Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 19:48
Posts: 2498
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2020-08-30, 21:11

I have the same sdl2 packages installed, but had no trouble compiling widelands. Not using ninja though.

./compile.sh -a

works as intended.


Fight simulator for Widelands:
https://wide-fighter.netlify.app/

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

You'll probably need to get a newer CMake version.


Busy indexing nil values

Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 22:16
Posts: 2714
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2020-08-31, 08:54

It would be helpful to have the full log of the compilation attempt to understand what is going on.


Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 19:48
Posts: 2498
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2020-08-31, 17:19

For comparison here the versions i have installed:

cmake: 3.18.2-1
gcc: 10.2.0-1
boost: 1.72.0-2
glew: 2.2.0-2
make: 4.3-3
clang: 10.0.1-1
Edited: 2020-08-31, 17:19

Fight simulator for Widelands:
https://wide-fighter.netlify.app/

Top Quote
Tibor

Topic Opener
Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2020-08-31, 18:06

Ou, I updated the system - still no change, but after deleting build directory it started to compile.

Just for the record the problem looked like:

-- Configuring done
-- Generating done
-- Build files have been written to: /var/widelands2/git/trunk/build
ninja: error: '/usr/lib/lib/libSDL2main.a;/usr/lib/lib/libSDL2.so;-lpthread', needed by 'src/ai/test/test_ai', missing and no known rule to make it

Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 22:16
Posts: 2714
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2020-08-31, 19:01

So the problem is gone now, isn't it?


Top Quote
Tibor

Topic Opener
Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2020-08-31, 19:07

Sorry, compilation finished in the meantime - successfully.

It is pity I had not try to delete the directory, but most of time works without it...


Top Quote