Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 10-13-2005, 02:27 PM   #1
KeithHedger
Prospect
 
Join Date: May 2005
Location: England
Posts: 14
Unhappy setting a library path for configure/make cycle

Hi
hope someone can help i am trying to compile a unix commandline programme (dvdauthor) but when i run ./configure i get a message saying that it cant find a library, the lib has actually been installed via dawinports and is at /op/local/lib i have tried setting LIB,DYLD_LIBRARY_PATH and LD_LIBRARY_PATH in my bash profile but cant get the extra dirs recognized by config even though they show up as set if i type env in the terminal,
if i use a symlink the config works fine so i know the librarys themselves are ok but obviously keep makeing symlinks is not the best way to do things i just want to add extra search paths like i do for executable
any help would be appreciated
__________________
wish i could tpye
KeithHedger is offline   Reply With Quote
Old 10-13-2005, 02:34 PM   #2
GlowingApple
Major Leaguer
 
Join Date: Feb 2004
Location: Lincoln, NE
Posts: 278
I know that most configure scripts will have an option to direct them to specific libraries that they need. This won't solve all your library issues like setting some sort of search path, but it will work on a configure by configure basis. I would try running ./configure --help and see if there is an option to specify a library path.
__________________
~Jayson <www.kempinger.us>
GlowingApple is offline   Reply With Quote
Old 10-13-2005, 02:45 PM   #3
blb
All Star
 
Join Date: Jan 2002
Location: CO, USA
Posts: 908
Don't mess with the DYLD_* vars (you can break stuff if you do it wrong). The following should work:
Code:
env CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" ./configure
That'll tell configure to also look in DP's include and lib dirs for stuff at the right time. And using them within env keeps them set only when needed.
blb is offline   Reply With Quote
Old 10-13-2005, 03:40 PM   #4
KeithHedger
Prospect
 
Join Date: May 2005
Location: England
Posts: 14
Thumbs up

spot on! worked perfectly thanks a bunch
__________________
wish i could tpye
KeithHedger is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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



All times are GMT -5. The time now is 11:37 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.