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. Undefined symbols for architecture x86_64
QtWS25 Last Chance

Undefined symbols for architecture x86_64

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 4.1k Views
  • 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.
  • J Offline
    J Offline
    jackcatesby
    wrote on 5 Jan 2018, 23:01 last edited by
    #1

    I am trying to compile the dash wallets using the dash-qt pro file in Qt creator 5.10.0 and I get the following error.

    Undefined symbols for architecture x86_64:
    "_main", referenced from:
    implicit entry/start for main executable
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make: *** [dash-qt.app/Contents/MacOS/dash-qt] Error 1
    21:14:03: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project dash-qt (kit: Desktop Qt 5.10.0 clang 64bit)
    When executing step "Make"

    Does anybody know how i can fix this?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 6 Jan 2018, 22:05 last edited by
      #2

      Hi and welcome to devnet,

      Where's that project ?

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

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jackcatesby
        wrote on 7 Jan 2018, 17:54 last edited by
        #3

        thanks for your reply

        GitHub.com/dashpay/dash

        the dash-qt.pro file is in the contrib folder.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 8 Jan 2018, 21:26 last edited by
          #4

          What steps are you following to build it ?

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

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jackcatesby
            wrote on 10 Jan 2018, 00:38 last edited by
            #5

            Hi SGaist. Thank you for trying to help me. I tried to follow https://github.com/dashpay/dash/blob/master/doc/build-osx.md this as closely as possible.

            this is my error

            /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -stdlib=libc++ -headerpad_max_install_names -arch x86_64 -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.12 -Wl,-rpath,@executable_path/Frameworks -Wl,-rpath,/Users/bigbrother/Qt/5.10.0/clang_64/lib -o dash-qt.app/Contents/MacOS/dash-qt qrc_dash.o -F/Users/bigbrother/Qt/5.10.0/clang_64/lib -framework QtGui -framework QtCore -framework DiskArbitration -framework IOKit -framework OpenGL -framework AGL
            Undefined symbols for architecture x86_64:
            "_main", referenced from:
            implicit entry/start for main executable
            ld: symbol(s) not found for architecture x86_64
            clang: error: linker command failed with exit code 1 (use -v to see invocation)
            make: *** [dash-qt.app/Contents/MacOS/dash-qt] Error 1
            02:06:20: The process "/usr/bin/make" exited with code 2.
            Error while building/deploying project dash-qt (kit: Desktop Qt 5.10.0 clang 64bit)
            When executing step "Make"

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 10 Jan 2018, 20:21 last edited by
              #6

              I had to change src/qt to src it order to have the building working.

              Otherwise, no problem.

              Did you run configure before ? What parameter did you pass ?

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

              1 Reply Last reply
              0

              3/6

              7 Jan 2018, 17:54

              • Login

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