Camera Hacker


Add Comment | Related Links | TrackBack
Related Content

Nikon SDK & mac OS X

Nikon SDK for Mac OS X is provided with sample programs, mostly CodeWarrior projects. Only most recent cameras are provided with a Xcode sample project. I tried the sample program for D200 (CodeWarrior) under Xcode ; I could compile it by forcing c++ compilation, but the programs hangs on module loading.
A friend of mine could compile & run without problem using CodeWarrior. However, I cannot use codewarrior for many reasons.
It seems modules given with the SDK are "old style" (compatible with old system 8 !) the SDK uses deprecated methods to access the ressources (like getDiskFragment)
I had no problem with D2 sample, given as Xcode project. There, modules are "new style" (Mac OS X ressource bundle).

Has anyone been able to compile & run old-style ressource (D200 for example) under Xcode ?
What modifications / compilation options should be done ?
Thank you very much

Mon, 25 Jun 2007 01:37:49 -0700

Without being able to give you any specifics (Nikon Europe simply ignores my SDK requests):

You'll need to investigate first _what_ type of libraries you have.
For Xcode you need libraries which are at least Carbon compliant. GetDiskFragment is an "old" Code Fragment Manager API to load CFM binaries.

When you use that with Xcode,
a.) the calling conventions won't match (PEF vs. Mach-O), there is an Apple sample somewhere demonstrating how to swizzle the API
b.) CFM is not implemented for Intel, so you can use it only under Rosetta on modern machines.

Wed, 30 Jul 2008 22:45:40 +0000

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 7 - 2?
Click button only once, please!


TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.

Messages, files, and images copyright by respective owners.