LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-03-2003, 05:41 AM   #1
KDE4me
Member
 
Registered: Apr 2003
Location: Australia
Distribution: RedHat 9.0 / Slackware 9.0/ FreeBSD 4.8 / Solaris 8 x86 / Mandrake 9.0
Posts: 90

Rep: Reputation: 15
header include path


Hi,
I'm trying to get an installation to recognize a header file that I already have located in /usr/local/include/ClanLib-0.7/ClanLib/ called core.h
I've put a symlink in /usr/include to /usr/local/include/ but it won't recognize core.h. From what I gather from other postings is that the include path includes the directory /usr/include. There is no shell $INCLUDE variable and setting it to include my target directory has not worked.

Is there some way to create an include path for ./configure. I've tried a couple of ways but they haven't worked so far.

The closest thing I believe to what I want is located here:
http://www.redhat.com/knowledgebase/.../building.html
but this stuff is way over my head:
>You can provide the header include path to autoconf based packages by running configure with a few environment variables set:

env PATH=/usr/i386-glibc20-linux/bin;$PATH \
CXX=i386-glibc20-linux-c++ \
CXXFLAGS=-I/usr/i386-glibc20-linux/include/g++ ./configure

Any ideas?
 
Old 07-28-2004, 08:45 AM   #2
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
Quote:
I'm trying to get an installation to recognize a header file that I already have located in /usr/local/include/ClanLib-0.7/ClanLib/ called core.h
I know I am dragging a dead cow out of the ditch ;-) but for anyone having the same problem it could save some frustration... I was trying to configure Pingus with the same error ('missing' ClanLib/core.h)

Just move /usr/local/include/ClanLib-0.7/ClanLib/* to /usr/local/include/ClanLib/* and Bob's y'r uncle ;-)

Added several minutes later:
...not quite... it solves the above problem, but next is that libclanCore can't be found, whereas it is clearly present as a link in /usr/local/lib.... aaaarrgghhh...
Code:
checking ClanLib/core.h usability... yes
checking ClanLib/core.h presence... yes
checking for ClanLib/core.h... yes
checking for main in -lpthread... yes
checking for xml2-config... xml2-config
checking for main in -lHermes... no
checking for main in -lclanCore... no
ClanLib installed, but -lclanCore not found, run 'ldconfig' and try again,
if that doesn't help have a look at the file config.log and look into
the FAQ.
Well, ldconfig didn't matter, so now I'm heading for the faq. I'll post back if I find a way out of this...

Cheers, Leon.

Last edited by BroX; 07-29-2004 at 01:56 AM.
 
Old 07-28-2004, 11:10 AM   #3
Gkarfield
Member
 
Registered: Jul 2004
Location: Greece
Distribution: FreeBSD 6.2/widows[not 8 legs nor black]
Posts: 123

Rep: Reputation: 15
ahm quite the same thing , I get ".....no" in many places. I am a Goldfish minded, i have no "make" i dont knoe hoe i lost it, in the firts insall was there...... but now ......... ouaaaaaaaaaa (argg in greek)
 
Old 07-29-2004, 02:13 AM   #4
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
I successfully installed Hermes libraries, and reinstalled ClanLib, but without result on the configuration of Pingus. Guess I'll just use the binaries ;-) If anyone has an idea why libclancore can't be found, please let me know!

Cheers, Leon.
 
Old 01-05-2005, 11:33 PM   #5
adriaanbw
Member
 
Registered: May 2003
Location: Brisbane, Australia
Distribution: Fedora Core 4 with XFCE
Posts: 128

Rep: Reputation: 16
bumping this along, any answers yet???

I am using FC3, anyone with ideas for how I can get this game to work.
 
Old 01-06-2005, 05:31 AM   #6
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
I used the binaries
 
Old 01-06-2005, 06:17 AM   #7
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
where exactly is clanlib on your system?

as for picking up headers in non-standard locations, the CFLAGS environment variable takes care of that (and setting compiler optimizations and such) so for example if the header is in /usr/local/include/ClanLib-0.7/ClanLib you could:

export CFLAGS="-I/usr/local/include/ClanLib-0.7/ClanLib"

and it should pick up that directory

for the libs in nonstandard directories LDFLAGS or LD_LIBRARY_PATH will do (I like the latter better)
so for example if clanlib was installed in /usr/local/lib/clanlib you could:

export LD_LIBRARY_PATH=/usr/local/lib/clanlib:$LD_LIBRARY_PATH

which will set /usr/local/lib/clanlib as the first directory searched by the linker.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel header (include) files - where do i find these walkerx Mandriva 2 04-17-2005 08:19 AM
Include Custom Header Kenji Miyamoto Programming 3 01-13-2005 08:46 PM
where did my include path go aot2002 Linux - Wireless Networking 2 01-24-2004 05:02 AM
Problem with C++ include/header files! Pisces107 Programming 12 12-23-2003 11:06 PM
need perl fuction like c #include statement for header file mrtwice Programming 5 06-19-2003 02:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration