• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Adding projects' libraries to a project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding projects' libraries to a project


  • Subject: Adding projects' libraries to a project
  • From: Steve Mills <email@hidden>
  • Date: Wed, 30 Nov 2005 10:59:37 -0600

I've working on converting our projects from CW to Xcode. We have several 3rd party subprojects that build static libs, and those projects are added to the main CW project and each main target links to one of the targets in those subprojects (debug or release).

After reading some Xcode docs, I dragged one of the new Xcode subprojects into the new main Xcode project, clicked open the subproject's triangle to reveal the products it builds, then dragged the .a from that subproject down to the Link Binary With Library build phase in the main project's target. That seemed like the right way to do it, but upon build it gives me an error that the static lib does not exist:

[[[[
Native Build of Target "Creator Pro" using Build Configuration "Debug"

Building ZeroLink launcher /DevDepot/main/creatortech/desktop/mac/ C2Mac/build/Debug/MultiAd Creator Pro DB.app/Contents/MacOS/MultiAd Creator Pro DB
mkdir "/DevDepot/main/creatortech/desktop/mac/C2Mac/build/Debug/ MultiAd Creator Pro DB.app/Contents/MacOS"
cd /DevDepot/main/creatortech/desktop/mac/C2Mac
/usr/bin/g++-4.0 -o "/DevDepot/main/creatortech/desktop/mac/ C2Mac/build/Debug/MultiAd Creator Pro DB.app/Contents/MacOS/MultiAd Creator Pro DB" -arch ppc /System/Library/PrivateFrameworks/ ZeroLink.framework/Resources/libZeroLinkAppStub.a -Wl,-all_load -L/ DevDepot/main/creatortech/desktop/mac/C2Mac/build/Debug "-L/DevDepot/ main/creatortech/desktop/mac/C2Mac/../../../../thirdparty/alphamask/ cwprojects/build/**" -F/DevDepot/main/creatortech/desktop/mac/C2Mac/ build/Debug -framework Carbon -framework QuickTime -framework ZeroLink -F/System/Library/PrivateFrameworks/ -Wl,-x -Wl,- unexported_symbols_list -Wl,/System/Library/PrivateFrameworks/ ZeroLink.framework/Versions/A/Resources/ZeroLinkAppStub.nexp -Wl,- sectcreate -Wl,__TEXT -Wl,__zerolink "-Wl,/DevDepot/main/creatortech/ desktop/mac/C2Mac/build/Creator.build/Debug/Creator Pro.build/Objects- normal/ppc/MultiAd Creator Pro DB.zerolink"
/usr/bin/ld: warning -L: directory name (/DevDepot/main/creatortech/ desktop/mac/C2Mac/../../../../thirdparty/alphamask/cwprojects/build/ **) does not exist


Bundlizing "/DevDepot/main/creatortech/desktop/mac/C2Mac/build/ Creator.build/Debug/Creator Pro.build/Objects-normal/ppc/ libImpulseLib PPC Debug.ab" "build/Debug/libImpulseLib PPC Debug.a"
mkdir "/DevDepot/main/creatortech/desktop/mac/C2Mac/build/ Creator.build/Debug/Creator Pro.build/Objects-normal/ppc"
cd /DevDepot/main/creatortech/desktop/mac/C2Mac
setenv MACOSX_DEPLOYMENT_TARGET 10.4
/usr/bin/gcc-4.0 -bundle "build/Debug/libImpulseLib PPC Debug.a" -Wl,-all_load -Wl,-twolevel_namespace -Wl,-twolevel_namespace_hints - Wl,-undefined -Wl,dynamic_lookup -Wl,-multiply_defined -Wl,suppress - o "/DevDepot/main/creatortech/desktop/mac/C2Mac/build/Creator.build/ Debug/Creator Pro.build/Objects-normal/ppc/libImpulseLib PPC Debug.ab"
powerpc-apple-darwin8-gcc-4.0.0: build/Debug/libImpulseLib PPC Debug.a: No such file or directory
]]]]


libImpulseLib PPC Debug.a is what the subproject builds, and it *does* exist.


Something unrelated I just noticed is the "setenv MACOSX_DEPLOYMENT_TARGET 10.4" in the output. Our projects use the 10.3.9 sdk. I just found the "Mac OS X Deployment Target" setting and changed it to 10.3. Can anyone explain the difference between these 2 settings? I can kinda grasp why they're different, but some expert explanations wouldn't hurt.


Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/


_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Adding projects' libraries to a project
      • From: "James Larcombe" <email@hidden>
  • Prev by Date: XCode 2.2 & Qt toolkit issues
  • Next by Date: Re: Adding projects' libraries to a project
  • Previous by thread: Re: XCode 2.2 & Qt toolkit issues
  • Next by thread: Re: Adding projects' libraries to a project
  • Index(es):
    • Date
    • Thread