View Full Version : Linux, DevIL SDK 1.6.7?
Aggrav8d
07-12-2004, 12:48 AM
I've tried to get the latest Linux SDK for DevIL (v1.6.7) working on my machine but the ./configure file appears to be broken. If you know how to get this version to work OR have had success with an earlier version, please let me know. This is all that stands between me and finally compiling for linux.
On a mostly unrelated note, here's a puzzler: program A needs B.a which references C.a. I expected that when I build A and link to B and C that everything would be fine, but I guess I'm a little too used to Win32. gcc-3.4.0 complained that there were references in .o files of B that could not be resolved, and I know that the references it was looking for are in C. I found a workaround, but the question remains: What did I do wrong?
Thank you!
Aggrav8d
07-12-2004, 12:56 AM
I'm running Mandrake 10.0 Community, gcc-3.4.0, and the exact error message I get is
configure: error: cannot run /bin/sh libtools/config.sub
/bin/sh exists. libtools/config.sub exists. I don't know why it can't run.
It may be of interest to note that I find I cannot run gcc unless I am in root. I don't know why. When I try to make I get the error
make: execvp: gcc: Permission denied.
I have tried asking in Freenode #gcc, they're never around. I tried asking in #coders, pretty much the same thing. Google wasn't a help, either.
ggambett
07-12-2004, 05:19 AM
You didn't grab the CVS files in Windows and moved it to Linux and tried to compile, didn't you?
CVS in Windows (or a Zip file made in Windows) puts \r\n (CR LF) to end each line, Linux uses only \n (LF), which confuses bash. Try running dos2unix on the scripts you can't execute.
You can also have your permissions b0rked. You should be able to run gcc as any user.
Aggrav8d
07-12-2004, 08:12 PM
yes, i think my permissions are borked. i did the dos2unix thing and then found there were some Makefiles missing from DevIL-1.6.7/src-IL/src so i grabbed the 1.6.5 version and copied them out of there. after that ./configure seemed to work but make dies with the message:
libtool: link: AGE '7' is greater than the current interface number '1'
libtool: link: '1:6:7' is not valid version information
make[2]: *** [libIL.la] Error 1
make[2]: Leaving directory 'DevIL-1.6.7/src-IL/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 'DevIL-1.6.7/src-IL/'
Make: *** [all-recursive] Error 1
ggambett
07-13-2004, 05:32 AM
Now I have no idea.
The dos2unix thing has shown what was the problem but maybe you didn't completely fix it. Have you tried grabbing the sources from CVS from a linux box, or downloading sources from .tar.gz?
I don't know exactly why are you compiling DevIL, but I have it compiled and running fine, I can send it to you if you want. PM your email address.