I'm working on a project and it's compiling with all of my co-workers but me (we use Github to synchronize our work). We all work with MacOs 10.8.4. Here's a part of the error I'm facing :
Undefined symbols for architecture x86_64:
"qt_message_output(QtMsgType, QMessageLogContext const&, QString const&)", referenced from:
QDebug::~QDebug() in PhTimeCode.o
QDebug::~QDebug() in PhStripDoc.o
QDebug::~QDebug() in PhGraphicView.o
QDebug::~QDebug() in PhGraphicContext.o
QDebug::~QDebug() in PhGraphicImage.o
QDebug::~QDebug() in PhGraphicTexturedRect.o
QDebug::~QDebug() in PhGraphicStripView.o
...
"QArrayData::deallocate(QArrayData*, unsigned long, unsigned long)", referenced from:
QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhTimeCode.o
QTypedArrayData<char>::deallocate(QArrayData*) in PhDebug.o
QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhDebug.o
QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhStripDoc.o
QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhStripText.o
QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhPeople.o
QTypedArrayData<unsigned short>::deallocate(QArrayData*) in PhGraphicView.o
...
"QArrayData::shared_null", referenced from:
QArrayData::sharedNull() in PhDebug.o
QArrayData::sharedNull() in PhStripDoc.o
QArrayData::sharedNull() in PhStripText.o
QArrayData::sharedNull() in PhPeople.o
QArrayData::sharedNull() in PhGraphicText.o
QArrayData::sharedNull() in PhFont.o
"QMetaObject::Connection::~Connection()", referenced from:
PhGraphicView::PhGraphicView(QWidget*) in PhGraphicView.o
PhGraphicStripView::PhGraphicStripView(QWidget*) in PhGraphicStripView.o
MainWindow::MainWindow(QWidget*) in MainWindow.o
"QMapDataBase::createData()", referenced from:
QMapData<QString, PhPeople*>::create() in PhStripDoc.o
QMapData<PhStripCut*, PhGraphicRect*>::create() in PhGraphicStripView.o
QMapData<PhStripText*, PhGraphicText*>::create() in PhGraphicStripView.o
QMapData<PhPeople*, PhGraphicText*>::create() in PhGraphicStripView.o
QMapData<QString, PhPeople*>::create() in PhGraphicStripView.o
"QMapDataBase::createNode(int, int, QMapNodeBase*, bool)", referenced from:
QMapData<QString, PhPeople*>::createNode(QString const&, PhPeople* const&, QMapNode<QString, PhPeople*>*, bool) in PhStripDoc.o
QMapData<PhStripCut*, PhGraphicRect*>::createNode(PhStripCut* const&, PhGraphicRect* const&, QMapNode<PhStripCut*, PhGraphicRect*>*, bool) in PhGraphicStripView.o
QMapData<PhStripText*, PhGraphicText*>::createNode(PhStripText* const&, PhGraphicText* const&, QMapNode<PhStripText*, PhGraphicText*>*, bool) in PhGraphicStripView.o
QMapData<PhPeople*, PhGraphicText*>::createNode(PhPeople* const&, PhGraphicText* const&, QMapNode<PhPeople*, PhGraphicText*>*, bool) in PhGraphicStripView.o
QMapData<QString, PhPeople*>::createNode(QString const&, PhPeople* const&, QMapNode<QString, PhPeople*>*, bool) in PhGraphicStripView.o
"QMapDataBase::shared_null", referenced from:
QMap<QString, PhPeople*>::QMap() in PhStripDoc.o
QMap<PhStripCut*, PhGraphicRect*>::QMap() in PhGraphicStripView.o
QMap<PhStripText*, PhGraphicText*>::QMap() in PhGraphicStripView.o
QMap<PhPeople*, PhGraphicText*>::QMap() in PhGraphicStripView.o
"QMapDataBase::recalcMostLeftNode()", referenced from:
QMap<QString, PhPeople*>::QMap(QMap<QString, PhPeople*> const&) in PhStripDoc.o
QMap<QString, PhPeople*>::detach_helper() in PhStripDoc.o
QMap<PhStripCut*, PhGraphicRect*>::detach_helper() in PhGraphicStripView.o
QMap<PhStripText*, PhGraphicText*>::detach_helper() in PhGraphicStripView.o
QMap<PhPeople*, PhGraphicText*>::detach_helper() in PhGraphicStripView.o
QMap<QString, PhPeople*>::QMap(QMap<QString, PhPeople*> const&) in PhGraphicStripView.o
QMap<PhStripText*, PhGraphicText*>::QMap(QMap<PhStripText*, PhGraphicText*> const&) in PhGraphicStripView.o
...
the code compile with everybody expected me, and I've already re-installed Qt via the online installer. I'm lost.
Please check you have any other Qt libraries already installed in your system(in some other paths). If so uninstall & try.
Related
I've been trying to figure this out and have tried several approaches, so this is my last resort. I can try maybe deleting crashlytics, but I don't know how to go about that. Does anyone have any suggestions. I also tried adding in crashlytics on Podfile, but that didn't work either.
This only happens when i run command 'npx react-native run-ios'.
The command 'npx react-native start' runs fine
Undefined symbols for architecture x86_64:
"_CLSMachOFormatVersion", referenced from:
_CLSBinaryImageRecordMainExecutable in Crashlytics(CLSBinaryImage.o)
"_CLSMachOGetEncrypted", referenced from:
___CLSBinaryImageFillInImageDetails_block_invoke in Crashlytics(CLSBinaryImage.o)
"_CLSMachOGetLinkedSDKVersion", referenced from:
___CLSBinaryImageFillInImageDetails_block_invoke in Crashlytics(CLSBinaryImage.o)
"_CLSMachOGetMinimumOSVersion", referenced from:
___CLSBinaryImageFillInImageDetails_block_invoke in Crashlytics(CLSBinaryImage.o)
"_CLSMachOGetUUID", referenced from:
___CLSBinaryImageFillInImageDetails_block_invoke in Crashlytics(CLSBinaryImage.o)
"_CLSMachOSliceEnumerateLoadCommands", referenced from:
_CLSBinaryImageFillInImageDetails in Crashlytics(CLSBinaryImage.o)
"_CLSMachOSliceGetArchitectureName", referenced from:
_CLSBinaryImageRecordMainExecutable in Crashlytics(CLSBinaryImage.o)
"_CLSMachOSliceGetCurrent", referenced from:
_CLSBinaryImageRecordMainExecutable in Crashlytics(CLSBinaryImage.o)
"_CLSMachOSliceGetExecutablePath", referenced from:
___CLSBinaryImageChanged_block_invoke in Crashlytics(CLSBinaryImage.o)
"_CLSMachOSliceIs64Bit", referenced from:
_CLSBinaryImageMachOSliceInitSectionByName in Crashlytics(CLSBinaryImage.o)
"_CLSMachOSliceWithHeader", referenced from:
_CLSBinaryImageFindImageForUUID in Crashlytics(CLSBinaryImage.o)
_CLSBinaryImageChanged in Crashlytics(CLSBinaryImage.o)
"_FABApplicationGetBundleIdentifier", referenced from:
-[CLSFileManager pathNamespace] in Crashlytics(CLSFileManager.o)
-[CLSBetaController appBundleIdentifier] in Crashlytics(CLSBetaController.o)
-[CLSCrashReportingController bundleIdentifier] in Crashlytics(CLSCrashReportingController.o)
-[ANSMetadata initWithFabric:betaToken:] in Crashlytics(ANSMetadata.o)
+[ANSAnswersController rootDirectory] in Crashlytics(ANSAnswersController.o)
___CLSContextInitialize_block_invoke.26 in Crashlytics(CLSContext.o)
"_FABApplicationGetBundleVersion", referenced from:
-[CLSBetaController appBuildVersion] in Crashlytics(CLSBetaController.o)
-[ANSMetadata initWithFabric:betaToken:] in Crashlytics(ANSMetadata.o)
___CLSContextInitialize_block_invoke.26 in Crashlytics(CLSContext.o)
"_FABApplicationGetName", referenced from:
-[CLSBetaUpdate promptMessage] in Crashlytics(CLSBetaUpdate.o)
"_FABApplicationGetShortBundleVersion", referenced from:
-[CLSBetaController appDisplayVersion] in Crashlytics(CLSBetaController.o)
-[ANSMetadata initWithFabric:betaToken:] in Crashlytics(ANSMetadata.o)
___CLSContextInitialize_block_invoke.26 in Crashlytics(CLSContext.o)
"_FABApplicationInstallationSource", referenced from:
+[CLSBetaController isBetaSupported] in Crashlytics(CLSBetaController.o)
-[CLSBetaController appInstallationSource] in Crashlytics(CLSBetaController.o)
"_FABBuiltinCertificates", referenced from:
+[CLSBetaController pinnnedCertificates] in Crashlytics(CLSBetaController.o)
+[CLSNetworkClient pinner] in Crashlytics(CLSNetworkClient.o)
-[ANSNetworkRetryHandler init] in Crashlytics(ANSNetworkRetryHandler.o)
"_FABEnumerateByteRangesOfNSDataUsingBlock", referenced from:
-[CLSPackageReportOperation compressData:toPath:] in Crashlytics(CLSPackageReportOperation.o)
"_FABGenerateUUID", referenced from:
-[ANSEvent init] in Crashlytics(ANSEvent.o)
-[ANSAnswersController generateNewLogPath] in Crashlytics(ANSAnswersController.o)
"_FABHostGetOSVersion", referenced from:
_CLSHostGetNormalizedOSVersion in Crashlytics(CLSHost.o)
"_FABHostModelInfo", referenced from:
___20-[Crashlytics start]_block_invoke in Crashlytics(Crashlytics.o)
-[ANSMetadata initWithFabric:betaToken:] in Crashlytics(ANSMetadata.o)
_CLSHostRecord in Crashlytics(CLSHost.o)
"_FABHostOSBuildVersion", referenced from:
___20-[Crashlytics start]_block_invoke in Crashlytics(Crashlytics.o)
-[ANSMetadata initWithFabric:betaToken:] in Crashlytics(ANSMetadata.o)
_CLSHostRecord in Crashlytics(CLSHost.o)
"_FABHostOSDisplayVersion", referenced from:
___20-[Crashlytics start]_block_invoke in Crashlytics(Crashlytics.o)
-[ANSMetadata initWithFabric:betaToken:] in Crashlytics(ANSMetadata.o)
_CLSHostRecord in Crashlytics(CLSHost.o)
"_FABNetworkErrorDomain", referenced from:
-[ANSNetworkRetryHandler errorWithCode:forIdentifier:request:handlerError:] in Crashlytics(ANSNetworkRetryHandler.o)
-[ANSUploader errorWithCode:userInfo:] in Crashlytics(ANSUploader.o)
"_FABNetworkMaximumRetryCount", referenced from:
___51-[CLSBetaController loadUpdateWithCompletionBlock:]_block_invoke in Crashlytics(CLSBetaController.o)
"_FABSettingsAvailableNotification", referenced from:
-[CLSBetaController start] in Crashlytics(CLSBetaController.o)
-[CLSCrashReportingController startCrashReporterWithAPIKey:betaToken:profilingMark:report:] in Crashlytics(CLSCrashReportingController.o)
-[CLSCrashReportingController fabricSettingsDownloaded:] in Crashlytics(CLSCrashReportingController.o)
-[ANSAnswersController initWithBetaToken:rootDirectory:] in Crashlytics(ANSAnswersController.o)
"_OBJC_CLASS_$_CLSURLSession", referenced from:
objc-class-ref in Crashlytics(CLSNetworkClient.o)
objc-class-ref in Crashlytics(ANSUploader.o)
"_OBJC_CLASS_$_CLSURLSessionConfiguration", referenced from:
objc-class-ref in Crashlytics(CLSNetworkClient.o)
objc-class-ref in Crashlytics(ANSUploader.o)
"_OBJC_CLASS_$_FABCertificatePinner", referenced from:
objc-class-ref in Crashlytics(CLSNetworkClient.o)
objc-class-ref in Crashlytics(ANSNetworkRetryHandler.o)
"_OBJC_CLASS_$_FABMultipartMimeStreamEncoder", referenced from:
objc-class-ref in Crashlytics(CLSPackageReportOperation.o)
objc-class-ref in Crashlytics(CLSReportsController.o)
objc-class-ref in Crashlytics(ANSPackageLogOperation.o)
objc-class-ref in Crashlytics(ANSAnswersController.o)
objc-class-ref in Crashlytics(ANSUploadOperation.o)
"_OBJC_CLASS_$_FABNetworkClient", referenced from:
objc-class-ref in Crashlytics(CLSBetaController.o)
"_OBJC_CLASS_$_FABNetworkResponseHandler", referenced from:
objc-class-ref in Crashlytics(CLSNetworkClient.o)
objc-class-ref in Crashlytics(ANSNetworkRetryHandler.o)
"_OBJC_CLASS_$_FABURLBuilder", referenced from:
objc-class-ref in Crashlytics(CLSBetaController.o)
objc-class-ref in Crashlytics(CLSReportsController.o)
"_OBJC_CLASS_$_Fabric", referenced from:
objc-class-ref in Crashlytics(Crashlytics.o)
objc-class-ref in Crashlytics(CLSBetaController.o)
objc-class-ref in Crashlytics(CLSCrashReportingController.o)
objc-class-ref in Crashlytics(CLSReportsController.o)
objc-class-ref in Crashlytics(CLSNetworkClient.o)
objc-class-ref in Crashlytics(Answers.o)
objc-class-ref in Crashlytics(CLSFCRAnalytics.o)
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld /Users/aashmangupta/Desktop/CS/CS495/pantryCLI/LogicalPantry/ios/build/LogicalPantry/Build/Products/Debug-iphonesimulator/LogicalPantry.app/LogicalPantry normal x86_64
(1 failure)
Background
I am trying to install the package "zip" in terminal of macOS via the command install.packages() after entering 'R':
R
install.packages("zip")
I also entered the same command to install the same package in Rstudio console, no problems arise at all (meaning that the functions that come with the package are functional (only in Rstudio)).
Problem
Simply put, the package "zip" is not installed. The following error messages (which is extremely long), arise in the terminal:
* installing *source* package ‘zip’ ...
** package ‘zip’ successfully unpacked and MD5 sums checked
** libs
x86_64-apple-darwin13.4.0-clang -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -I/Users/hephaeschuen/anaconda3/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix miniz.c zip.c tools/cmdzip.c -o tools/cmdzip
ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd
Undefined symbols for architecture x86_64:
"___assert_rtn", referenced from:
_tdefl_compress in miniz-444461.o
_tinfl_decompress in miniz-444461.o
_tdefl_flush_block in miniz-444461.o
_tdefl_compress_buffer in miniz-444461.o
_tdefl_compress_mem_to_output in miniz-444461.o
_tdefl_write_image_to_png_file_in_memory_ex in miniz-444461.o
_mz_zip_reader_read_central_dir in miniz-444461.o
...
"___bzero", referenced from:
_tdefl_init in miniz-444461.o
_tdefl_compress in miniz-444461.o
_tinfl_decompress in miniz-444461.o
_tdefl_flush_block in miniz-444461.o
_mz_zip_reader_init in miniz-444461.o
_mz_zip_reader_init_mem in miniz-444461.o
_mz_zip_reader_init_file_v2 in miniz-444461.o
...
"___error", referenced from:
_zip_error in zip-fff898.o
_zip_mkdirp in zip-fff898.o
_zip_unzip in zip-fff898.o
"___memcpy_chk", referenced from:
_tdefl_compress_block in miniz-444461.o
"___memset_chk", referenced from:
_mz_zip_writer_add_mem_ex_v2 in miniz-444461.o
_mz_zip_writer_add_cfile in miniz-444461.o
_mz_zip_writer_add_from_zip_reader in miniz-444461.o
"___stack_chk_fail", referenced from:
_mz_deflate in miniz-444461.o
_mz_compress2 in miniz-444461.o
_mz_inflate in miniz-444461.o
_tinfl_decompress in miniz-444461.o
_mz_uncompress in miniz-444461.o
_tdefl_compress_buffer in miniz-444461.o
_tdefl_compress_mem_to_output in miniz-444461.o
...
"___stack_chk_guard", referenced from:
_mz_deflate in miniz-444461.o
_mz_compress2 in miniz-444461.o
_mz_inflate in miniz-444461.o
_tinfl_decompress in miniz-444461.o
_mz_uncompress in miniz-444461.o
_tdefl_compress_buffer in miniz-444461.o
_tdefl_compress_mem_to_output in miniz-444461.o
...
"___stderrp", referenced from:
_cmd_zip_error_handler in cmdzip-d70c7b.o
_main in cmdzip-d70c7b.o
"___vsnprintf_chk", referenced from:
_zip_error in zip-fff898.o
"_calloc", referenced from:
_main in cmdzip-d70c7b.o
"_chmod", referenced from:
_zip_unzip in zip-fff898.o
"_exit", referenced from:
_cmd_zip_error_handler in cmdzip-d70c7b.o
"_fclose", referenced from:
_mz_zip_reader_end_internal in miniz-444461.o
_mz_zip_reader_init_file_v2 in miniz-444461.o
_mz_zip_reader_extract_to_file in miniz-444461.o
_mz_zip_writer_end_internal in miniz-444461.o
_mz_zip_writer_add_file in miniz-444461.o
"_fflush", referenced from:
_mz_zip_writer_finalize_archive in miniz-444461.o
"_fopen", referenced from:
_mz_zip_reader_init_file_v2 in miniz-444461.o
_mz_zip_reader_extract_to_file in miniz-444461.o
_mz_zip_writer_init_file_v2 in miniz-444461.o
_mz_zip_writer_add_file in miniz-444461.o
_mz_zip_add_mem_to_archive_file_in_place_v2 in miniz-444461.o
"_fprintf", referenced from:
_cmd_zip_error_handler in cmdzip-d70c7b.o
_main in cmdzip-d70c7b.o
"_fread", referenced from:
_mz_zip_file_read_func in miniz-444461.o
_mz_zip_writer_add_cfile in miniz-444461.o
"_free", referenced from:
_mz_free in miniz-444461.o
_miniz_def_free_func in miniz-444461.o
_tdefl_compress_mem_to_output in miniz-444461.o
_tdefl_write_image_to_png_file_in_memory_ex in miniz-444461.o
_tdefl_compressor_free in miniz-444461.o
_tinfl_decompress_mem_to_heap in miniz-444461.o
_tinfl_decompress_mem_to_callback in miniz-444461.o
...
(maybe you meant: _tinfl_decompressor_free, _tdefl_compressor_free , _mz_zip_reader_extract_iter_free , _miniz_def_free_func , _mz_free )
"_freopen", referenced from:
_mz_zip_writer_init_from_reader_v2 in miniz-444461.o
"_fseeko", referenced from:
_mz_zip_reader_init_file_v2 in miniz-444461.o
_mz_zip_file_read_func in miniz-444461.o
_mz_zip_reader_init_cfile in miniz-444461.o
_mz_zip_file_write_func in miniz-444461.o
_mz_zip_writer_add_file in miniz-444461.o
"_ftello", referenced from:
_mz_zip_reader_init_file_v2 in miniz-444461.o
_mz_zip_file_read_func in miniz-444461.o
_mz_zip_reader_init_cfile in miniz-444461.o
_mz_zip_file_write_func in miniz-444461.o
_mz_zip_writer_init_cfile in miniz-444461.o
_mz_zip_writer_add_file in miniz-444461.o
"_fwrite", referenced from:
_mz_zip_file_write_callback in miniz-444461.o
_mz_zip_file_write_func in miniz-444461.o
"_localtime", referenced from:
_mz_zip_writer_add_mem_ex_v2 in miniz-444461.o
_mz_zip_writer_add_cfile in miniz-444461.o
"_malloc", referenced from:
_miniz_def_alloc_func in miniz-444461.o
_mz_compress2 in miniz-444461.o
_mz_uncompress in miniz-444461.o
_tdefl_compress_mem_to_output in miniz-444461.o
_tdefl_write_image_to_png_file_in_memory_ex in miniz-444461.o
_tdefl_compressor_alloc in miniz-444461.o
_tinfl_decompress_mem_to_callback in miniz-444461.o
...
"_memcmp", referenced from:
_mz_zip_reader_locate_file_v2 in miniz-444461.o
_mz_zip_validate_file in miniz-444461.o
"_memcpy", referenced from:
_tdefl_compress in miniz-444461.o
_mz_inflate in miniz-444461.o
_tinfl_decompress in miniz-444461.o
_tdefl_flush_block in miniz-444461.o
_tdefl_output_buffer_putter in miniz-444461.o
_mz_zip_mem_read_func in miniz-444461.o
_mz_zip_reader_extract_iter_read in miniz-444461.o
...
"_memset", referenced from:
_tinfl_decompress in miniz-444461.o
_tdefl_compress_block in miniz-444461.o
"_mkdir", referenced from:
_zip_mkdirp in zip-fff898.o
_zip_unzip in zip-fff898.o
(maybe you meant: _zip_mkdirp)
"_mktime", referenced from:
_mz_zip_file_stat_internal in miniz-444461.o
"_open", referenced from:
_main in cmdzip-d70c7b.o
"_read", referenced from:
_main in cmdzip-d70c7b.o
(maybe you meant: _mz_zip_reader_get_filename, _mz_zip_writer_init_from_reader , _mz_zip_writer_init_from_reader_v2 , _mz_zip_reader_get_num_files , _mz_zip_reader_extract_to_cfile , _mz_zip_reader_extract_file_iter_new , _mz_zip_reader_extract_iter_new , _mz_zip_reader_extract_file_to_callback , _mz_zip_reader_extract_to_heap , _mz_zip_reader_extract_file_to_mem_no_alloc , _mz_zip_reader_file_stat , _mz_zip_reader_locate_file_v2 , _mz_zip_reader_is_file_a_directory , _mz_zip_reader_extract_file_to_heap , _mz_zip_reader_init_file , _mz_zip_reader_is_file_encrypted , _mz_zip_reader_init_cfile , _mz_zip_reader_extract_to_mem , _mz_zip_reader_init_file_v2 , _mz_zip_reader_extract_to_mem_no_alloc , _mz_zip_reader_init_mem , _mz_zip_reader_extract_iter_read , _mz_zip_reader_init , _mz_zip_reader_locate_file , _mz_zip_reader_extract_iter_free , _mz_zip_reader_extract_file_to_file , _mz_zip_reader_extract_file_to_mem , _mz_zip_reader_is_file_supported , _mz_zip_reader_extract_file_to_cfile , _mz_zip_writer_add_from_zip_reader , _mz_zip_reader_end , _mz_zip_read_archive_data , _mz_zip_reader_extract_to_file , _mz_zip_reader_extract_to_callback )
"_realloc", referenced from:
_miniz_def_realloc_func in miniz-444461.o
_tdefl_output_buffer_putter in miniz-444461.o
_tdefl_write_image_to_png_file_in_memory_ex in miniz-444461.o
_tinfl_decompress_mem_to_heap in miniz-444461.o
_zip_str_file_path in zip-fff898.o
(maybe you meant: _miniz_def_realloc_func)
"_remove", referenced from:
_mz_zip_add_mem_to_archive_file_in_place_v2 in miniz-444461.o
"_stat$INODE64", referenced from:
_mz_zip_writer_add_file in miniz-444461.o
_mz_zip_add_mem_to_archive_file_in_place_v2 in miniz-444461.o
_zip_set_permissions in zip-fff898.o
_zip_file_exists in zip-fff898.o
_zip_unzip in zip-fff898.o
"_strcpy", referenced from:
_zip_str_file_path in zip-fff898.o
"_strlen", referenced from:
_mz_zip_reader_locate_file_v2 in miniz-444461.o
_mz_zip_validate_file in miniz-444461.o
_mz_zip_writer_add_mem_ex_v2 in miniz-444461.o
_mz_zip_writer_add_cfile in miniz-444461.o
_zip_str_file_path in zip-fff898.o
"_strrchr", referenced from:
_zip_str_file_path in zip-fff898.o
"_time", referenced from:
_mz_zip_writer_add_mem_ex_v2 in miniz-444461.o
"_utime", referenced from:
_mz_zip_reader_extract_to_file in miniz-444461.o
"_utimes", referenced from:
_zip_set_mtime in zip-fff898.o
_zip_unzip in zip-fff898.o
ld: symbol(s) not found for architecture x86_64
clang-4.0: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makevars:9: tools/cmdzip] Error 1
ERROR: compilation failed for package ‘zip’
* removing ‘/Users/hephaeschuen/anaconda3/lib/R/library/zip’
* restoring previous ‘/Users/hephaeschuen/anaconda3/lib/R/library/zip’
I think I need some serious clarifications about what has happened:
1. Why is the package successfully installed and functional in Rstudio, but not installed at all at the terminal level?
2. What does the above error message suggest?
3. How should "zip" be installed successfully?
I updated my Realm for iOS Obj-C from 0.98 to 1.0.1
but now we're getting these error during compilation:
undef: __ZN5realm4util23PlatformSpecificCondVarC1Ev undef:
__ZN5realm4util23PlatformSpecificCondVarD1Ev undef: __ZNK5realm13TableViewBase16maximum_datetimeEmPm undef: __ZNK5realm5Table16maximum_datetimeEmPm undef: __ZNK5realm11StringIndex3getEmRNSt3__15arrayIcLm8EEE undef: __ZN5realm5Table12set_datetimeEmmNS_8DateTimeE undef: __ZN5realm9Allocator10do_reallocEmPKcmm undef: __ZNK5realm5Table16minimum_datetimeEmPm undef: __ZN5realm5QueryC1ERKNS_5TableERKNS_4util8bind_ptrINS_8LinkViewEEE undef: __ZNK5realm13TableViewBase16minimum_datetimeEmPm undef:
__ZNK5realm5Table12get_datetimeEmm undef: __ZN5realm14LinkListColumn19unregister_linkviewERKNS_8LinkViewE Undefined symbols for architecture x86_64:
"realm::util::PlatformSpecificCondVar::PlatformSpecificCondVar()",
referenced from:
realm::SharedGroup::SharedGroup(realm::Replication&, realm::SharedGroup::DurabilityLevel, char const*, bool) in
libRealm.a(shared_realm.o)
"realm::util::PlatformSpecificCondVar::~PlatformSpecificCondVar()",
referenced from:
realm::SharedGroup::SharedGroup(realm::Replication&, realm::SharedGroup::DurabilityLevel, char const*, bool) in
libRealm.a(shared_realm.o)
"realm::TableViewBase::maximum_datetime(unsigned long, unsigned long*)
const", referenced from:
auto realm::Results::max(unsigned long)::$_3::operator()(realm::TableView const&)
const in libRealm.a(results.o)
"realm::Table::maximum_datetime(unsigned long, unsigned long*) const",
referenced from:
auto realm::Results::max(unsigned long)::$_3::operator()(realm::Table const&) const in
libRealm.a(results.o) "realm::StringIndex::get(unsigned long,
std::__1::array&) const", referenced from:
void realm::StringIndex::set(unsigned long, realm::null) in libRealm.a(RLMArray.o)
void realm::StringIndex::erase(unsigned long, bool) in libRealm.a(RLMArray.o)
void realm::StringIndex::erase(unsigned long, bool) in libRealm.a(RLMArray.o)
void realm::StringIndex::erase(unsigned long, bool) in libRealm.a(RLMArray.o)
void realm::StringIndex::set(unsigned long, long long) in libRealm.a(RLMQueryUtil.o)
"realm::Table::set_datetime(unsigned long, unsigned long,
realm::DateTime)", referenced from:
realm::RowFuncs >::set_datetime(unsigned long, realm::DateTime) in libRealm.a(RLMAccessor.o)
copy_property_values(realm::Property const&, realm::Property const&, realm::Table&) in libRealm.a(object_store.o)
"realm::Allocator::do_realloc(unsigned long, char const*, unsigned
long, unsigned long)", referenced from:
vtable for realm::Allocator in libRealm.a(RLMArray.o) "realm::Table::minimum_datetime(unsigned long, unsigned long*) const",
referenced from:
auto realm::Results::min(unsigned long)::$_7::operator()(realm::Table const&) const in
libRealm.a(results.o) "realm::Query::Query(realm::Table const&,
realm::util::bind_ptr const&)", referenced from:
realm::Table::where(realm::util::bind_ptr const&) in libRealm.a(RLMArrayLinkView.o)
"realm::TableViewBase::minimum_datetime(unsigned long, unsigned long*)
const", referenced from:
auto realm::Results::min(unsigned long)::$_7::operator()(realm::TableView const&)
const in libRealm.a(results.o) "realm::Table::get_datetime(unsigned
long, unsigned long) const", referenced from:
realm::RowFuncs >::get_datetime(unsigned long) const in libRealm.a(RLMAccessor.o)
copy_property_values(realm::Property const&, realm::Property const&, realm::Table&) in libRealm.a(object_store.o)
"realm::LinkListColumn::unregister_linkview(realm::LinkView const&)",
referenced from:
realm::LinkView::~LinkView() in libRealm.a(RLMArray.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'm using cocoapods to install it. Thanks!
I ended up downgrading the cocoapods to 0.39.0
and did this
rm -rf ~/Library/Caches/CocoaPods
rm -rf Pods
pod install
This works for now.
I created a simple GUI application in QtCreator (QT 4.8.2) and added a function to check the network connectivity:
bool MainWindow::CheckNetworkConnectivity()
{
QList<QNetworkInterface> interface = QNetworkInterface::allInterfaces();
for(int i = 0; i < interface.count();i++)
{
QNetworkInterface inface = interface.at(i);
if(inface.IsUp && !inface.IsLoopBack)
{
ui->lstLog->addItem(inface.name()+QDateTime::currentDateTime().toString("h:m:s ap"));
ui->chkConStatus->setChecked(true);
}
else{
ui->chkConStatus->setChecked(false);
}
}
return ui->chkConStatus->checkState();
}
After that any attempts to compile the code generates the following errors:
15:21:11: Running steps for project MasterVPN...
15:21:11: Configuration unchanged, skipping qmake step.
15:21:11: Starting: "C:\Qt\Designer\bin\jom.exe"
C:\Qt\Designer\bin\jom.exe -f Makefile.Debug
cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"c:\Qt\4.8.2\include\QtCore" -I"c:\Qt\4.8.2\include\QtGui" -I"c:\Qt\4.8.2\include" -I"c:\Qt\4.8.2\include\ActiveQt" -I"debug" -I"." -I"..\MasterVPN" -I"." -I"c:\Qt\4.8.2\mkspecs\win32-msvc2010" -Fodebug\ #C:\Users\Master\AppData\Local\Temp\mainwindow.obj.4156.31.jom
mainwindow.cpp
link /LIBPATH:"c:\Qt\4.8.2\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /MANIFEST /MANIFESTFILE:"debug\MasterVPN.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /OUT:debug\MasterVPN.exe #C:\Users\Master\AppData\Local\Temp\MasterVPN.exe.4156.5422.jom
mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QNetworkInterface::~QNetworkInterface(void)" (__imp_??1QNetworkInterface##QAE#XZ) referenced in function "public: bool __thiscall MainWindow::CheckNetworkConnectivity(void)" (?CheckNetworkConnectivity#MainWindow##QAE_NXZ)
mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class QString __thiscall QNetworkInterface::name(void)const " (__imp_?name#QNetworkInterface##QBE?AVQString##XZ) referenced in function "public: bool __thiscall MainWindow::CheckNetworkConnectivity(void)" (?CheckNetworkConnectivity#MainWindow##QAE_NXZ)
mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall QNetworkInterface::QNetworkInterface(class QNetworkInterface const &)" (__imp_??0QNetworkInterface##QAE#ABV0##Z) referenced in function "public: bool __thiscall MainWindow::CheckNetworkConnectivity(void)" (?CheckNetworkConnectivity#MainWindow##QAE_NXZ)
mainwindow.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class QList<class QNetworkInterface> __cdecl QNetworkInterface::allInterfaces(void)" (__imp_?allInterfaces#QNetworkInterface##SA?AV?$QList#VQNetworkInterface####XZ) referenced in function "public: bool __thiscall MainWindow::CheckNetworkConnectivity(void)" (?CheckNetworkConnectivity#MainWindow##QAE_NXZ)
debug\MasterVPN.exe : fatal error LNK1120: 4 unresolved externals
jom: C:\Users\Master\Documents\Qt\MasterVPN-build-desktop-Qt_4_8_2__4_8_2__Debug\Makefile.Debug [debug\MasterVPN.exe] Error 1120
jom: C:\Users\Master\Documents\Qt\MasterVPN-build-desktop-Qt_4_8_2__4_8_2__Debug\Makefile [debug] Error 2
15:21:17: The process "C:\Qt\Designer\bin\jom.exe" exited with code 2.
Error while building/deploying project MasterVPN (target: Desktop)
When executing step 'Make'
Can someone please point out what the cause could be?
The linker is indicating that is can not find the required functionality. This is contained within QtNetwork4.lib (if you're on a Windows platform) or the equivalent library for your platform. So you have to tell the linker that it needs to link against this library. The network module is the required one, so instead of just
QT += core gui
at least make that
QT += core gui network
That should fix the linker errors you see.
I tried to compile Qt+Webkit statically with MS VS 2008 and this worked.
C:\Qt\4.6.2>configure -release -static -opensource -no-fast -no-exceptions -no-accessibility -no-rtti -no-stl -no-opengl -no-openvg -no-incredibuild-xge -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -no-style-windowsce -no-style-windowsmobile -no-style-s60 -no-gif -no-libpng -no-libtiff -no-libjpeg -no-libmng -no-qt3support -no-mmx -no-3dnow -no-sse -no-sse2 -no-iwmmxt -no-openssl -no-dbus -platform win32-msvc2008 -arch windows -no-phonon -no-phonon-backend -no-multimedia -no-audio-backend -no-script -no-scripttools -webkit -no-declarative
However, I get these errors whenever building a project that links statically to QWebKit:
1> Creating library C:\Users\Geeko\Desktop\Qt\TestQ\Release\TestQ.lib and object C:\Users\Geeko\Desktop\Qt\TestQ\Release\TestQ.exp
1>QtWebKit.lib(PluginPackageWin.obj) : error LNK2019: unresolved external symbol _VerQueryValueW#16 referenced in function "class WebCore::String __cdecl WebCore::getVersionInfo(void * const,class WebCore::String const &)" (?getVersionInfo#WebCore##YA?AVString#1#QAXABV21##Z)
1>QtWebKit.lib(PluginPackageWin.obj) : error LNK2019: unresolved external symbol _GetFileVersionInfoW#16 referenced in function "private: bool __thiscall WebCore::PluginPackage::fetchInfo(void)" (?fetchInfo#PluginPackage#WebCore##AAE_NXZ)
1>QtWebKit.lib(PluginPackageWin.obj) : error LNK2019: unresolved external symbol _GetFileVersionInfoSizeW#8 referenced in function "private: bool __thiscall WebCore::PluginPackage::fetchInfo(void)" (?fetchInfo#PluginPackage#WebCore##AAE_NXZ)
1>QtWebKit.lib(PluginDatabaseWin.obj) : error LNK2019: unresolved external symbol _imp_PathRemoveFileSpecW#4 referenced in function "class WebCore::String __cdecl WebCore::safariPluginsDirectory(void)" (?safariPluginsDirectory#WebCore##YA?AVString#1#XZ)
1>QtWebKit.lib(PluginDatabaseWin.obj) : error LNK2019: unresolved external symbol _imp_SHGetValueW#24 referenced in function "void __cdecl WebCore::addWindowsMediaPlayerPluginDirectory(class WTF::Vector &)" (?addWindowsMediaPlayerPluginDirectory#WebCore##YAXAAV?$Vector#VString#WebCore##$0A##WTF###Z)
1>QtWebKit.lib(PluginDatabaseWin.obj) : error LNK2019: unresolved external symbol _imp_PathCombineW#12 referenced in function "void __cdecl WebCore::addMacromediaPluginDirectories(class WTF::Vector &)" (?addMacromediaPluginDirectories#WebCore##YAXAAV?$Vector#VString#WebCore##$0A##WTF###Z)
1>C:\Users\Geeko\Desktop\Qt\TestQ\Release\TestQ.exe : fatal error LNK1120: 6 unresolved externals
Do I need to check something in the Qt project options? I have QtCore, QtGui, Network and WebKit checked.
It looks like you need to link in the windows .lib files for each of the missing functions:
VerQueryValue,GetFileVersionInfo -> version.lib
GetFileVersionInfoSize -> Coredll.lib
PathRemoveFileSpec, SHGetValue, PathCombine -> shlwapi.lib
If you are using qmake, you add:
LIBS += -lversion -lCoredll -lshlwapi
Otherwise: From the Project menu, choose Properties. Open Configuration Properties->Linker->Input. In the Additional Dependencies field, add version.lib, Coredll.lib and shlwapi.lib