Re: [Quickfix-developers] Problems building applications (not quickfix itself) using XCode / OS X
Brought to you by:
orenmnero
|
From: Oren M. <or...@qu...> - 2006-04-11 23:35:24
|
I just tried creating a new XCode project (I'm still on version 2.0). I put in bare code to create a simple QuickFIX initiator. The only two settings I changed are setting ZeroLink to false, and adding -lquickfix to Other Linker Flags (is this where you did it). I was then able to run the application. --oren Derrick Johnson wrote: > Tiger 10.4.6 > G5 / 1.8GHz / 1GB RAM > XCode 2.2 > > I followed the directions and did the following with no errors at all > (w00t): > > 1. Built and installed libquickfix.dylib and libquickfix.la (the > install script automatically put them in /usr/bin/local and I made > sure I was root to do this step) > > 2. Built (using make) their tests (runut and runat and > runat_threaded). All worked 100% with no errors. > > 3. Build (using make) their examples and ran them. Again, no errors > at all. > > ============= Problem starts here =============== > > I created my own code snippet (C++ command line tool was the project > type I used in Xcode). > I then added the quickfix headers directory to [Project / Edit Project > Settings / HEADER_SEARCH_PATHS]. > The compile step ran flawlessly. > > The link phase failed miserably. It couldn't find the quickfix > library at all (BTW I had ZeroLink disabled), which makes sense > because I didn't add it to the project ;-) > > So I tried to add this in [Targets / Link Libraries With Files] but I > couldn't get the dialog box to go to /usr/local/lib (It wouldn't > display in the window). When I went to my root volume, it only > displayed the "Apple" direectories like "/Library" and "/Users". > > I am massively stuck. I can probably get it to work with their > makefile but I'd like to get it to build in XCode for several reasons. > > BTW, if it helps, I tried debugging this by exiting Xcode and on the > command line running "xcodebuild", which, as expected, failed in the > exact same way. I added "-l quickfix" at the end and it still didn't > work (it said it couldn't find the quickfix file). > > Interestingly, when I removed *_only_ * the -isysroot option, it > WORKED. WTF, this is supposed to affect header files only, according > to g++-4.0 documentation. > > Any help is GREATLY appreciated. Thanks in advance. > |