• 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
Re: Unable to link universal binary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to link universal binary


  • Subject: Re: Unable to link universal binary
  • From: "Adam R. Maxwell" <email@hidden>
  • Date: Sat, 8 Apr 2006 10:09:19 -0700


On Apr 8, 2006, at 04:39, Diederik Hoogenboom (Eetay) wrote:

I was able to resolve the QT... symbols by adding the QuickTime Framework (in addition to the QTKit framework). Still no solution for resolving the PDF... symbols comming from the PDFKit API's.

The PDFDocument... symbols aren't defined, which appears to be a bug in PDFKit (rdar://problem/4450214) unless we're both doing something wrong. Take a look at the Voyeur sample code to see how they're defined; in my code I've declared new constants based on that.


--
Adam




On 7-apr-2006, at 21:22, Diederik Hoogenboom (Eetay) wrote:

I am trying to build a Release target (Universal Binary) for an app I'm developing. The Debug configuration works fine, but that no surprise with zero-link on. when I build under the Release configuration I get the following error:

Checking Dependencies
Ld "/Users/Diederik/Documents/Programming Projects/DiskLibrary/ build/DiskLibrary.build/Release/DiskLibrary.build/Objects-normal/ ppc/DiskLibrary" normal ppc
cd "/Users/Diederik/Documents/Programming Projects/DiskLibrary"
/usr/bin/gcc-4.0 -o /Users/Diederik/Documents/Programming\ Projects/DiskLibrary/build/DiskLibrary.build/Release/ DiskLibrary.build/Objects-normal/ppc/DiskLibrary -L/Users/Diederik/ Documents/Programming\ Projects/DiskLibrary/build/Release -F/Users/ Diederik/Documents/Programming\ Projects/DiskLibrary/build/Release -filelist /Users/Diederik/Documents/Programming\ Projects/ DiskLibrary/build/DiskLibrary.build/Release/DiskLibrary.build/ Objects-normal/ppc/DiskLibrary.LinkFileList -framework Cocoa - framework QuartzCore -framework IOKit -framework Quartz -framework QTKit -arch ppc -prebind -mmacosx-version-min=10.4 -lz -isysroot / Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/ld: warning -prebind ignored because MACOSX_DEPLOYMENT_TARGET environment variable greater or equal to 10.4
/usr/bin/ld: Undefined symbols:
_PDFDocumentAuthorAttribute
_PDFDocumentCreationDateAttribute
_PDFDocumentCreatorAttribute
_PDFDocumentKeywordsAttribute
_PDFDocumentModificationDateAttribute
_PDFDocumentProducerAttribute
_PDFDocumentSubjectAttribute
_PDFDocumentTitleAttribute
_QTCopyMovieMetaData
_QTMetaDataGetItemProperty
_QTMetaDataGetItemValue
_QTMetaDataGetNextItem
_QTMetaDataRelease
collect2: ld returned 1 exit status




The PDF... should be resolved by including <Quartz/Quartz.h> (PDFKit is included in Quartz), the QT.. symbols should be resolved by including <QTKit/QTMovie.h>. As you can see the Quartz and QTKit frameworks are included when the linker is called.

I am a little puzzled by the prebind warning as well.


Can anybody tell me what I have missed?


Diederik

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Unable to link universal binary (From: "Diederik Hoogenboom (Eetay)" <email@hidden>)
 >Re: Unable to link universal binary (From: "Diederik Hoogenboom (Eetay)" <email@hidden>)

  • Prev by Date: Re: setProcessName: not working
  • Next by Date: Re: Altering CoreData generated view/controls
  • Previous by thread: Re: Unable to link universal binary
  • Next by thread: precision problem or my error?
  • Index(es):
    • Date
    • Thread