Advertisement

DevIL & Dev-C++

Started by June 16, 2002 02:18 PM
51 comments, last by guppy 22 years, 1 month ago
After getting the latest update, this error has corrected itself... however a new one has emerged where it wants to include d3d8.h from ilut.h for some reason, even if I get rid of my config.h''s directx option:

Like so:
//#define ILUT_USE_DIRECTX8

Oh brother...

"Don''t be afraid to dream, for out of such fragile things come miracles."
Look in ilut.h and comment out the lines:

#define ILUT_USE_ALLEGRO
#define ILUT_USE_WIN32

Even though you (probably) are compiling for windows, I don''t think you need that WIN32 line, as long as you keep ILUT_USE_OPENGL
Advertisement
It''s ok, I fixed the problem. I was actually modifying the wrong config.h... haha

Now for the questions that will make me really look like a newbie. How exactly do I go about linking the proper libs for both OpenGL and DevIL?

My DevIL libs are named as follows:
libIL.la
libILU.la
libILUT.la

OpenGL:
libopengl32.a
libglu32.a

Then, I have the .so files for DevIL, but they seem to have extra file extensions to denote their version. Will this have some kind of adverse effect? Where do these belong, anyhow?

"Don''t be afraid to dream, for out of such fragile things come miracles."
Actually, I''ve got the OpenGL libs linking correctly (-lopengl32 -lglu32) but the DevIL libs don''t seem to be recognized. Why is the extension .la rather than .a for these? Is it simply a matter of changing the extension to .a?

"Don''t be afraid to dream, for out of such fragile things come miracles."
Alright, renaming doesn''t work, because it says the format is not recognized.

"Don''t be afraid to dream, for out of such fragile things come miracles."
quote:
Original post by Redleaf
Actually, I've got the OpenGL libs linking correctly (-lopengl32 -lglu32) but the DevIL libs don't seem to be recognized. Why is the extension .la rather than .a for these? Is it simply a matter of changing the extension to .a?

"Don't be afraid to dream, for out of such fragile things come miracles."


You should have done as Erunama sugested rigth from the start and gotten them off my web site

The .la files are from the linux pack! that is they are compiled to run under linux so that most definitively wont work!

As for linking options (that too is written on my site ) they are '-ldevil -lilu -lilut'

'-ldevil' for il
'-lilu' for ilu
'-lilut' for ilut

btw if it starts bitching about d3d8.h again try to #undef ILUT_USE_OPENGL (in the correct config.h offcourse )


also Erunama say to comment out the line #define ILUT_USE_WIN32
allthough it has no imidiate effect I don't think you should do that - after all you are compiling for win32


Happy Coding!

[edit]
Corrected a quote...
[/edit]


/Please excuse my bad spelling - My native language is binary not english
|Visit me
\Take my advice - I don''t use it...

[edited by - guppy on June 18, 2002 2:44:02 AM]
/Please excuse my bad spelling - My native language is binary not english|Visit meTake my advice - I don''t use it...
Advertisement
Yeah, I probably should have done that from the start. It was probably stubbornness at wanting to find a more direct way.

I''ve got your files, and will try it out when I wake up. If I have anymore difficulties, I''ll be back...

"Don''t be afraid to dream, for out of such fragile things come miracles."
Well, somehow I was able to figure out my problem. I am not sure how, but I did add an error checker right before deleting the image. I added a log file (code borrowed from ShiningKnight''s game tutorials... I hope he doesn''t mind), but there were no DevIL errors. And yes, it is deleting the image because I added a log output right after deleting it (they are in the same ''if'' statement).
With your .a libs, I was able to compile and link without a problem. Thanks. Now I just have to figure out why I get an illegal op every time on startup.

I should have begun development testing with Dev-C++. Oh well...

"Don''t be afraid to dream, for out of such fragile things come miracles."
Maybe if you post your code / problem here the regular crowd can be of some assistance

/Please excuse my bad spelling - My native language is binary not english
|Visit me
\Take my advice - I don''''t use it...
/Please excuse my bad spelling - My native language is binary not english|Visit meTake my advice - I don''t use it...

This topic is closed to new replies.

Advertisement