ld: symbol(s) not found for architecture x86_64 in Mac Qt
-
Hello:
I developed a project in Mac Qt which transplanted from Windows qt ,I had solved many errors when build,now it has not build errors,but now my Qt in Mac show :"_fuItemSetParamdv", referenced from:
fuItemSetParamdv(duk_hthread*) in ScriptDebugDialog.o
"_fuItemSetParams", referenced from:
funamawidget::setParam_s(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> >, int) in funamawidget.o
fuItemSetParams(duk_hthread*) in ScriptDebugDialog.o
"_fuLoadAnimModel", referenced from:
funamawidget::initNama() in funamawidget.o
"_fuLoadExtendedARData", referenced from:
funamawidget::initNama() in funamawidget.o
"_fuLoadTongueModel", referenced from:
funamawidget::initNama() in funamawidget.o
"_fuP2AProcessDeform", referenced from:
NamaViewController::P2AProcessDeform(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, char*, int) in NamaViewController.o
"_fuRenderItems", referenced from:
WebCam_Widget::nextFrame() in webcam_widget.o
"_fuRenderItemsEx", referenced from:
funamawidget::nextFrame() in funamawidget.o
"_fuSetFocalLengthScale", referenced from:
fuSetFocalLengthScale(duk_hthread*) in ScriptDebugDialog.o
"_fuSetMaxFaces", referenced from:
funamawidget::nextFrame() in funamawidget.o
"_fuSetup", referenced from:
WebCam_Widget::initStatus() in webcam_widget.o
funamawidget::initNama() in funamawidget.o
"_fuUnbindItems", referenced from:
funamawidget::unbindBundle(int, int) in funamawidget.o
"_mz_zip_add_mem_to_archive_file_in_place", referenced from:
compressDirectory(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> >) in PackController.o
"_mz_zip_reader_init_mem", referenced from:
ZipCreateFromTemplate(mz_zip_archive*, char*, int&) in PackController.o
"_mz_zip_writer_add_mem", referenced from:
ZipAddFile(mz_zip_archive*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, char*, int&, unsigned int, unsigned int) in PackController.o
"_mz_zip_writer_finalize_heap_archive", referenced from:
ZipFinalize(mz_zip_archive*, unsigned long&) in PackController.o
"_mz_zip_writer_init_from_reader", referenced from:
ZipCreateFromTemplate(mz_zip_archive*, char*, int&) in PackController.o
"_mz_zip_writer_init_heap", referenced from:
ZipCreateEmpty(mz_zip_archive*) in PackController.o
"_mz_zip_zero_struct", referenced from:
ZipCreateEmpty(mz_zip_archive*) in PackController.o
ZipCreateFromTemplate(mz_zip_archive*, char*, int&) in PackController.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 that my configuration is wrong?
how to fix it,Thanks a lot! -
@Princein Missing/undefined symbols means that you're not linking some of the object files, so yes something is wrong with your pro file. Check where these missing symbols are defined (in which files) and whether you added these cpp files to your project properly. If these symbols are from some libs then make sure you have these libs and are linking against them.