Fedora Linux Support Community & Resources Center
  #1  
Old 30th October 2011, 06:04 PM
AstralAbraxas Offline
Registered User
 
Join Date: Sep 2008
Posts: 39
linuxfedorafirefox
installing DevIL image library

I've installed DevIL image library on f14 but when I try to link it with g++ I am still getting an error stating:

fatal error: IL/IL.h: No such file or directory

As the error states I have

#include <IL/IL.h>

in my file... and I tried linking DevIL with -lIL

My only guess is that it's not installed properly. I've installed it using yum... I'm really not sure what to do in order to get it to work... When I installed it everything seemed to go ok...

I know I'm not really giving a whole lot of information to go on but I really have no idea.
Reply With Quote
  #2  
Old 30th October 2011, 06:18 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,860
linuxfedorafirefox
Re: installing DevIL image library

It is telling you that /usr/include/IL/... doesn't exist.

If you use the -I option you need to specify the path to the directory referenced (IL) in this case. Not the directory itself. If you have IL installed in your home directory then the path would be
/home/install, where /home/install/IL/IL.h would be the full path.

Alternatively, you can also use relative paths - If you have the directory IL in your working directory then you can use -I . (current directory).

The default operation for #include <something.h> is to include the file /usr/include/somehting.h. If it is <something/something.h> then it is to include the file /usr/include/something/something.h. To specify other directories you have to specify the path to replace the "/usr/include"
with; and that option is -I for the compilers.
Reply With Quote
Reply

Tags
devil, image, installing, library

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Library problem while installing matlab quetzalcoatl86 Using Fedora 2 8th September 2011 05:12 AM
Error while installing a library khalidorama Using Fedora 1 10th February 2008 09:27 AM
Installing a library, how? DanMachado Installation, Upgrades and Live Media 4 23rd July 2007 10:32 AM
Digital image/photo library management steve_waters Using Fedora 7 27th February 2006 11:19 AM
Installing gdl (Gnome Development Library) ChadL Using Fedora 3 2nd August 2005 05:01 PM


Current GMT-time: 16:29 (Thursday, 02-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat