Fresh OF iOS Download. Duplicate Symbols for ofxiPhoneImagePicker with LLVM

I’m on the latest developer beta build of Mountain Lion, using Xcode 4.4.

When using Apple’s LLVM compiler I get duplicate symbol errors for ofxiPhoneImagePicker. The fix is to switch the compiler to LLVM GCC 4.2 in the build settings.

Looks like Apple switched the default Xcode compiler and debugger to LLVM and LLDB. Instead of LLVM GCC/GDB.

Anyone else aware of this or know if openFrameworks will support LLVM in the future?

Here’s the linker output with errors:

Ld build/Debug-iphoneos/fontsExample.app/fontsExample normal armv7
cd /Users/aaronsmith/Development/openFrameworks/OF_007_IOS/apps/iPhoneExamples/fontsExample
setenv IPHONEOS_DEPLOYMENT_TARGET 3.1
setenv PATH “/Applications/Xcode44-DP5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode44-DP5.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin”
/Applications/Xcode44-DP5.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode44-DP5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -L/Users/aaronsmith/Development/openFrameworks/OF_007_IOS/apps/iPhoneExamples/fontsExample/build/Debug-iphoneos -F/Users/aaronsmith/Development/openFrameworks/OF_007_IOS/apps/iPhoneExamples/fontsExample/build/Debug-iphoneos -filelist /Users/aaronsmith/Development/openFrameworks/OF_007_IOS/apps/iPhoneExamples/fontsExample/build/fontsExample.build/Debug-iphoneos/fontsExample.build/Objects-normal/armv7/fontsExample.LinkFileList -dead_strip -ObjC …/…/…/libs/freetype/lib/iphone/freetype.a …/…/…/libs/FreeImage/lib/osx/freeimage.a …/…/…/libs/FreeImage/lib/iphone/freeimage.a …/…/…/libs/glew/lib/osx/glew.a …/…/…/libs/cairo/lib/osx/cairo.a …/…/…/libs/poco/lib/iphone/PocoFoundation.a …/…/…/libs/poco/lib/iphone/PocoNet.a …/…/…/libs/poco/lib/iphone/PocoXML.a …/…/…/libs/poco/lib/iphone/PocoUtil.a …/…/…/libs/tess2/lib/iphone/tess2.a …/…/…/libs/glu/lib/iphone/glu.a …/…/…/libs/glu/lib/iphone/glu-iphone.a -fobjc-link-runtime -miphoneos-version-min=3.1 /Users/aaronsmith/Development/openFrameworks/OF_007_IOS/libs/openFrameworksCompiled/lib/iphone/libofxiPhone_iphoneos_Debug.a -framework Foundation -framework UIKit -framework CoreGraphics -framework OpenGLES -framework QuartzCore -framework AudioToolbox -framework OpenAL -framework CoreLocation -framework CoreGraphics -framework AVFoundation -framework CoreMedia -framework CoreVideo -framework MapKit -o /Users/aaronsmith/Development/openFrameworks/OF_007_IOS/apps/iPhoneExamples/fontsExample/build/Debug-iphoneos/fontsExample.app/fontsExample

ld: warning: ignoring file …/…/…/libs/FreeImage/lib/osx/freeimage.a, missing required architecture armv7 in file …/…/…/libs/FreeImage/lib/osx/freeimage.a (1 slices)
ld: warning: ignoring file …/…/…/libs/glew/lib/osx/glew.a, file was built for archive which is not the architecture being linked (armv7): …/…/…/libs/glew/lib/osx/glew.a
ld: warning: ignoring file …/…/…/libs/cairo/lib/osx/cairo.a, file was built for archive which is not the architecture being linked (armv7): …/…/…/libs/cairo/lib/osx/cairo.a
ld: warning: ignoring file …/…/…/libs/glu/lib/iphone/glu.a, file was built for archive which is not the architecture being linked (armv7): …/…/…/libs/glu/lib/iphone/glu.a
duplicate symbol _OBJC_IVAR_$_ofxiPhoneImagePickerDelegate._imagePicker in:
/Users/aaronsmith/Development/openFrameworks/OF_007_IOS/libs/openFrameworksCompiled/lib/iphone/libofxiPhone_iphoneos_Debug.a(ofxiPhoneImagePicker.o)
duplicate symbol _OBJC_IVAR_$_ofxiPhoneImagePickerDelegate.cameraIsAvailable in:
/Users/aaronsmith/Development/openFrameworks/OF_007_IOS/libs/openFrameworksCompiled/lib/iphone/libofxiPhone_iphoneos_Debug.a(ofxiPhoneImagePicker.o)
duplicate symbol _OBJC_IVAR_$_ofxiPhoneImagePickerDelegate.savedPhotosIsAvailable in:
/Users/aaronsmith/Development/openFrameworks/OF_007_IOS/libs/openFrameworksCompiled/lib/iphone/libofxiPhone_iphoneos_Debug.a(ofxiPhoneImagePicker.o)
duplicate symbol _OBJC_IVAR_$_ofxiPhoneImagePickerDelegate.photoLibraryIsAvailable in:
/Users/aaronsmith/Development/openFrameworks/OF_007_IOS/libs/openFrameworksCompiled/lib/iphone/libofxiPhone_iphoneos_Debug.a(ofxiPhoneImagePicker.o)
duplicate symbol _OBJC_IVAR_$_ofxiPhoneImagePickerDelegate.cppPixelLoader in:
/Users/aaronsmith/Development/openFrameworks/OF_007_IOS/libs/openFrameworksCompiled/lib/iphone/libofxiPhone_iphoneos_Debug.a(ofxiPhoneImagePicker.o)
duplicate symbol _OBJC_IVAR_$_ofxiPhoneImagePickerDelegate.overlay in:
/Users/aaronsmith/Development/openFrameworks/OF_007_IOS/libs/openFrameworksCompiled/lib/iphone/libofxiPhone_iphoneos_Debug.a(ofxiPhoneImagePicker.o)
duplicate symbol _OBJC_IVAR_$_ofxiPhoneImagePickerDelegate._image in:
/Users/aaronsmith/Development/openFrameworks/OF_007_IOS/libs/openFrameworksCompiled/lib/iphone/libofxiPhone_iphoneos_Debug.a(ofxiPhoneImagePicker.o)
duplicate symbol _OBJC_IVAR_$_ofxiPhoneImagePickerDelegate.maxDimension in:
/Users/aaronsmith/Development/openFrameworks/OF_007_IOS/libs/openFrameworksCompiled/lib/iphone/libofxiPhone_iphoneos_Debug.a(ofxiPhoneImagePicker.o)
duplicate symbol _OBJC_IVAR_$_OverlayView._del in:
/Users/aaronsmith/Development/openFrameworks/OF_007_IOS/libs/openFrameworksCompiled/lib/iphone/libofxiPhone_iphoneos_Debug.a(ofxiPhoneImagePicker.o)
duplicate symbol _OBJC_CLASS_$_ofxiPhoneImagePickerDelegate in:
/Users/aaronsmith/Development/openFrameworks/OF_007_IOS/libs/openFrameworksCompiled/lib/iphone/libofxiPhone_iphoneos_Debug.a(ofxiPhoneImagePicker.o)
duplicate symbol _OBJC_METACLASS_$_ofxiPhoneImagePickerDelegate in:
/Users/aaronsmith/Development/openFrameworks/OF_007_IOS/libs/openFrameworksCompiled/lib/iphone/libofxiPhone_iphoneos_Debug.a(ofxiPhoneImagePicker.o)
duplicate symbol _OBJC_CLASS_$_OverlayView in:
/Users/aaronsmith/Development/openFrameworks/OF_007_IOS/libs/openFrameworksCompiled/lib/iphone/libofxiPhone_iphoneos_Debug.a(ofxiPhoneImagePicker.o)
duplicate symbol _OBJC_METACLASS_$_OverlayView in:
/Users/aaronsmith/Development/openFrameworks/OF_007_IOS/libs/openFrameworksCompiled/lib/iphone/libofxiPhone_iphoneos_Debug.a(ofxiPhoneImagePicker.o)
ld: 30 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)