Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CS5 Getting Started Guide - Stuck - Framework not found.

Community Beginner ,
Jul 15, 2010 Jul 15, 2010

I am using Xcode 3.2.3.

I am on page 26 of the "Getting started with the Adobe Indesign CS5 Products SDK" guide. I follow the instructions up to point 7 on page 27.

Then, when I build the project I get the following error: (http://codepad.org/OcB0myiH)

Ld ../Release/SDK/InDan.sdk.InDesignPlugin/Versions/A/InDan.sdk normal i386

cd /SDK2/build/mac/prj

setenv MACOSX_DEPLOYMENT_TARGET 10.5

/Developer/usr/bin/g++-4.0 -arch i386 -dynamiclib -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/SDK2/build/mac/prj/../Release/SDK -L/SDK2/build/mac/prj/../release/packagefolder/contents/macos/libs -L../../../build/mac/release/packagefolder/contents/macos/libs -L/SDK2/build/mac/prj/../debug/packagefolder/contents/macos/libs -L/SDK2/build/mac/prj/../release/packagefolder/contents/macos/libs -L/SDK2/build/mac/prj/libs -F/SDK2/build/mac/prj/../Release/SDK -F../../../build/mac/release/packagefolder/contents/macos -F../../../build/mac/release/packagefolder/contents/Frameworks -F/SDK2/build/mac/prj/../debug/packagefolder/contents/macos -F/SDK2/build/mac/prj/../release/packagefolder/contents/macos -filelist /SDK2/build/mac/prj/build/InDan.build/Default/Release.build/Objects-normal/i386/InDan.sdk.LinkFileList -install_name ./InDan.sdk.InDesignPlugin/Versions/A/InDan.sdk -mmacosx-version-min=10.5 -dead_strip -no_dead_strip_inits_and_terms -Wl,-executable_path -Wl,../../../build/mac/Release/packagefolder/contents/macos/ -framework Carbon -lPublicPlugIn -lPublicPlugIn -lPublicPlugIn -framework InDesignModel -framework InDesignModel -framework InDan.sdk -framework InDan.sdk -single_module -o /SDK2/build/mac/prj/../Release/SDK/InDan.sdk.InDesignPlugin/Versions/A/InDan.sdk

ld: framework not found InDan.sdk

collect2: ld returned 1 exit status

Command /Developer/usr/bin/g++-4.0 failed with exit code 1

I have been trying to solve it for 5 hours now. It can't be that difficult.

Can someone help me out please.

Thanks

TOPICS
SDK
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 15, 2010 Jul 15, 2010

I solved this problem by removing the links to InDan.sdk.

For cleaning purposes, I now created a completely new InDesign SDK Project.

When trying to build right after creating it (no changes made), I get the following error: (http://codepad.org/VZiXTJmc)

Build Debug of project Mow with configuration Default

Ld ../Debug/SDK/Mow.sdk.InDesignPlugin/Versions/A/Mow.sdk normal i386

cd /SDK2/build/mac/prj

setenv MACOSX_DEPLOYMENT_TARGET 10.5

/Developer/usr/bin/g++-4.0 -arch i386 -dynamiclib -isysroot /Developer/SDKs/MacOSX10.5.sdk -L/SDK2/build/mac/prj/../Debug/SDK -L../../../build/mac/debug/packagefolder/contents/macos/libs -L/SDK2/build/mac/prj/../debug/packagefolder/contents/macos/InDesignModelAndUI.framework -F/SDK2/build/mac/prj/../Debug/SDK -F../../../build/mac/debug/packagefolder/contents/macos -F../../../build/mac/debug/packagefolder/contents/Frameworks -filelist /SDK2/build/mac/prj/build/Mow.build/Default/Debug.build/Objects-normal/i386/Mow.sdk.LinkFileList -install_name ./Mow.sdk.InDesignPlugin/Versions/A/Mow.sdk -mmacosx-version-min=10.5 -dead_strip -Wl,-executable_path -Wl,../../../build/mac/Debug/packagefolder/contents/macos/ -lPublicPlugIn -framework Carbon /SDK2/build/mac/debug/packagefolder/contents/macos/InDesignModelAndUI.framework/InDesignModelAndUI -single_module -o /SDK2/build/mac/prj/../Debug/SDK/Mow.sdk.InDesignPlugin/Versions/A/Mow.sdk

Undefined symbols:

  "DontDeadStrip()", referenced from:

      PlugIn::~PlugIn()in libPublicPlugIn.a(PlugIn.o)

      PlugIn::~PlugIn()in libPublicPlugIn.a(PlugIn.o)

ld: symbol(s) not found

collect2: ld returned 1 exit status

Seems like there is a linking error.

Any ideas?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 15, 2010 Jul 15, 2010

That's an odd looking error to see when creating a new project.

Did you create the project with Dolly?

Dolly should have set this up correctly.

Look in your Xcode project.

In the Groups & Files section you should have a file:

????NoStrip.cpp

where the ???? is the short name that you provided in Dolly.

That contains the method DontDeadStrip() that the compiler is looking for.

If it's not in the project, check your source folder and drag the ????NoStrip.cpp

into your project.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 15, 2010 Jul 15, 2010

No, I did not use dolly. I just created an SDK project and tried building it right afterwards.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 03, 2010 Sep 03, 2010
LATEST

Added DontDeadStrip function. Compiles now.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines