Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 27, 2008, 04:16 AM   #1
Soulstorm
macrumors 68000
 
Soulstorm's Avatar
 
Join Date: Feb 2005
Intalling 3rd Party Libraries... HELP

I am very frustrated. I am having a very bad problem installing ANY third party library into my Mac. I am using Leopard, but the problem was also apparent in Tiger.

I usually download a 3rd party library and I install it using ./configure and then "sudo make install". Although I see that the files have been installed inside "usr/local/include" (the headers are there!) when I try to make a new project and include those headers, XCode complaints that it can't file this file. However, I see that it is in its position!

This has happened to me with Boost libraries and PCRE library. Same thing, same result. Any suggestions? Do I need to set any environment variables using terminal?

Last edited by Soulstorm; Mar 27, 2008 at 04:29 AM.
Soulstorm is offline   0 Reply With Quote
Old Mar 27, 2008, 08:23 AM   #2
yeroen
macrumors 6502a
 
yeroen's Avatar
 
Join Date: Mar 2007
Location: Cambridge, MA
what happens when you compile from the command line?
__________________
all Jarvis, all the time
yeroen is offline   0 Reply With Quote
Old Mar 27, 2008, 08:36 AM   #3
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
I can't remember, but is /usr/local one of the paths that GCC uses?
kainjow is offline   0 Reply With Quote
Old Mar 27, 2008, 08:50 AM   #4
Soulstorm
Thread Starter
macrumors 68000
 
Soulstorm's Avatar
 
Join Date: Feb 2005
Quote:
Originally Posted by yeroen View Post
what happens when you compile from the command line?
You mean if I install the tools from the command line?

If shows me a lot of messages regarding compilation, and finally, it shows a message indicating that the installation was successful.



Quote:
Originally Posted by kainjow
I can't remember, but is /usr/local one of the paths that GCC uses?
How do I check that?

EDIT:

the following code
Code:
#include <iostream>
#include <pcre.h>

using namespace std;

int main(){
	cout << "hello!";
	return 0;
}
compiles well using the command line, but not using Xcode! What is wrong?
Soulstorm is offline   0 Reply With Quote
Old Mar 27, 2008, 10:18 AM   #5
lazydog
macrumors 6502a
 
Join Date: Sep 2005
Location: Cramlington, UK
Send a message via MSN to lazydog
Hi

Have you tried adding /usr/local/include to the "User Header Search Paths" in the project info options?

b e n
lazydog is offline   0 Reply With Quote
Old Mar 27, 2008, 10:24 AM   #6
kpua
macrumors 6502
 
Join Date: Jul 2006
Quote:
Originally Posted by lazydog View Post
Hi

Have you tried adding /usr/local/include to the "User Header Search Paths" in the project info options?
Yes, you must do this on OSX, because directories in /usr/local/ are not in the PATH by default.
kpua is offline   0 Reply With Quote
Old Mar 27, 2008, 02:39 PM   #7
Soulstorm
Thread Starter
macrumors 68000
 
Soulstorm's Avatar
 
Join Date: Feb 2005
Quote:
Originally Posted by kpua View Post
Yes, you must do this on OSX, because directories in /usr/local/ are not in the PATH by default.
That did it. Thanks a lot, guys. I will also try this with the Boost Libraries and see what I will find.
Soulstorm is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
iPhone: 3rd party accessories? x-evil-x Jailbreaks and iOS Hacks 4 Jan 11, 2014 02:26 PM
Has anyone tried these 3rd party offerings? iRoRo iOS 7 2 Nov 26, 2013 08:33 PM
3rd party replacement for itunes uoft23 iPod 2 Mar 26, 2013 12:37 PM
3rd party iMacs shipping? TouchMint.com iMac 3 Dec 6, 2012 10:24 PM
3rd party scanner software? FortWorthMac Mac Peripherals 5 Nov 30, 2012 01:37 PM

Forum Jump

All times are GMT -5. The time now is 07:38 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC