Undefined symbols for architecture x86_64



  • 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?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Where's that project ?



  • thanks for your reply

    GitHub.com/dashpay/dash

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


  • Lifetime Qt Champion

    What steps are you following to build it ?



  • 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"


  • Lifetime Qt Champion

    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 ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.