Failed to compile (gentoo) (solved)

Failed to compile (gentoo) (solved)

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
gugux
Posts: 2
Joined: 27 May 2010, 13:42

Failed to compile (gentoo) (solved)

Post by gugux »

Hi,
when compiling spring, i get this error :

Code: Select all

...

[100%] Building CXX object rts/CMakeFiles/spring.dir/ExternalAI/SSkirmishAICallbackImpl.cpp.o   
Linking CXX executable ../spring                                                                
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../libIL.so: undefined reference to `png_set_gray_1_2_4_to_8'
collect2: ld returned 1 exit status
make[2]: *** [spring] Error 1
make[1]: *** [rts/CMakeFiles/spring.dir/all] Error 2
make: *** [all] Error 2
 * ERROR: games-strategy/spring-0.81.2.1 failed:
 *   Make failed!
I think it's a problem with png_set_gray_1_2_4_to_8 (deprecated ) renamed to png_set_expand_gray_1_2_4_to_8 but i don't know how to fix it...

(gentoo libpng 1.4.2)
Last edited by gugux on 28 May 2010, 10:32, edited 1 time in total.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: Failed to compile (gentoo)

Post by Tobi »

gugux wrote: I think it's a problem with png_set_gray_1_2_4_to_8 (deprecated ) renamed to png_set_expand_gray_1_2_4_to_8 but i don't know how to fix it...

(gentoo libpng 1.4.2)
Then it's most probably a dependency issue - your version of IL doesn't work properly with your version of libpng. Maybe try upgrading IL?
gugux
Posts: 2
Joined: 27 May 2010, 13:42

Re: Failed to compile (gentoo)

Post by gugux »

ok thx, it solved the problem
Post Reply

Return to “Linux”