Quantcast
Viewing all articles
Browse latest Browse all 4929

Apple Mach-O Linker Error running first iOS example

@iColpitts wrote:

I'm attempting to run my an example in ofXiOS and have come upon these errors. Any suggestions on getting the example code to run?

Ld /Users/Izzie1/Library/Developer/Xcode/DerivedData/soundPlayerExample-aauddvuomegbineifwxdwawndhfl/Build/Products/Debug-iphonesimulator/soundPlayerExample.app/soundPlayerExample normal i386
    cd /Users/Izzie1/of_v0.8.4_ios_release/examples/ios/soundPlayerExample
    export IPHONEOS_DEPLOYMENT_TARGET=8.2
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk -L/Users/Izzie1/Library/Developer/Xcode/DerivedData/soundPlayerExample-aauddvuomegbineifwxdwawndhfl/Build/Products/Debug-iphonesimulator -F/Users/Izzie1/Library/Developer/Xcode/DerivedData/soundPlayerExample-aauddvuomegbineifwxdwawndhfl/Build/Products/Debug-iphonesimulator -filelist /Users/Izzie1/Library/Developer/Xcode/DerivedData/soundPlayerExample-aauddvuomegbineifwxdwawndhfl/Build/Intermediates/soundPlayerExample.build/Debug-iphonesimulator/soundPlayerExample.build/Objects-normal/i386/soundPlayerExample.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC ../../../libs/FreeImage/lib/osx/freeimage.a ../../../libs/freetype/lib/ios/freetype.a ../../../libs/FreeImage/lib/ios/freeimage.a ../../../libs/poco/lib/ios/PocoNet.a ../../../libs/poco/lib/ios/PocoNetSSL.a ../../../libs/poco/lib/ios/PocoCrypto.a ../../../libs/poco/lib/ios/PocoXML.a ../../../libs/poco/lib/ios/PocoZip.a ../../../libs/poco/lib/ios/PocoUtil.a ../../../libs/poco/lib/ios/PocoFoundation.a ../../../libs/tess2/lib/ios/tess2.a ../../../libs/glu/lib/ios/glu.a ../../../libs/glu/lib/ios/glu-ios.a ../../../libs/openssl/lib/ios/ssl.a ../../../libs/openssl/lib/ios/crypto.a -stdlib=libstdc++ -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.2 /Users/Izzie1/of_v0.8.4_ios_release/libs/openFrameworksCompiled/lib/ios/libofxiOS_iphonesimulator_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 -Xlinker -dependency_info -Xlinker /Users/Izzie1/Library/Developer/Xcode/DerivedData/soundPlayerExample-aauddvuomegbineifwxdwawndhfl/Build/Intermediates/soundPlayerExample.build/Debug-iphonesimulator/soundPlayerExample.build/Objects-normal/i386/soundPlayerExample_dependency_info.dat -o /Users/Izzie1/Library/Developer/Xcode/DerivedData/soundPlayerExample-aauddvuomegbineifwxdwawndhfl/Build/Products/Debug-iphonesimulator/soundPlayerExample.app/soundPlayerExample

ld: warning: ignoring file ../../../libs/FreeImage/lib/ios/freeimage.a, missing required architecture i386 in file ../../../libs/FreeImage/lib/ios/freeimage.a (2 slices)
ld: warning: ignoring file ../../../libs/glu/lib/ios/glu-ios.a, missing required architecture i386 in file ../../../libs/glu/lib/ios/glu-ios.a (2 slices)
Undefined symbols for architecture i386:
  "_fwrite$UNIX2003", referenced from:
      _WriteProc(void*, unsigned int, unsigned int, void*) in freeimage.a(FreeImageIO.o-i386)
      LibRaw::dcraw_thumb_writer(char const*) in freeimage.a(libraw_cxx.o-i386)
      _opj_image_create in freeimage.a(image.o-i386)
      _png_default_write_data in freeimage.a(pngwio.o-i386)
      LibRaw::ppm_thumb() in freeimage.a(dcraw_common.o-i386)
      LibRaw::jpeg_thumb_writer(__sFILE*, char*, int) in freeimage.a(dcraw_common.o-i386)
      LibRaw::write_ppm_tiff() in freeimage.a(dcraw_common.o-i386)
      ...
  "_mktime$UNIX2003", referenced from:
      LibRaw::get_timestamp(int) in freeimage.a(dcraw_common.o-i386)
      LibRaw::parse_rollei() in freeimage.a(dcraw_common.o-i386)
      LibRaw::parse_riff() in freeimage.a(dcraw_common.o-i386)
  "_strerror$UNIX2003", referenced from:
      Iex::throwErrnoExc(std::string const&, int) in freeimage.a(IexThrowErrnoExc.o-i386)
  "_strtod$UNIX2003", referenced from:
      _png_handle_sCAL in freeimage.a(pngrutil.o-i386)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles