Page 1 of 1

Failed to compile (gentoo) (solved)

Posted: 27 May 2010, 13:56
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)

Re: Failed to compile (gentoo)

Posted: 27 May 2010, 15:11
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?

Re: Failed to compile (gentoo)

Posted: 28 May 2010, 10:32
by gugux
ok thx, it solved the problem