Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. ld: symbol(s) not found for architecture x86_64 in Mac Qt
Forum Updated to NodeBB v4.3 + New Features

ld: symbol(s) not found for architecture x86_64 in Mac Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Princein
    wrote on last edited by
    #1

    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!

    jsulmJ 1 Reply Last reply
    0
    • P Princein

      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!

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @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.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      P 1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi,

        To add to @jsulm, you should also check your .pro file for Windows specific scopes.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        P 1 Reply Last reply
        0
        • jsulmJ jsulm

          @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.

          P Offline
          P Offline
          Princein
          wrote on last edited by
          #4

          @jsulm Thanks

          1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            To add to @jsulm, you should also check your .pro file for Windows specific scopes.

            P Offline
            P Offline
            Princein
            wrote on last edited by
            #5

            @SGaist Thanks

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved