Currently Online

Latest Posts

Topic: Arch linux compilation fails

Tibor
Joined: 2009-03-23, 23:24
Posts: 1348
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2020-08-30, 21: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, 20:48
Posts: 1905
Ranking
One Elder of Players
Location: Germany
Posted at: 2020-08-30, 22:11

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

./compile.sh -a

works as intended.


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

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


Busy indexing nil values

Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 23:16
Posts: 1492
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2020-08-31, 09: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, 20:48
Posts: 1905
Ranking
One Elder of Players
Location: Germany
Posted at: 2020-08-31, 18: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, 18:19

Top Quote
Tibor
Joined: 2009-03-23, 23:24
Posts: 1348
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2020-08-31, 19: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, 23:16
Posts: 1492
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2020-08-31, 20:01

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


Top Quote
Tibor
Joined: 2009-03-23, 23:24
Posts: 1348
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2020-08-31, 20: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