Trying to get my old apps running on OS X 10.7, XCode 4, and github master (ie. OF 007). I started my XCode project from scratch by copying emptyExample and modifying it, which helped with a bunch of errors. I added all the include paths I need, and switched the architecture to 32-bit. I also updated all my code to OF 007, eg. by replacing ofxThread with ofThread and ripping out some other code. Finally the app gets through compilation, but now dies on linking.
XCode doesn’t actually show the linker error (see screenshot), but when I copy the problematic command and run it in the console, I see this:
$ /Developer/usr/bin/llvm-g++-4.2 -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -L/Users/ian/Projects/of/apps/mine/fLLLP/bin -F/Users/ian/Projects/of/apps/mine/fLLLP/bin -F/Users/ian/Projects/of/apps/mine/fLLLP/../../../libs/glut/lib/osx -filelist /Users/ian/Library/Developer/Xcode/DerivedData/fLLLP-baemmuaqeyhucdffhdhhkttcpblw/Build/Intermediates/fLLLP.build/Debug/fLLLP.build/Objects-normal/i386/fLLLPDebug.LinkFileList -mmacosx-version-min=10.6 -dead_strip /Users/ian/Projects/of/libs/openFrameworksCompiled/lib/osx/openFrameworksDebug.a /Users/ian/Projects/of/apps/mine/fLLLP/../../../libs/GLee/lib/osx/GLee.a /Users/ian/Projects/of/apps/mine/fLLLP/../../../libs/rtAudio/lib/osx/rtAudio.a -framework AGL -framework ApplicationServices -framework AudioToolbox -framework Carbon -framework CoreAudio -framework CoreFoundation -framework CoreServices -framework OpenGL -framework QuickTime -framework AppKit -framework Cocoa -framework IOKit -framework GLUT /Users/ian/Projects/of/apps/mine/fLLLP/../../../libs/poco/lib/osx/CppUnit.a /Users/ian/Projects/of/apps/mine/fLLLP/../../../libs/poco/lib/osx/PocoFoundation.a /Users/ian/Projects/of/apps/mine/fLLLP/../../../libs/poco/lib/osx/PocoNet.a /Users/ian/Projects/of/apps/mine/fLLLP/../../../libs/poco/lib/osx/PocoUtil.a /Users/ian/Projects/of/apps/mine/fLLLP/../../../libs/poco/lib/osx/PocoXML.a /Users/ian/Projects/of/apps/mine/fLLLP/../../../libs/freetype/lib/osx/freetype.a -lfmodex /Users/ian/Projects/of/apps/mine/fLLLP/../../../libs/FreeImage/lib/osx/freeimage.a -o /Users/ian/Projects/of/apps/mine/fLLLP/bin/fLLLPDebug.app/Contents/MacOS/fLLLPDebug
i686-apple-darwin11-llvm-g++-4.2: /Users/ian/Projects/of/apps/mine/fLLLP/../../../libs/GLee/lib/osx/GLee.a: No such file or directory
i686-apple-darwin11-llvm-g++-4.2: /Users/ian/Projects/of/apps/mine/fLLLP/../../../libs/poco/lib/osx/CppUnit.a: No such file or directory
It looks like GLee was ripped out of OF a while ago, so I’m not sure where these linker flags are coming from. I’ve searched my whole project in XCode and can’t find any references to it. However, when I grepped through the project directory, I did find this:
$ grep -R GLee *
Binary file build/emptyExample.build/Debug/emptyExample.build/emptyExampleDebug.hmap matches
Binary file build/emptyExample.build/emptyExample.pbxindex/strings.pbxstrings/strings matches
fLLLP.xcodeproj/project.pbxproj: E45BE0AA0E8CC67C009D7055 /* GLee.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E45BE0A90E8CC67C009D7055 /* GLee.a */; };
fLLLP.xcodeproj/project.pbxproj: E45BE0A70E8CC67C009D7055 /* GLee.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = GLee.h; path = ../../../libs/GLee/include/GLee.h; sourceTree = SOURCE_ROOT; };
fLLLP.xcodeproj/project.pbxproj: E45BE0A90E8CC67C009D7055 /* GLee.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = GLee.a; path = ../../../libs/GLee/lib/osx/GLee.a; sourceTree = SOURCE_ROOT; };
fLLLP.xcodeproj/project.pbxproj: E45BE0AA0E8CC67C009D7055 /* GLee.a in Frameworks */,
fLLLP.xcodeproj/project.pbxproj: E45BE0A50E8CC67C009D7055 /* GLee */,
fLLLP.xcodeproj/project.pbxproj: E45BE0A50E8CC67C009D7055 /* GLee */ = {
fLLLP.xcodeproj/project.pbxproj: name = GLee;
fLLLP.xcodeproj/project.pbxproj: path = ../../../libs/GLee;
fLLLP.xcodeproj/project.pbxproj: E45BE0A70E8CC67C009D7055 /* GLee.h */,
fLLLP.xcodeproj/project.pbxproj: path = ../../../libs/GLee/include;
fLLLP.xcodeproj/project.pbxproj: E45BE0A90E8CC67C009D7055 /* GLee.a */,
fLLLP.xcodeproj/project.pbxproj: path = ../../../libs/GLee/lib/osx;
Not sure how those got in there, nor how to remove them. The xcodeproj directory is completely new from emptyExample, so I don’t see how it could be from the old XCode 3 project… Any ideas?
