Has anybody have any problems getting GiGi to see DevIL?

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderators: Committer, Committer

Post Reply
Message
Author
Olexander
Space Krill
Posts: 3
Joined: Tue Dec 09, 2003 3:07 am
Location: US, Kentucky

Has anybody have any problems getting GiGi to see DevIL?

#1 Post by Olexander » Wed Dec 10, 2003 6:08 pm

I'm having problem with GiGi's configure or DevIL libraries:
GiGi' configure does not pass on DevIL check:
I got DevIL Installed, so when configure check for it:

configure:23027: checking for DevIL
configure:23052: gcc -o conftest -g -O2 -I/usr/include/SDL -D_REENTRANT conftest.c -lILUT -lGL -lGLU -L/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread -lIL -lILU >&5
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../crt1.o(.text+0x18): In function `_start':
: undefined reference to `main'
/usr/lib/libIL.so: undefined reference to `_vsnprintf'
collect2: ld returned 1 exit status

so it seems that libIL.so has some problem (?), by the way all checks for IL, ILU, ILUT went fine.

Any ideas?
---------------------------
Olexander Lozitskiy

Linux Forever

_Robbob_
Krill Swarm
Posts: 12
Joined: Tue Jul 22, 2003 10:39 am

#2 Post by _Robbob_ » Mon Feb 23, 2004 3:49 pm

This is a bug in the latest version of Devil. Check the il_tiff.c file and add this line at the top:

#define _vsnprintf vsnprintf

and then recompile

User avatar
Tyreth
FreeOrion Lead Emeritus
Posts: 885
Joined: Thu Jun 26, 2003 6:23 am
Location: Australia

#3 Post by Tyreth » Tue Feb 24, 2004 12:21 am

If you have troubles with configure, you can also check one of the files it generates - not sure which one. This will show you more precisely what the problem was.

In this case, though, you have an answer 8)

Post Reply