[Qgis-developer] Link issues on mac
tim at linfiniti.com
Wed Apr 2 14:07:16 EDT 2008
Hi William and Tom
Ah brilliant thanks for the sage advice! Strangely I upgraded both my
iMac at work (which doesnt exhibit this issue) and my newly
reinstalled macbook (which does exhibit this issue) at home to xcode
2.5. Ill try your tips and add an appropriate note to the INSTALL
document when I have it working.
On the subject of cocoa, i finally (I think!) wrapped my brain around
what the difference between cocoa and carbon is after reading a good
article on the history of os x on wikipedia. I even wrote a silly
little app in objective-c. Objective-c + carbon looks interesting but
Qt4 still seems to be the most intuitive development framework I've
ever come across....but maybe I'm biased :-) One nice thing about the
cocoa app was that the resulting app bundle was miniscule because it
didnt need all those hulking great Qt libs stuck inside it.
2008/4/2, Tom Elwertowski <telwertowski at comcast.net>:
> With Xcode 2.5 (Tiger), I get the link to /Library/Frameworks but not to
> /usr/local; I had to add it myself. With Xcode 3.0 (Leopard), I get links to
> /Library/Frameworks and /usr/local/lib (but not the rest of local).
> I recently acquired a new Mac and also had build difficulties. I edited
> CMakeCache.txt to get around the problems so I could work on porting code to
> To build qgis quickly on my new Mac, I installed William's frameworks and
> compiled expat, gsl and postgres myself with installation to /usr/local.
> When I run cmake, I get the following message:
> CMake Error: This project requires some variables to be set,
> and cmake can not find them.
> Please set the following variables:
> I manually set these in CmakeCache.txt to get past the problem.
> If I configure without GRASS, I get georeferencer compile errors because
> gsl headers cannot be found. If I configure with GRASS, the build completes
> georeferencer/CmakeLists.txt contains GSL_INCLUDE_DIR but the definition
> (-I/usr/local/include) doesn't appear in flags.make. When I manually add it
> to flags.make, the build succeeds. When configuring with GRASS, the
> definition still doesn't appear in flags.make but the headers get found
> anyway. I'm using William's GRASS which isn't in /usr/local.
> William Kyngesburye wrote:
> > That happens automatically, behind the scenes, when you use an SDK. The
> problem with the SDKs in Tiger (it's fixed in Xcode 3 for Leopard) is that
> they don't have either /Library/Frameworks or /usr/local symlinks to find
> user libraries and frameworks.
> > Add those symlinks, and linking (and includes) should start working.
> > /Developer/SDKs/MacOSX10.4u.sdk/Library/Frameworks ->
> > /Developer/SDKs/MacOSX10.4u.sdk/usr/local -> /usr/local
> > On Apr 1, 2008, at 7:57 PM, Tim Sutton wrote:
> > > Hi Tom & William (and anyone else who may know)
> > >
> > > I resinstalled my macbook yesterday and am compiling qgis against hand
> > > built libs now. The same procedure worked fine on my imac at work but
> > > here I get lots of errors like this when linking libqgis_core:
> > >
> > > ld: warning can't open dynamic library:
> > >
> > > referenced from:
> > > (checking for undefined symbols may be affected) (No such file or
> > > directory, errno = 2)
> > >
> > > Do you know why its concatenating that /Developer/SDKs/MacOSX10.4u.sdk
> > > onto the front of my lib paths? As always any hints will be most
> > > appreciated.
> > >
> > > Many thanks
> > >
> > > Regards
> > >
> > > --
> > > Tim Sutton
> > >
> > -----
> > William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> > http://www.kyngchaos.com/
> > [Trillian] What are you supposed to do WITH a maniacally depressed robot?
> > [Marvin] You think you have problems? What are you supposed to do if you
> ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000
> times more intelligent than you and even I don't know the answer...
> > - HitchHiker's Guide to the Galaxy
QGIS Project Steering Committee Member - Release Manager
Visit http://qgis.org for a great open source GIS
openModeller Desktop Developer
Visit http://openModeller.sf.net for a great open source ecological
niche modelling tool
Home Page: http://tim.linfiniti.com
Irc: timlinux on #qgis at freenode.net
More information about the Qgis-developer