Skip navigation
Currently Being Moderated

Mac SDK example plugins - none compile (Missing Base SDK)

Dec 13, 2012 1:45 PM

Tags: #photoshop #mac #plugin #plug-in #sdk #cs6 #dialog #plug_in

Hi All


I'm a Windows developer, and it's been a long time since I've developed our plugin for the Mac (10 years ago using powerpc, codewarrior etc), so my Mac skills are rusty.


I thought I'd start with the SDK examples, but I can't get them to compile.  When I open the Dissolve project I get an error:


'Missing Base SDK'


Project settings has Base SDK set to OSX10.6 (in a custom path that I can't read because XCode truncates it).


The minimum Base SDK I can select is 10.7, but when I do that I get a build error in DialogUtilities.h, "'Dialogs.h' not found"


Do I need to find the OSX10.6 Base SDK and use that?  Where and how?  Or is there an alternative to Dialogs.h that OSX10.7 onwards uses?  This is probably an elementary question, but I can't find the answer!


I'm using:

OS X - Mountain Lion (running in VirtualBox, but I can't see how this would upset the compiler)

XCode - 4.5.2

Photoshop SDK 13.0 - CS6





  • Currently Being Moderated
    Dec 14, 2012 10:21 AM   in reply to js.acclaim

    There are a lot of things that Carbon has and Cocoa doesn't, and vice versa. Going Cocoa is more or less a GUI re-write, so if you can simply skip Carbon altogether and stick to CS5/6 x64 it would make your life easier. Carbon is dead, so unless you have a compelling reason to support CS5x32 (or earlier, of course) why bother.

    Just a suggestion.

    Mark as:
  • Currently Being Moderated
    Dec 17, 2012 10:15 AM   in reply to js.acclaim

    You should be able to just comment out those header includes. I believe this is the list of files to comment out.

    1. 1. SDK common/includes/PIUFile.h
      1. a. #include <Folders.h>
    2. 2. SDK common/includes/PIUtilities.h
      1. a. #include <LowMem.h>
      2. b. #include <ToolUtils.h>
      3. c. #include <FixMath.h>
    3. 3. SDK common/includes/DialogUtilities.h
      1. a. #include <Diaglos.h>
      2. b. #include <Types.h>
      3. c. #include <Gestalt.h>
      4. d. #include <TextUtils.h>
      5. e. #include <OSUtils.h>
      6. f. #include <Menus.h>
    Mark as:
  • Currently Being Moderated
    Apr 19, 2013 12:57 PM   in reply to Tom Ruark


    4. SDK common/includes/PiUi.h

      a. #include "Lists.h"


    It's also worth noting that you have to use the MacOSX10.7.sdk, and target 10.7; 10.8 will not work.

    Mark as:
  • Currently Being Moderated
    Oct 25, 2013 6:30 AM   in reply to Matthew Callis

    It seems the latest version of xcode for maverick doesn't support 10.7 anymore. Does anyone know what the best remedy for this would be? Is it sensible to try to make 10.8 work or would it make more sense to put the effort to trying to get sdk 10.7 back on my machine?



    Mark as:
  • Currently Being Moderated
    Nov 5, 2013 2:57 PM   in reply to Eric Shmeric

    yes, you'll need to add 10.7 SDK. It's not officially supported, but you can just copy it from the Xcode4 installation to the Xcode5. It seems to work fine for me on Xcode 5.


    /Applications/ eveloper/SDKs/MacOSX10.7.sdk

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points