ImageMagick SDK error: "Undefined symbols for architecture armv7" - xcode

I am using the ImageMagick SDK in my old one app. But it shows me an error in XCode 6.
Undefined symbols for architecture armv7:
"_deflateInit2_", referenced from:
_png_write_IHDR in libpng.a(libpng12_la-pngwutil.o)
"_deflateParams", referenced from:
_PixarLogVSetField in libtiff.a(tif_pixarlog.o)
_ZIPVSetField in libtiff.a(tif_zip.o)
"_deflateReset", referenced from:
_PixarLogPreEncode in libtiff.a(tif_pixarlog.o)
_ZIPPreEncode in libtiff.a(tif_zip.o)
_png_write_compressed_data_out in libpng.a(libpng12_la-pngwutil.o)
_png_write_finish_row in libpng.a(libpng12_la-pngwutil.o)
"_inflateReset", referenced from:
_PixarLogPreDecode in libtiff.a(tif_pixarlog.o)
_ZIPPreDecode in libtiff.a(tif_zip.o)
_png_decompress_chunk in libpng.a(libpng12_la-pngrutil.o)
_png_read_finish_row in libpng.a(libpng12_la-pngrutil.o)
"_deflateInit_", referenced from:
_ZLIBEncodeImage in libMagickCore.a(magick_libMagickCore_la-compress.o)
_WriteMIFFImage in libMagickCore.a(magick_libMagickCore_la-miff.o)
_PixarLogSetupEncode in libtiff.a(tif_pixarlog.o)
_ZIPSetupEncode in libtiff.a(tif_zip.o)
"_gzgetc", referenced from:
_ReadBlob in libMagickCore.a(magick_libMagickCore_la-blob.o)
"_deflateEnd", referenced from:
_ZLIBEncodeImage in libMagickCore.a(magick_libMagickCore_la-compress.o)
_WriteMIFFImage in libMagickCore.a(magick_libMagickCore_la-miff.o)
_png_write_destroy in libpng.a(libpng12_la-pngwrite.o)
_PixarLogCleanup in libtiff.a(tif_pixarlog.o)
_ZIPSetupDecode in libtiff.a(tif_zip.o)
_ZIPCleanup in libtiff.a(tif_zip.o)
"_gztell", referenced from:
_TellBlob in libMagickCore.a(magick_libMagickCore_la-blob.o)
"_gzputc", referenced from:
_WriteBlob in libMagickCore.a(magick_libMagickCore_la-blob.o)
"_gzseek", referenced from:
_SeekBlob in libMagickCore.a(magick_libMagickCore_la-blob.o)
"_crc32", referenced from:
_ReadOneJNGImage in libMagickCore.a(magick_libMagickCore_la-png.o)
_png_write_chunk_from_profile in libMagickCore.a(magick_libMagickCore_la-png.o)
_WriteOnePNGImage in libMagickCore.a(magick_libMagickCore_la-png.o)
_WriteOneJNGImage in libMagickCore.a(magick_libMagickCore_la-png.o)
_WriteMNGImage in libMagickCore.a(magick_libMagickCore_la-png.o)
_png_reset_crc in libpng.a(libpng12_la-png.o)
_png_calculate_crc in libpng.a(libpng12_la-png.o)
...
"_gzerror", referenced from:
_CloseBlob in libMagickCore.a(magick_libMagickCore_la-blob.o)
"_inflateSync", referenced from:
_PixarLogDecode in libtiff.a(tif_pixarlog.o)
_ZIPDecode in libtiff.a(tif_zip.o)
"_zlibVersion", referenced from:
_RegisterPNGImage in libMagickCore.a(magick_libMagickCore_la-png.o)
"_gzclose", referenced from:
_CloseBlob in libMagickCore.a(magick_libMagickCore_la-blob.o)
"_inflateInit_", referenced from:
_ReadMATImage in libMagickCore.a(magick_libMagickCore_la-mat.o)
_ReadMIFFImage in libMagickCore.a(magick_libMagickCore_la-miff.o)
_png_create_read_struct_2 in libpng.a(libpng12_la-pngread.o)
_PixarLogSetupDecode in libtiff.a(tif_pixarlog.o)
_ZIPSetupDecode in libtiff.a(tif_zip.o)
"_gzread", referenced from:
_ReadBlob in libMagickCore.a(magick_libMagickCore_la-blob.o)
"_inflate", referenced from:
_ReadMATImage in libMagickCore.a(magick_libMagickCore_la-mat.o)
_ReadMIFFImage in libMagickCore.a(magick_libMagickCore_la-miff.o)
_png_read_row in libpng.a(libpng12_la-pngread.o)
_PixarLogDecode in libtiff.a(tif_pixarlog.o)
_ZIPDecode in libtiff.a(tif_zip.o)
_png_decompress_chunk in libpng.a(libpng12_la-pngrutil.o)
_png_read_finish_row in libpng.a(libpng12_la-pngrutil.o)
...
"_gzwrite", referenced from:
_WriteBlob in libMagickCore.a(magick_libMagickCore_la-blob.o)
"_inflateEnd", referenced from:
_ReadMIFFImage in libMagickCore.a(magick_libMagickCore_la-miff.o)
_png_read_destroy in libpng.a(libpng12_la-pngread.o)
_PixarLogCleanup in libtiff.a(tif_pixarlog.o)
_ZIPSetupEncode in libtiff.a(tif_zip.o)
_ZIPCleanup in libtiff.a(tif_zip.o)
"_deflate", referenced from:
_ZLIBEncodeImage in libMagickCore.a(magick_libMagickCore_la-compress.o)
_WriteMIFFImage in libMagickCore.a(magick_libMagickCore_la-miff.o)
_png_write_flush in libpng.a(libpng12_la-pngwrite.o)
_PixarLogEncode in libtiff.a(tif_pixarlog.o)
_PixarLogPostEncode in libtiff.a(tif_pixarlog.o)
_ZIPEncode in libtiff.a(tif_zip.o)
_ZIPPostEncode in libtiff.a(tif_zip.o)
...
"_gzopen", referenced from:
_OpenBlob in libMagickCore.a(magick_libMagickCore_la-blob.o)
"_gzflush", referenced from:
_SyncBlob in libMagickCore.a(magick_libMagickCore_la-blob.o)
ld: symbol(s) not found for architecture armv7
What changes should I do?
All recommended compiler flags have been set properly...

Looks like you are missing libz. The problem can be fixed by adding linking to the compression library in "Other Link Flag": -lz

Change Match-O Type to: static library(if you're in framework project, of in simple project, skip this step)
Add to Other linker flags:
-ObjC
-lz
-lstdc++
Add to Library search paths:
$(inherited)
$(PROJECT_DIR)/YourProjectName/libraryFolderName
Good luck all!

Related

Can't install nativescript-ffmpeg-plugin on nativescript

Running ns plugin add nativescript-ffmpeg-plugin produces the following error.
> nativescript-ffmpeg-plugin#0.0.2 postinstall /Users/.../websites/test/ffmpeg/node_modules/nativescript-ffmpeg-plugin
> node postinstall-hooks.js
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module 'nativescript-hook'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/Users/.../websites/test/ffmpeg/node_modules/nativescript-ffmpeg-plugin/postinstall-hooks.js:1:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
Manually installing nativescript-hook (i.e. npm i nativescript-hook --save-dev) allows this plugin to be installed, but attempting to build the app on iOS fails with the following error:
Undefined symbols for architecture x86_64:
"_CVPixelBufferRetain", referenced from:
_videotoolbox_decoder_callback in libavcodec.a(videotoolbox.o)
"_CVPixelBufferRelease", referenced from:
_videotoolbox_buffer_release in libavcodec.a(videotoolbox.o)
_ff_videotoolbox_uninit in libavcodec.a(videotoolbox.o)
_videotoolbox_decoder_callback in libavcodec.a(videotoolbox.o)
_videotoolbox_common_end_frame in libavcodec.a(videotoolbox.o)
"_CVPixelBufferPoolCreatePixelBuffer", referenced from:
_vtenc_send_frame in libavcodec.a(videotoolboxenc.o)
"_kCVImageBufferPixelAspectRatioHorizontalSpacingKey", referenced from:
_vtenc_create_encoder in libavcodec.a(videotoolboxenc.o)
"_kCVImageBufferPixelAspectRatioVerticalSpacingKey", referenced from:
_vtenc_create_encoder in libavcodec.a(videotoolboxenc.o)
"_kCVImageBufferGammaLevelKey", referenced from:
_vtenc_create_encoder in libavcodec.a(videotoolboxenc.o)
"_kCVPixelBufferWidthKey", referenced from:
_vtenc_configure_encoder in libavcodec.a(videotoolboxenc.o)
_videotoolbox_start in libavcodec.a(videotoolbox.o)
"_kCVPixelBufferHeightKey", referenced from:
_vtenc_configure_encoder in libavcodec.a(videotoolboxenc.o)
_videotoolbox_start in libavcodec.a(videotoolbox.o)
"_kCVImageBufferTransferFunction_UseGamma", referenced from:
_vtenc_configure_encoder in libavcodec.a(videotoolboxenc.o)
"_kCVImageBufferYCbCrMatrix_ITU_R_709_2", referenced from:
_vtenc_configure_encoder in libavcodec.a(videotoolboxenc.o)
"_kCVImageBufferTransferFunction_SMPTE_240M_1995", referenced from:
_vtenc_configure_encoder in libavcodec.a(videotoolboxenc.o)
"_kCVPixelBufferPixelFormatTypeKey", referenced from:
_avf_read_header in libavdevice.a(avfoundation.o)
_vtenc_configure_encoder in libavcodec.a(videotoolboxenc.o)
_videotoolbox_start in libavcodec.a(videotoolbox.o)
"_kCVImageBufferTransferFunction_ITU_R_709_2", referenced from:
_vtenc_configure_encoder in libavcodec.a(videotoolboxenc.o)
"_kCVImageBufferColorPrimaries_ITU_R_709_2", referenced from:
_vtenc_configure_encoder in libavcodec.a(videotoolboxenc.o)
"_kCVImageBufferYCbCrMatrix_SMPTE_240M_1995", referenced from:
_vtenc_configure_encoder in libavcodec.a(videotoolboxenc.o)
"_CVPixelBufferGetDataSize", referenced from:
_avf_read_packet in libavdevice.a(avfoundation.o)
"_CVPixelBufferGetPixelFormatType", referenced from:
_videotoolbox_common_end_frame in libavcodec.a(videotoolbox.o)
_vt_map_frame in libavutil.a(hwcontext_videotoolbox.o)
_videotoolbox_retrieve_data in MobileFFmpeg.a(libmobileffmpeg_la-fftools_ffmpeg_videotoolbox.o)
"_kCVPixelBufferOpenGLESCompatibilityKey", referenced from:
_videotoolbox_start in libavcodec.a(videotoolbox.o)
"_CVPixelBufferLockBaseAddress", referenced from:
_avf_read_packet in libavdevice.a(avfoundation.o)
_vtenc_send_frame in libavcodec.a(videotoolboxenc.o)
_vt_map_frame in libavutil.a(hwcontext_videotoolbox.o)
_videotoolbox_retrieve_data in MobileFFmpeg.a(libmobileffmpeg_la-fftools_ffmpeg_videotoolbox.o)
"_kCVImageBufferTransferFunctionKey", referenced from:
_vtenc_configure_encoder in libavcodec.a(videotoolboxenc.o)
"_CVPixelBufferIsPlanar", referenced from:
_avf_read_packet in libavdevice.a(avfoundation.o)
_vtenc_send_frame in libavcodec.a(videotoolboxenc.o)
_vt_map_frame in libavutil.a(hwcontext_videotoolbox.o)
_videotoolbox_retrieve_data in MobileFFmpeg.a(libmobileffmpeg_la-fftools_ffmpeg_videotoolbox.o)
"_kCVImageBufferYCbCrMatrixKey", referenced from:
_vtenc_configure_encoder in libavcodec.a(videotoolboxenc.o)
"_CVPixelBufferGetWidth", referenced from:
_avf_read_packet in libavdevice.a(avfoundation.o)
_videotoolbox_common_end_frame in libavcodec.a(videotoolbox.o)
_vt_map_frame in libavutil.a(hwcontext_videotoolbox.o)
"_CVPixelBufferGetBaseAddressOfPlane", referenced from:
_avf_read_packet in libavdevice.a(avfoundation.o)
_vtenc_send_frame in libavcodec.a(videotoolboxenc.o)
_vt_map_frame in libavutil.a(hwcontext_videotoolbox.o)
_videotoolbox_retrieve_data in MobileFFmpeg.a(libmobileffmpeg_la-fftools_ffmpeg_videotoolbox.o)
"_CVPixelBufferGetBytesPerRowOfPlane", referenced from:
_avf_read_packet in libavdevice.a(avfoundation.o)
_vtenc_send_frame in libavcodec.a(videotoolboxenc.o)
_vt_map_frame in libavutil.a(hwcontext_videotoolbox.o)
_videotoolbox_retrieve_data in MobileFFmpeg.a(libmobileffmpeg_la-fftools_ffmpeg_videotoolbox.o)
"_CVPixelBufferGetBytesPerRow", referenced from:
_avf_read_packet in libavdevice.a(avfoundation.o)
_vtenc_send_frame in libavcodec.a(videotoolboxenc.o)
_vt_map_frame in libavutil.a(hwcontext_videotoolbox.o)
_videotoolbox_retrieve_data in MobileFFmpeg.a(libmobileffmpeg_la-fftools_ffmpeg_videotoolbox.o)
"_CVPixelBufferGetBaseAddress", referenced from:
_avf_read_packet in libavdevice.a(avfoundation.o)
_vtenc_send_frame in libavcodec.a(videotoolboxenc.o)
_vt_map_frame in libavutil.a(hwcontext_videotoolbox.o)
_videotoolbox_retrieve_data in MobileFFmpeg.a(libmobileffmpeg_la-fftools_ffmpeg_videotoolbox.o)
"_CVPixelBufferGetHeight", referenced from:
_avf_read_packet in libavdevice.a(avfoundation.o)
_videotoolbox_common_end_frame in libavcodec.a(videotoolbox.o)
_vt_map_frame in libavutil.a(hwcontext_videotoolbox.o)
"_CVPixelBufferGetPlaneCount", referenced from:
_avf_read_packet in libavdevice.a(avfoundation.o)
_vtenc_send_frame in libavcodec.a(videotoolboxenc.o)
_vt_map_frame in libavutil.a(hwcontext_videotoolbox.o)
_videotoolbox_retrieve_data in MobileFFmpeg.a(libmobileffmpeg_la-fftools_ffmpeg_videotoolbox.o)
"_kCVImageBufferColorPrimariesKey", referenced from:
_vtenc_configure_encoder in libavcodec.a(videotoolboxenc.o)
"_kCVImageBufferYCbCrMatrix_ITU_R_601_4", referenced from:
_vtenc_configure_encoder in libavcodec.a(videotoolboxenc.o)
"_kCVPixelBufferIOSurfacePropertiesKey", referenced from:
_videotoolbox_start in libavcodec.a(videotoolbox.o)
"_CVPixelBufferUnlockBaseAddress", referenced from:
_avf_read_packet in libavdevice.a(avfoundation.o)
_vtenc_send_frame in libavcodec.a(videotoolboxenc.o)
_vt_map_frame in libavutil.a(hwcontext_videotoolbox.o)
_vt_unmap in libavutil.a(hwcontext_videotoolbox.o)
_videotoolbox_retrieve_data in MobileFFmpeg.a(libmobileffmpeg_la-fftools_ffmpeg_videotoolbox.o)
"_CVImageBufferGetEncodedSize", referenced from:
_avf_read_header in libavdevice.a(avfoundation.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried this on:
Mac development environment
iOS 14
emulator: iPhone 8
Nativescript details:
CLI: 7.0.8
Cross-platform modules: 7.0.5
Runtime(s): 7.0.0
Plugin(s):
"dependencies": {
"#nativescript/core": "~7.0.0",
"#nativescript/theme": "~2.3.0",
"nativescript-ffmpeg-plugin": "0.0.2",
"nativescript-vue": "~2.8.1"
},
"devDependencies": {
"#babel/core": "~7.11.6",
"#babel/preset-env": "~7.11.5",
"#nativescript/ios": "7.0.0",
"#nativescript/webpack": "~3.0.3",
"babel-loader": "~8.1.0",
"nativescript-hook": "^0.2.5",
"nativescript-vue-template-compiler": "~2.8.1",
"node-sass": "^4.14.1",
"vue-loader": "~15.9.3"
},
You can easily recreate the issue by doing the following:
ns create ffmpeg --vue
cd ffmpeg
npm i nativescript-hook --save-dev
ns plugin add nativescript-ffmpeg-plugin
npm run debug-ios
Has anyone successfully installed the plugin recently and have any tips for getting around these issues?
getting a look inside nativescript-ffmpeg-plugin issues and the last modifications of the plugin, it seems not NS7 ready. try to downgrade to nativescript#6 or create a PR fot this plugin to make it compatible with NS7.
I installed nativescript-ffmpeg-plugin-fixed which has worked without issue on NS7.

App Gives Error in Simulator but works fine on Device

App works fine on Device but i cant find reason why i get this many error s when building for simulator.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_UIFontDescriptor", referenced from:
objc-class-ref in FBNotifications(FBNCardFont.o)
"_UIFontDescriptorFamilyAttribute", referenced from:
_FBNCardFontWithNameSize in FBNotifications(FBNCardFont.o)
"_UIFontDescriptorFaceAttribute", referenced from:
_FBNCardFontWithNameSize in FBNotifications(FBNCardFont.o)
"_UIApplicationDidReceiveMemoryWarningNotification", referenced from:
+[ANSLifecycleEvent notificationNameMap] in Crashlytics(ANSLifecycleEvent.o)
-[ANSAnswersController registerForApplicationLifecycleEvents] in Crashlytics(ANSAnswersController.o)
"_OBJC_CLASS_$_NSMutableParagraphStyle", referenced from:
objc-class-ref in FBSDKCoreKit(FBSDKButton.o)
objc-class-ref in FBSDKLoginKit(FBSDKLoginButton.o)
"_UIPasteboardNameFind", referenced from:
___78-[FBSDKBridgeAPIProtocolNativeV1 _JSONStringForObject:enablePasteboard:error:]_block_invoke in FBSDKCoreKit(FBSDKBridgeAPIProtocolNativeV1.o)
"_UIDeviceOrientationDidChangeNotification", referenced from:
-[FBSDKWebDialog _addObservers] in FBSDKCoreKit(FBSDKWebDialog.o)
-[FBSDKWebDialog _removeObservers] in FBSDKCoreKit(FBSDKWebDialog.o)
-[CLSCrashReportingController setupStateNotifications] in Crashlytics(CLSCrashReportingController.o)
"_OBJC_CLASS_$_NSParagraphStyle", referenced from:
objc-class-ref in FBNotifications(FBNCardTextContent.o)
"_OBJC_CLASS_$_UITableViewHeaderFooterView", referenced from:
objc-class-ref in DigitsKit(DGTAppearance.o)
"_OBJC_METACLASS_$_UITableViewController", referenced from:
_OBJC_METACLASS_$_DGTContactsInvitationViewController in DigitsKit(DGTContactsInvitationViewController.o)
"_OBJC_METACLASS_$_UIImageView", referenced from:
_OBJC_METACLASS_$_DGTLogoImageView in DigitsKit(DGTLogoImageView.o)
"_OBJC_METACLASS_$_UITextView", referenced from:
_OBJC_METACLASS_$_DGTFootnoteLabel in DigitsKit(DGTFootnoteLabel.o)
"_UIViewNoIntrinsicMetric", referenced from:
-[DGTLogoImageView intrinsicContentSize] in DigitsKit(DGTLogoImageView.o)
-[DGTHairlineView intrinsicContentSize] in DigitsKit(DGTHairlineView.o)
"_UIKeyboardFrameEndUserInfoKey", referenced from:
-[DGTKeyboardAvoidingScrollView dgt_keyboardWillShow:] in DigitsKit(DGTKeyboardAvoidingScrollView.o)
"_UIAccessibilityTraitButton", referenced from:
-[GIDSignInButton sharedInit] in GoogleSignIn(GIDSignInButton_97bfaf741496a97236fa3739518a0583.o)
"_OBJC_CLASS_$_UISearchController", referenced from:
objc-class-ref in FirebasePhoneAuthUI(FUICountryTableViewController.o)
objc-class-ref in DigitsKit(DGTCountryTableViewController.o)
objc-class-ref in DigitsKit(DGTContactsInvitationViewController.o)
"_OBJC_CLASS_$_UILocalizedIndexedCollation", referenced from:
objc-class-ref in FirebasePhoneAuthUI(FUICollationForCountries.o)
objc-class-ref in DigitsKit(DGTCollationForCountries.o)
"_UIKeyboardAnimationDurationUserInfoKey", referenced from:
-[FUIPhoneVerificationViewController keyboardWasShown:] in FirebasePhoneAuthUI(FUIPhoneVerificationViewController.o)
-[FUIPhoneVerificationViewController keyboardWillBeHidden:] in FirebasePhoneAuthUI(FUIPhoneVerificationViewController.o)
-[DGTKeyboardAvoidingScrollView dgt_keyboardWillShow:] in DigitsKit(DGTKeyboardAvoidingScrollView.o)
-[DGTKeyboardAvoidingScrollView dgt_keyboardWillHide:] in DigitsKit(DGTKeyboardAvoidingScrollView.o)
"_UIKeyboardAnimationCurveUserInfoKey", referenced from:
-[FUIPhoneVerificationViewController keyboardWasShown:] in FirebasePhoneAuthUI(FUIPhoneVerificationViewController.o)
-[FUIPhoneVerificationViewController keyboardWillBeHidden:] in FirebasePhoneAuthUI(FUIPhoneVerificationViewController.o)
-[DGTKeyboardAvoidingScrollView dgt_keyboardWillShow:] in DigitsKit(DGTKeyboardAvoidingScrollView.o)
-[DGTKeyboardAvoidingScrollView dgt_keyboardWillHide:] in DigitsKit(DGTKeyboardAvoidingScrollView.o)
"_UIKeyboardDidShowNotification", referenced from:
-[FUIPhoneVerificationViewController registerForKeyboardNotifications] in FirebasePhoneAuthUI(FUIPhoneVerificationViewController.o)
"_UIApplicationOpenURLOptionsAnnotationKey", referenced from:
-[FIRAuthAppDelegateProxy initWithApplication:] in FirebaseAuth(FIRAuthAppDelegateProxy_d84ca069394368ea9e8127dbd13cc324.o)
-[FBSDKApplicationDelegate application:openURL:options:] in FBSDKCoreKit(FBSDKApplicationDelegate.o)
Working on XCode 9.2 and iOS 11.2 running on simulator shows this all issues. in device it works fine.
can someone guide me what I am missing.

Undefined symbols for architecture x86_64 for extension with an Alamofire.Request

I created a protocol for Alamofire.Response, and then extend it like this
import Alamofire
public protocol MyResponseType {
typealias Value
typealias Error: ErrorType
var request: NSURLRequest? { get }
var response: NSHTTPURLResponse? { get }
var data: NSData? { get }
var result: Alamofire.Result<Value, Error> { get }
init(request: NSURLRequest?, response: NSHTTPURLResponse?, data: NSData?, result: Alamofire.Result<Value, Error>, timeline: Alamofire.Timeline)
}
extension Alamofire.Response: MyResponseType {}
The building process passed, but when it comes to link, it fails. Here comes the errors
Undefined symbols for architecture x86_64:
"Alamofire.Response.data.getter : __ObjC.NSData?", referenced from:
protocol witness for wtftest. MyResponseType.data.getter : __ObjC.NSData? in conformance <A, B where B: Swift.ErrorType> Alamofire.Response<A, B> : wtftest. MyResponseType in wtftest in ViewController.o
"Alamofire.Response.result.getter : Alamofire.Result<A, B>", referenced from:
protocol witness for wtftest. MyResponseType.result.getter : Alamofire.Result<A.Value, A.Error> in conformance <A, B where B: Swift.ErrorType> Alamofire.Response<A, B> : wtftest.ProducerResponseType in wtftest in ViewController.o
"Alamofire.Response.request.getter : __ObjC.NSURLRequest?", referenced from:
protocol witness for wtftest. MyResponseType.request.getter : __ObjC.NSURLRequest? in conformance <A, B where B: Swift.ErrorType> Alamofire.Response<A, B> : wtftest. MyResponseType in wtftest in ViewController.o
"Alamofire.Response.response.getter : __ObjC.NSHTTPURLResponse?", referenced from:
protocol witness for wtftest. MyResponseType.response.getter : __ObjC.NSHTTPURLResponse? in conformance <A, B where B: Swift.ErrorType> Alamofire.Response<A, B> : wtftest.ProducerResponseType in wtftest in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Is this a bug of swift? Or did I do something wrong?

Installing libhand on OSX 10.9.4

I tried to build libhand http://www.libhand.org/ v0.9 for OSX, the cmake command works fine, but as soon as I run the make command I get the following error
Scanning dependencies of target hand_utils [ 4%] Building CXX object
source/CMakeFiles/hand_utils.dir/mac_app_loop.mm.o [ 8%] Building CXX
object source/CMakeFiles/hand_utils.dir/error_handling.cc.o [ 12%]
Building CXX object source/CMakeFiles/hand_utils.dir/file_dialog.cc.o
/Users/temp/libhand-0.9/hand_cpp/source/file_dialog.cc:113:3: error:
use of undeclared identifier 'unlink'; did you mean 'inline'? unlink(temp_cmd_fname.c_str()); ^
/Users/temp/libhand-0.9/hand_cpp/source/file_dialog.cc:114:3: error:
use of undeclared identifier 'unlink'; did you mean 'inline'? unlink(temp_out_fname.c_str()); ^
2 errors generated. make[2]: ***
[source/CMakeFiles/hand_utils.dir/file_dialog.cc.o] Error 1 make[1]:
*** [source/CMakeFiles/hand_utils.dir/all] Error 2 make: *** [all] Error 2
I couldn't find any information on what to do and I am not sure what extra information I could provide to debug this error.
I also tried looking for a homebrew install but no luck.
Thanks for the help
Edit:
As suggested adding "ustd.h" did help, the ptr erros were resolved by adding std::ptr. The new error is:
Linking CXX executable pose_designer Undefined symbols for
architecture x86_64: "_CFArrayAppendValue", referenced from:
Ogre::OSXGLSupport::addConfig() in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
"_CFArrayCreateMutable", referenced from:
Ogre::OSXGLSupport::addConfig() in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o) "_CFArrayGetCount",
referenced from:
Ogre::OSXGLSupport::addConfig() in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
"_CFArrayGetValueAtIndex", referenced from:
Ogre::OSXGLSupport::addConfig() in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o) "_CFArraySortValues",
referenced from:
Ogre::OSXGLSupport::addConfig() in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o) "_CFBooleanGetValue",
referenced from:
Ogre::OSXGLSupport::_getDictionaryBoolean(__CFDictionary const*, void const*) in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
"_CFBundleCopyBundleURL", referenced from:
Ogre::macFrameworksPath() in libOgreMainStatic.a(macUtils.o)
Ogre::macPluginPath() in libOgreMainStatic.a(macUtils.o)
Ogre::macBundlePath() in libOgreMainStatic.a(macUtils.o) "_CFBundleCopyResourceURL", referenced from:
Ogre::mac_loadExeBundle(char const*) in libOgreMainStatic.a(macUtils.o) "_CFBundleCreate", referenced from:
Ogre::mac_loadExeBundle(char const*) in libOgreMainStatic.a(macUtils.o) "_CFBundleGetBundleWithIdentifier",
referenced from:
Ogre::mac_loadExeBundle(char const*) in libOgreMainStatic.a(macUtils.o)
"_CFBundleGetFunctionPointerForName", referenced from:
Ogre::mac_getBundleSym(__CFBundle*, char const*) in libOgreMainStatic.a(macUtils.o) "_CFBundleGetMainBundle", referenced
from:
Ogre::mac_loadExeBundle(char const*) in libOgreMainStatic.a(macUtils.o)
Ogre::macFrameworksPath() in libOgreMainStatic.a(macUtils.o)
Ogre::macPluginPath() in libOgreMainStatic.a(macUtils.o)
Ogre::macBundlePath() in libOgreMainStatic.a(macUtils.o) "_CFBundleLoadExecutable", referenced from:
Ogre::mac_loadExeBundle(char const*) in libOgreMainStatic.a(macUtils.o) "_CFDictionaryGetValue", referenced
from:
Ogre::OSXGLSupport::_getDictionaryBoolean(__CFDictionary const*, void const*) in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
Ogre::OSXGLSupport::_getDictionaryLong(__CFDictionary const*, void const*) in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
"_CFNumberGetValue", referenced from:
Ogre::OSXGLSupport::_getDictionaryLong(__CFDictionary const*, void const*) in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
"_CFRelease", referenced from:
Ogre::mac_loadExeBundle(char const*) in libOgreMainStatic.a(macUtils.o)
Ogre::mac_getBundleSym(__CFBundle*, char const*) in libOgreMainStatic.a(macUtils.o)
Ogre::macFrameworksPath() in libOgreMainStatic.a(macUtils.o)
Ogre::macPluginPath() in libOgreMainStatic.a(macUtils.o)
Ogre::macBundlePath() in libOgreMainStatic.a(macUtils.o)
Ogre::OSXGLSupport::addConfig() in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
"_CFStringCreateWithCString", referenced from:
Ogre::mac_loadExeBundle(char const*) in libOgreMainStatic.a(macUtils.o)
Ogre::mac_getBundleSym(__CFBundle*, char const*) in libOgreMainStatic.a(macUtils.o) "_CFStringCreateWithSubstring",
referenced from:
Ogre::mac_loadExeBundle(char const*) in libOgreMainStatic.a(macUtils.o)
"_CFStringGetFileSystemRepresentation", referenced from:
Ogre::macFrameworksPath() in libOgreMainStatic.a(macUtils.o)
Ogre::macPluginPath() in libOgreMainStatic.a(macUtils.o)
Ogre::macBundlePath() in libOgreMainStatic.a(macUtils.o) "_CFStringGetLength", referenced from:
Ogre::mac_loadExeBundle(char const*) in libOgreMainStatic.a(macUtils.o) "_CFStringHasSuffix", referenced
from:
Ogre::mac_loadExeBundle(char const*) in libOgreMainStatic.a(macUtils.o) "_CFURLCopyFileSystemPath",
referenced from:
Ogre::macFrameworksPath() in libOgreMainStatic.a(macUtils.o)
Ogre::macPluginPath() in libOgreMainStatic.a(macUtils.o)
Ogre::macBundlePath() in libOgreMainStatic.a(macUtils.o) "_CGDisplayCopyAllDisplayModes", referenced from:
Ogre::OSXGLSupport::addConfig() in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
"_CGDisplayIDToOpenGLDisplayMask", referenced from:
Ogre::OSXGLSupport::addConfig() in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
Ogre::OSXCocoaWindow::create(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&,
unsigned int, unsigned int, bool,
std::__1::map<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >,
std::__1::less<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > >,
Ogre::STLAllocator<std::__1::pair<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > >,
Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const*) in
libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
"_CGDisplayModeGetHeight", referenced from:
Ogre::OSXGLSupport::addConfig() in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
Ogre::OSXGLSupport::_compareModes(void const*, void const*, void*) in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
"_CGDisplayModeGetIOFlags", referenced from:
Ogre::OSXGLSupport::addConfig() in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
"_CGDisplayModeGetRefreshRate", referenced from:
Ogre::OSXGLSupport::_compareModes(void const*, void const*, void*) in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
"_CGDisplayModeGetWidth", referenced from:
Ogre::OSXGLSupport::addConfig() in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
Ogre::OSXGLSupport::_compareModes(void const*, void const*, void*) in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
"_CGMainDisplayID", referenced from:
Ogre::OSXGLSupport::addConfig() in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
Ogre::OSXCocoaWindow::create(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&,
unsigned int, unsigned int, bool,
std::__1::map<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >,
std::__1::less<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > >,
Ogre::STLAllocator<std::__1::pair<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > >,
Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const*) in
libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
"_CGWindowLevelForKey", referenced from:
Ogre::OSXCocoaWindow::_setWindowParameters() in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o) "_NSApp",
referenced from:
MacAppLoopPrivate::Setup(double) in libhand_utils.a(mac_app_loop.mm.o)
MacAppLoop::Run() in libhand_utils.a(mac_app_loop.mm.o)
MacAppLoopPrivate::Run() in libhand_utils.a(mac_app_loop.mm.o)
-[MacAppDelegate appShutdown] in libhand_utils.a(mac_app_loop.mm.o)
Ogre::ConfigDialog::display() in libOgreMainStatic.a(OgreConfigDialog.o)
-[OgreConfigWindowDelegate windowShouldClose:] in libOgreMainStatic.a(OgreConfigDialog.o)
-[OgreConfigWindowDelegate cancelButtonPressed:] in libOgreMainStatic.a(OgreConfigDialog.o)
... "_NSApplicationLoad", referenced from:
-[OgreConfigWindowDelegate init] in libOgreMainStatic.a(OgreConfigDialog.o)
Ogre::OSXCocoaWindow::create(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&,
unsigned int, unsigned int, bool,
std::__1::map<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >,
std::__1::less<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > >,
Ogre::STLAllocator<std::__1::pair<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > >,
Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const*) in
libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
-[OgreView initWithFrame:] in libRenderSystem_GLStatic.a(OgreOSXCocoaView.o)
"_NSSearchPathForDirectoriesInDomains", referenced from:
Ogre::macCachePath() in libOgreMainStatic.a(macUtils.o) "_NSTemporaryDirectory", referenced from:
Ogre::macTempFileName() in libOgreMainStatic.a(macUtils.o) "_NSZeroPoint", referenced from:
Ogre::OSXCocoaWindow::OSXCocoaWindow() in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
Ogre::OSXCocoaWindow::_setWindowParameters() in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
"_OBJC_CLASS_$_NSApplication", referenced from:
l_OBJC_$_CATEGORY_NSApplication_$__suppressUnimplementedActionWarning
in libhand_utils.a(mac_app_loop.mm.o)
objc-class-ref in libhand_utils.a(mac_app_loop.mm.o) "_OBJC_CLASS_$_NSArray", referenced from:
objc-class-ref in libOgreMainStatic.a(OgreConfigDialog.o) "_OBJC_CLASS_$_NSAutoreleasePool", referenced from:
objc-class-ref in libhand_utils.a(mac_app_loop.mm.o)
objc-class-ref in libOgreMainStatic.a(OgreConfigDialog.o)
objc-class-ref in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
"_OBJC_CLASS_$_NSBox", referenced from:
objc-class-ref in libOgreMainStatic.a(OgreConfigDialog.o) "_OBJC_CLASS_$_NSBundle", referenced from:
objc-class-ref in libOgreMainStatic.a(OgreConfigDialog.o) "_OBJC_CLASS_$_NSButton", referenced from:
objc-class-ref in libOgreMainStatic.a(OgreConfigDialog.o) "_OBJC_CLASS_$_NSDictionary", referenced from:
objc-class-ref in libOgreMainStatic.a(OgreConfigDialog.o)
objc-class-ref in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o) "_OBJC_CLASS_$_NSFileManager", referenced from:
objc-class-ref in libOgreMainStatic.a(macUtils.o) "_OBJC_CLASS_$_NSImage", referenced from:
objc-class-ref in libOgreMainStatic.a(OgreConfigDialog.o) "_OBJC_CLASS_$_NSImageView", referenced from:
objc-class-ref in libOgreMainStatic.a(OgreConfigDialog.o) "_OBJC_CLASS_$_NSMenu", referenced from:
objc-class-ref in libhand_utils.a(mac_app_loop.mm.o) "_OBJC_CLASS_$_NSMenuItem", referenced from:
objc-class-ref in libhand_utils.a(mac_app_loop.mm.o) "_OBJC_CLASS_$_NSMutableArray", referenced from:
objc-class-ref in libOgreMainStatic.a(OgreConfigDialog.o) "_OBJC_CLASS_$_NSNotificationCenter", referenced from:
objc-class-ref in libRenderSystem_GLStatic.a(OgreOSXCocoaWindowDelegate.o)
"_OBJC_CLASS_$_NSObject", referenced from:
_OBJC_CLASS_$_MacAppDelegate in libhand_utils.a(mac_app_loop.mm.o)
_OBJC_CLASS_$_OgreConfigWindowDelegate in libOgreMainStatic.a(OgreConfigDialog.o)
_OBJC_CLASS_$_OSXCocoaWindowDelegate in libRenderSystem_GLStatic.a(OgreOSXCocoaWindowDelegate.o)
"_OBJC_CLASS_$_NSOpenGLContext", referenced from:
objc-class-ref in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
objc-class-ref in libRenderSystem_GLStatic.a(OgreOSXCocoaContext.o)
"_OBJC_CLASS_$_NSOpenGLPixelFormat", referenced from:
objc-class-ref in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
"_OBJC_CLASS_$_NSPopUpButton", referenced from:
objc-class-ref in libOgreMainStatic.a(OgreConfigDialog.o) "_OBJC_CLASS_$_NSProcessInfo", referenced from:
objc-class-ref in libhand_utils.a(mac_app_loop.mm.o) "_OBJC_CLASS_$_NSScreen", referenced from:
objc-class-ref in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
objc-class-ref in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
"_OBJC_CLASS_$_NSScrollView", referenced from:
objc-class-ref in libOgreMainStatic.a(OgreConfigDialog.o) "_OBJC_CLASS_$_NSString", referenced from:
objc-class-ref in libOgreMainStatic.a(OgreConfigDialog.o)
objc-class-ref in libOgreMainStatic.a(macUtils.o)
objc-class-ref in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o)
objc-class-ref in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
"_OBJC_CLASS_$_NSTableColumn", referenced from:
objc-class-ref in libOgreMainStatic.a(OgreConfigDialog.o) "_OBJC_CLASS_$_NSTableView", referenced from:
objc-class-ref in libOgreMainStatic.a(OgreConfigDialog.o) "_OBJC_CLASS_$_NSTextField", referenced from:
objc-class-ref in libOgreMainStatic.a(OgreConfigDialog.o) "_OBJC_CLASS_$_NSTimer", referenced from:
objc-class-ref in libhand_utils.a(mac_app_loop.mm.o) "_OBJC_CLASS_$_NSView", referenced from:
_OBJC_CLASS_$_OgreView in libRenderSystem_GLStatic.a(OgreOSXCocoaView.o)
"_OBJC_CLASS_$_NSWindow", referenced from:
objc-class-ref in libOgreMainStatic.a(OgreConfigDialog.o)
_OBJC_CLASS_$_OgreWindow in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
"_OBJC_METACLASS_$_NSObject", referenced from:
_OBJC_METACLASS_$_MacAppDelegate in libhand_utils.a(mac_app_loop.mm.o)
_OBJC_METACLASS_$_OgreConfigWindowDelegate in libOgreMainStatic.a(OgreConfigDialog.o)
_OBJC_METACLASS_$_OgreWindow in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
_OBJC_METACLASS_$_OSXCocoaWindowDelegate in libRenderSystem_GLStatic.a(OgreOSXCocoaWindowDelegate.o)
_OBJC_METACLASS_$_OgreView in libRenderSystem_GLStatic.a(OgreOSXCocoaView.o)
"_OBJC_METACLASS_$_NSView", referenced from:
_OBJC_METACLASS_$_OgreView in libRenderSystem_GLStatic.a(OgreOSXCocoaView.o)
"_OBJC_METACLASS_$_NSWindow", referenced from:
_OBJC_METACLASS_$_OgreWindow in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
"___CFConstantStringClassReference", referenced from:
CFString in libhand_utils.a(mac_app_loop.mm.o)
CFString in libhand_utils.a(mac_app_loop.mm.o)
CFString in libOgreMainStatic.a(OgreConfigDialog.o)
CFString in libOgreMainStatic.a(OgreConfigDialog.o)
CFString in libOgreMainStatic.a(OgreConfigDialog.o)
CFString in libOgreMainStatic.a(OgreConfigDialog.o)
CFString in libOgreMainStatic.a(OgreConfigDialog.o)
... "__objc_empty_cache", referenced from:
_OBJC_CLASS_$_MacAppDelegate in libhand_utils.a(mac_app_loop.mm.o)
_OBJC_METACLASS_$_MacAppDelegate in libhand_utils.a(mac_app_loop.mm.o)
_OBJC_CLASS_$_OgreConfigWindowDelegate in libOgreMainStatic.a(OgreConfigDialog.o)
_OBJC_METACLASS_$_OgreConfigWindowDelegate in libOgreMainStatic.a(OgreConfigDialog.o)
_OBJC_METACLASS_$_OgreWindow in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
_OBJC_CLASS_$_OgreWindow in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
_OBJC_CLASS_$_OSXCocoaWindowDelegate in libRenderSystem_GLStatic.a(OgreOSXCocoaWindowDelegate.o)
... "__objc_empty_vtable", referenced from:
_OBJC_CLASS_$_OgreConfigWindowDelegate in libOgreMainStatic.a(OgreConfigDialog.o)
_OBJC_METACLASS_$_OgreConfigWindowDelegate in libOgreMainStatic.a(OgreConfigDialog.o)
_OBJC_METACLASS_$_OgreWindow in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
_OBJC_CLASS_$_OgreWindow in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
_OBJC_CLASS_$_OSXCocoaWindowDelegate in libRenderSystem_GLStatic.a(OgreOSXCocoaWindowDelegate.o)
_OBJC_METACLASS_$_OSXCocoaWindowDelegate in libRenderSystem_GLStatic.a(OgreOSXCocoaWindowDelegate.o)
_OBJC_CLASS_$_OgreView in libRenderSystem_GLStatic.a(OgreOSXCocoaView.o)
... "_kCFAllocatorDefault", referenced from:
Ogre::OSXGLSupport::addConfig() in libRenderSystem_GLStatic.a(OgreOSXGLSupport.o) "_objc_msgSend",
referenced from:
MacAppLoop::~MacAppLoop() in libhand_utils.a(mac_app_loop.mm.o)
MacAppLoop::~MacAppLoop() in libhand_utils.a(mac_app_loop.mm.o)
MacAppLoop::~MacAppLoop() in libhand_utils.a(mac_app_loop.mm.o)
MacAppLoopPrivate::~MacAppLoopPrivate() in libhand_utils.a(mac_app_loop.mm.o)
MacAppLoopPrivate::Setup(double) in libhand_utils.a(mac_app_loop.mm.o)
MacAppLoop::Run() in libhand_utils.a(mac_app_loop.mm.o)
MacAppLoopPrivate::Run() in libhand_utils.a(mac_app_loop.mm.o)
... "_objc_msgSendSuper2", referenced from:
-[MacAppDelegate initWithPrivateLoop:] in libhand_utils.a(mac_app_loop.mm.o)
-[MacAppDelegate dealloc] in libhand_utils.a(mac_app_loop.mm.o)
-[OgreConfigWindowDelegate init] in libOgreMainStatic.a(OgreConfigDialog.o)
-[OgreConfigWindowDelegate dealloc] in libOgreMainStatic.a(OgreConfigDialog.o)
-[OSXCocoaWindowDelegate initWithNSWindow:ogreWindow:] in libRenderSystem_GLStatic.a(OgreOSXCocoaWindowDelegate.o)
-[OSXCocoaWindowDelegate dealloc] in libRenderSystem_GLStatic.a(OgreOSXCocoaWindowDelegate.o)
-[OgreView initWithFrame:] in libRenderSystem_GLStatic.a(OgreOSXCocoaView.o)
... "_objc_msgSend_stret", referenced from:
Ogre::OSXCocoaWindow::create(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&,
unsigned int, unsigned int, bool,
std::__1::map<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> >,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >,
std::__1::less<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > >,
Ogre::STLAllocator<std::__1::pair<std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > >,
Ogre::CategorisedAllocPolicy<(Ogre::MemoryCategory)0> > > const*) in
libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
Ogre::OSXCocoaWindow::createNewWindow(unsigned int, unsigned int, std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> >) in
libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
Ogre::OSXCocoaWindow::getWidth() const in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
Ogre::OSXCocoaWindow::getHeight() const in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
Ogre::OSXCocoaWindow::reposition(int, int) in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
Ogre::OSXCocoaWindow::resize(unsigned int, unsigned int) in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
Ogre::OSXCocoaWindow::windowResized() in libRenderSystem_GLStatic.a(OgreOSXCocoaWindow.o)
... ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see
invocation) make[2]: *** [source/pose_designer] Error 1 make[1]: ***
[source/CMakeFiles/pose_designer.dir/all] Error 2 make: *** [all]
Error 2
EDIT:
After adding the cocoa or carbon framework it builds fine. This can be done by editing the CMakeLists.txt file and adding the lines:
FIND_LIBRARY(COCOA_LIBRARY Cocoa)
INCLUDE_DIRECTORIES(${COCOA_LIBRARY})
and adding a line the line: ${COCOA_LIBRARY} to the TARGET_LINK_LIBRARIES
Thanks again to Etan for the hint.

replaced "-lmkl_em64t" by "-lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core" -> "Undefined symbols for architecture x86_64" fortran

I am trying to compile Fortran code on Mac OS X 10.9.3, using intel's Fortran compiler and get this error message:
ld: library not found for -lmkl_em64t
When I replace -lmkl_em64t by -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core, as suggested here
I am getting another error: Undefined symbols for architecture x86_64:
Does anybody have a solution for this?
Thanks,
Heini
=======Here the complete error message:
ifort -I../include -I../include -I../pdummylib -I../pdummylib -L./i686-apple-darwin9 -L../lib/i686-apple-darwin9 -L../lib/i686-apple-darwin9 -o i686-apple-darwin9/aoforce i686-apple-darwin9/fit9.o i686-apple-darwin9/aoforce.o -lparalib -laoforcelib -lecplib -lescflib -ltraflib -lrelaxlib -lstatptlib -lutilmod -lcosmolib -lsymlib -ldscflib -lgradlib -ldftlib -laoforcelib -lridftlib -llochyblib -lmultlib -lrilib -lintlib -lutilib -lalgebralib -lsymlib -lutilmod -lclib -lmolochlib -lreleaslib -L/usr/lib -lmkl_lapack -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lpthread -lpdummylib -lutilib
Undefined symbols for architecture x86_64:
"___kmpc_atomic_float8_max", referenced from:
_mkl_lapack_dlansy in libmkl_intel_thread.a(dlansy_par.o)
_mkl_lapack_zlanhe in libmkl_intel_thread.a(zlanhe_par.o)
"___kmpc_barrier", referenced from:
_mkl_blas_dgemm in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_1d_row in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_1d_col in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_2d_bcopy in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_1d_with_copy_0 in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_2d_abcopy_abx_m_km_par_p in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_2d_xgemm_p in libmkl_intel_thread.a(dgemm_drv.o)
...
"___kmpc_critical", referenced from:
_mkl_lapack_dgetrf in libmkl_intel_thread.a(dgetrf_par.o)
_mkl_lapack_dsbrdbm in libmkl_intel_thread.a(dsbrdbm_par.o)
_mkl_lapack_dlaeh2 in libmkl_intel_thread.a(dlaeh2_par.o)
_mkl_lapack_dsbrdbn in libmkl_intel_thread.a(dsbrdbn_par.o)
_mkl_lapack_zhbrdbm in libmkl_intel_thread.a(zhbrdbm_par.o)
"___kmpc_dispatch_fini_8", referenced from:
_mkl_lapack_dlaed0 in libmkl_intel_thread.a(dlaed0_par.o)
"___kmpc_dispatch_init_8", referenced from:
_mkl_lapack_dgetrf in libmkl_intel_thread.a(dgetrf_par.o)
_mkl_lapack_dlaed0 in libmkl_intel_thread.a(dlaed0_par.o)
_mkl_lapack_dormql in libmkl_intel_thread.a(dormql_par.o)
_mkl_lapack_dormqr in libmkl_intel_thread.a(dormqr_par.o)
"___kmpc_dispatch_next_8", referenced from:
_mkl_lapack_dgetrf in libmkl_intel_thread.a(dgetrf_par.o)
_mkl_lapack_dlaed0 in libmkl_intel_thread.a(dlaed0_par.o)
_mkl_lapack_dormql in libmkl_intel_thread.a(dormql_par.o)
_mkl_lapack_dormqr in libmkl_intel_thread.a(dormqr_par.o)
"___kmpc_end_critical", referenced from:
_mkl_lapack_dgetrf in libmkl_intel_thread.a(dgetrf_par.o)
_mkl_lapack_dsbrdbm in libmkl_intel_thread.a(dsbrdbm_par.o)
_mkl_lapack_dlaeh2 in libmkl_intel_thread.a(dlaeh2_par.o)
_mkl_lapack_dsbrdbn in libmkl_intel_thread.a(dsbrdbn_par.o)
_mkl_lapack_zhbrdbm in libmkl_intel_thread.a(zhbrdbm_par.o)
"___kmpc_end_master", referenced from:
_mkl_blas_dgemv_omp in libmkl_intel_thread.a(dgemv_omp.o)
_mkl_blas_zhemm in libmkl_intel_thread.a(zhemm_drv.o)
_mkl_blas_zgemv_omp in libmkl_intel_thread.a(zgemv_omp.o)
"___kmpc_end_ordered", referenced from:
_mkl_lapack_dlaed0 in libmkl_intel_thread.a(dlaed0_par.o)
"___kmpc_end_reduce_nowait", referenced from:
_mkl_lapack_dlansy in libmkl_intel_thread.a(dlansy_par.o)
_mkl_lapack_zlanhe in libmkl_intel_thread.a(zlanhe_par.o)
"___kmpc_end_serialized_parallel", referenced from:
_mkl_blas_dgemm in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dsyrk in libmkl_intel_thread.a(dsyrk_drv.o)
_mkl_blas_dtrsm in libmkl_intel_thread.a(dtrsm_drv.o)
_mkl_blas_daxpy_omp in libmkl_intel_thread.a(daxpy_omp.o)
_mkl_blas_dcopy_omp in libmkl_intel_thread.a(dcopy_omp.o)
_mkl_blas_ddot_omp in libmkl_intel_thread.a(ddot_omp.o)
_mkl_blas_dgemv_omp in libmkl_intel_thread.a(dgemv_omp.o)
...
"___kmpc_end_single", referenced from:
_mkl_blas_dgemm in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_lapack_dgetrf in libmkl_intel_thread.a(dgetrf_par.o)
_mkl_lapack_dgetrf_ib in libmkl_intel_thread.a(dgetrf_ib_par.o)
_mkl_lapack_dlatrd in libmkl_intel_thread.a(dlatrd_par.o)
_mkl_lapack_dsytd3 in libmkl_intel_thread.a(dsytd3_par.o)
_mkl_blas_zgemm in libmkl_intel_thread.a(zgemm_drv.o)
_mkl_lapack_zhetd3 in libmkl_intel_thread.a(zhetd3_par.o)
...
"___kmpc_flush", referenced from:
_mkl_lapack_dlaed0 in libmkl_intel_thread.a(dlaed0_par.o)
"___kmpc_for_static_fini", referenced from:
_mkl_lapack_dlacpy in libmkl_intel_thread.a(dlacpy_par.o)
_mkl_lapack_dlaed0 in libmkl_intel_thread.a(dlaed0_par.o)
_mkl_lapack_dlaset in libmkl_intel_thread.a(dlaset_par.o)
_mkl_lapack_dlaswp in libmkl_intel_thread.a(dlaswp_par.o)
_mkl_lapack_dlatrd in libmkl_intel_thread.a(dlatrd_par.o)
_mkl_lapack_dorgql in libmkl_intel_thread.a(dorgql_par.o)
_mkl_lapack_dorgqr in libmkl_intel_thread.a(dorgqr_par.o)
...
"___kmpc_for_static_init_4", referenced from:
_mkl_lapack_dlatrd in libmkl_intel_thread.a(dlatrd_par.o)
_mkl_lapack_zlatrd in libmkl_intel_thread.a(zlatrd_par.o)
"___kmpc_for_static_init_8", referenced from:
_mkl_lapack_dlacpy in libmkl_intel_thread.a(dlacpy_par.o)
_mkl_lapack_dlaed0 in libmkl_intel_thread.a(dlaed0_par.o)
_mkl_lapack_dlaset in libmkl_intel_thread.a(dlaset_par.o)
_mkl_lapack_dlaswp in libmkl_intel_thread.a(dlaswp_par.o)
_mkl_lapack_dorgql in libmkl_intel_thread.a(dorgql_par.o)
_mkl_lapack_dorgqr in libmkl_intel_thread.a(dorgqr_par.o)
_mkl_lapack_dlaeh2 in libmkl_intel_thread.a(dlaeh2_par.o)
...
"___kmpc_fork_call", referenced from:
_mkl_blas_dgemm in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dsyrk in libmkl_intel_thread.a(dsyrk_drv.o)
_mkl_blas_dtrsm in libmkl_intel_thread.a(dtrsm_drv.o)
_mkl_blas_daxpy_omp in libmkl_intel_thread.a(daxpy_omp.o)
_mkl_blas_dcopy_omp in libmkl_intel_thread.a(dcopy_omp.o)
_mkl_blas_ddot_omp in libmkl_intel_thread.a(ddot_omp.o)
_mkl_blas_dgemv_omp in libmkl_intel_thread.a(dgemv_omp.o)
...
"___kmpc_global_thread_num", referenced from:
_mkl_blas_dgemm in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_1d_row in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_1d_col in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_2d_bcopy in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_1d_with_copy_0 in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_2d_abcopy_abx_m_km_par_p in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_2d_xgemm_p in libmkl_intel_thread.a(dgemm_drv.o)
...
"___kmpc_master", referenced from:
_mkl_blas_dgemv_omp in libmkl_intel_thread.a(dgemv_omp.o)
_mkl_blas_zhemm in libmkl_intel_thread.a(zhemm_drv.o)
_mkl_blas_zgemv_omp in libmkl_intel_thread.a(zgemv_omp.o)
"___kmpc_ok_to_fork", referenced from:
_mkl_blas_dgemm in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dsyrk in libmkl_intel_thread.a(dsyrk_drv.o)
_mkl_blas_dtrsm in libmkl_intel_thread.a(dtrsm_drv.o)
_mkl_blas_daxpy_omp in libmkl_intel_thread.a(daxpy_omp.o)
_mkl_blas_dcopy_omp in libmkl_intel_thread.a(dcopy_omp.o)
_mkl_blas_ddot_omp in libmkl_intel_thread.a(ddot_omp.o)
_mkl_blas_dgemv_omp in libmkl_intel_thread.a(dgemv_omp.o)
...
"___kmpc_ordered", referenced from:
_mkl_lapack_dlaed0 in libmkl_intel_thread.a(dlaed0_par.o)
"___kmpc_push_num_threads", referenced from:
_mkl_blas_dgemm in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dsyrk in libmkl_intel_thread.a(dsyrk_drv.o)
_mkl_blas_dtrsm in libmkl_intel_thread.a(dtrsm_drv.o)
_mkl_blas_daxpy_omp in libmkl_intel_thread.a(daxpy_omp.o)
_mkl_blas_dcopy_omp in libmkl_intel_thread.a(dcopy_omp.o)
_mkl_blas_ddot_omp in libmkl_intel_thread.a(ddot_omp.o)
_mkl_blas_dgemv_omp in libmkl_intel_thread.a(dgemv_omp.o)
...
"___kmpc_reduce_nowait", referenced from:
_mkl_lapack_dlansy in libmkl_intel_thread.a(dlansy_par.o)
_mkl_lapack_zlanhe in libmkl_intel_thread.a(zlanhe_par.o)
"___kmpc_serialized_parallel", referenced from:
_mkl_blas_dgemm in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dsyrk in libmkl_intel_thread.a(dsyrk_drv.o)
_mkl_blas_dtrsm in libmkl_intel_thread.a(dtrsm_drv.o)
_mkl_blas_daxpy_omp in libmkl_intel_thread.a(daxpy_omp.o)
_mkl_blas_dcopy_omp in libmkl_intel_thread.a(dcopy_omp.o)
_mkl_blas_ddot_omp in libmkl_intel_thread.a(ddot_omp.o)
_mkl_blas_dgemv_omp in libmkl_intel_thread.a(dgemv_omp.o)
...
"___kmpc_single", referenced from:
_mkl_blas_dgemm in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_lapack_dgetrf in libmkl_intel_thread.a(dgetrf_par.o)
_mkl_lapack_dgetrf_ib in libmkl_intel_thread.a(dgetrf_ib_par.o)
_mkl_lapack_dlatrd in libmkl_intel_thread.a(dlatrd_par.o)
_mkl_lapack_dsytd3 in libmkl_intel_thread.a(dsytd3_par.o)
_mkl_blas_zgemm in libmkl_intel_thread.a(zgemm_drv.o)
_mkl_lapack_zhetd3 in libmkl_intel_thread.a(zhetd3_par.o)
...
"_omp_get_dynamic_", referenced from:
_get_dynamic_ in libutilib.a(ompwrap.o)
"_omp_get_max_threads", referenced from:
_mkl_serv_get_max_threads in libmkl_intel_thread.a(mkl_threading.o)
_mkl_serv_domain_get_max_threads in libmkl_intel_thread.a(mkl_threading.o)
"_omp_get_max_threads_", referenced from:
_get_max_threads_ in libutilib.a(ompwrap.o)
"_omp_get_num_procs_", referenced from:
_get_num_procs_ in libutilib.a(ompwrap.o)
"_omp_get_num_threads", referenced from:
_mkl_blas_dgemm in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dsyrk in libmkl_intel_thread.a(dsyrk_drv.o)
_mkl_blas_dtrsm in libmkl_intel_thread.a(dtrsm_drv.o)
_mkl_blas_daxpy_omp in libmkl_intel_thread.a(daxpy_omp.o)
_mkl_blas_dcopy_omp in libmkl_intel_thread.a(dcopy_omp.o)
_mkl_blas_ddot_omp in libmkl_intel_thread.a(ddot_omp.o)
_mkl_blas_dgemv_omp in libmkl_intel_thread.a(dgemv_omp.o)
...
"_omp_get_num_threads_", referenced from:
_get_num_threads_ in libutilib.a(ompwrap.o)
"_omp_get_thread_num", referenced from:
_mkl_blas_dgemm in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_1d_row in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_1d_col in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_2d_bsrc in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_2d_bcopy in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_1d_with_copy_0 in libmkl_intel_thread.a(dgemm_drv.o)
_mkl_blas_dgemm_2d_abcopy_abx_m_km_par_p in libmkl_intel_thread.a(dgemm_drv.o)
...
"_omp_get_thread_num_", referenced from:
_get_thread_num_ in libutilib.a(ompwrap.o)
"_omp_in_parallel", referenced from:
_mkl_serv_get_max_threads in libmkl_intel_thread.a(mkl_threading.o)
_mkl_serv_domain_get_max_threads in libmkl_intel_thread.a(mkl_threading.o)
_mkl_serv_omp_in_parallel in libmkl_intel_thread.a(mkl_threading.o)
(maybe you meant: _mkl_serv_omp_in_parallel)
"_omp_in_parallel_", referenced from:
_in_parallel_ in libutilib.a(ompwrap.o)
"_omp_set_dynamic_", referenced from:
_set_dynamic_ in libutilib.a(ompwrap.o)
"_omp_set_nested_", referenced from:
_set_nested_ in libutilib.a(ompwrap.o)
"_omp_set_num_threads_", referenced from:
_set_num_threads_ in libutilib.a(ompwrap.o)
ld: symbol(s) not found for architecture x86_64
make[1]: *** [i686-apple-darwin9/aoforce] Error 1
make: *** [prog] Error 1

Resources