CS5 Getting Started Guide - Stuck - Framework not found.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
No, I did not use dolly. I just created an SDK project and tried building it right afterwards.
Copy link to clipboard
Copied
Added DontDeadStrip function. Compiles now.

