Thread: [Quickfix-developers] Problems building applications (not quickfix itself) using XCode / OS X
Brought to you by:
orenmnero
|
From: Derrick J. <der...@ma...> - 2006-04-11 22:24:19
|
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. |
|
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. > |
|
From: Brian C. <co...@oc...> - 2006-04-12 00:17:19
|
I successfully tried a minimal project using XCode 2.2 (gcc 3.3 and 4.0). I also turned off zerolink and added "-lquickfix" to "Other Linker Flags". Brian Coyner Object Computing, Inc. On Apr 11, 2006, at 6:35 PM, Oren Miller wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/ > html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > 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. >> > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the > live webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers |