Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. "symbol(s) not found for architecture x86_64" error when compiling a Qt project on Mac
Forum Updated to NodeBB v4.3 + New Features

"symbol(s) not found for architecture x86_64" error when compiling a Qt project on Mac

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
27 Posts 3 Posters 11.0k Views 2 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.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #18

    Hence my suggestion to re-build Irrlicht against the same C++ library as Qt.

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

    D 1 Reply Last reply
    0
    • D Donald Duck

      @jsulm That's not my code, it's Irrlicht's code. Irrlicht is a library that I'm using. I don't think there is anything wrong in my own code since it compiles and runs just fine on Windows and Linux.

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

      @Donald-Duck said in "symbol(s) not found for architecture x86_64" error when compiling a Qt project on Mac:

      I don't think there is anything wrong in my own code since it compiles and runs just fine on Windows and Linux

      From my own experience I know that such assumptions are often wrong :-)
      But you should follow what @SGaist suggested.

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

      D 1 Reply Last reply
      0
      • SGaistS SGaist

        Hence my suggestion to re-build Irrlicht against the same C++ library as Qt.

        D Offline
        D Offline
        Donald Duck
        wrote on last edited by
        #20

        @SGaist I tried rebuilding libIrrlicht.a with libc++ and without adding LIBS += -stdlib=libc++ and LIBS += -lc++ to my .pro file and it compiled and crashed just like first. It crashed at exactly the same place with exactly the same error.

        1 Reply Last reply
        0
        • jsulmJ jsulm

          @Donald-Duck said in "symbol(s) not found for architecture x86_64" error when compiling a Qt project on Mac:

          I don't think there is anything wrong in my own code since it compiles and runs just fine on Windows and Linux

          From my own experience I know that such assumptions are often wrong :-)
          But you should follow what @SGaist suggested.

          D Offline
          D Offline
          Donald Duck
          wrote on last edited by Donald Duck
          #21

          @jsulm I tested to see if the problem was in my code or in Irrlicht by copy-pasting a code from an Irrlicht tutorial that I know is correct into a new project and it crashed just like in my project. So the problem isn't in my code but in the Irrlicht library.

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

            To be sure we're on the same page, you are calling irr::createDeviceEx and this crashes, right ?

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

            D 1 Reply Last reply
            0
            • SGaistS SGaist

              To be sure we're on the same page, you are calling irr::createDeviceEx and this crashes, right ?

              D Offline
              D Offline
              Donald Duck
              wrote on last edited by
              #23

              @SGaist Yes.

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

                Since you are building Irrlicht anyway, I'd add some checks for CursorControl to see whether the pointer is null or just invalid.

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

                D 1 Reply Last reply
                0
                • SGaistS SGaist

                  Since you are building Irrlicht anyway, I'd add some checks for CursorControl to see whether the pointer is null or just invalid.

                  D Offline
                  D Offline
                  Donald Duck
                  wrote on last edited by
                  #25

                  @SGaist I checked and the pointer is null.

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

                    As a quick workaround to be able to run your application, add an if around the code using that variable.

                    The more involved method would be to find why it's null.

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

                    D 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      As a quick workaround to be able to run your application, add an if around the code using that variable.

                      The more involved method would be to find why it's null.

                      D Offline
                      D Offline
                      Donald Duck
                      wrote on last edited by
                      #27

                      @SGaist said in "symbol(s) not found for architecture x86_64" error when compiling a Qt project on Mac:

                      The more involved method would be to find why it's null.

                      I've posted a question on the Irrlicht forum to find out why it's null: http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=51856&p=301630

                      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