{"action":"created","issue":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/5728","labels_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/5728/labels{/name}","comments_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/5728/comments","events_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/5728/events","html_url":"https://github.com/bitcoin/bitcoin/issues/5728","id":56118419,"number":5728,"title":"Mac OS X compilation with qt5 (and qt4) fails","user":{"login":"fflo","id":6385715,"avatar_url":"https://avatars.githubusercontent.com/u/6385715?v=3","gravatar_id":"","url":"https://api.github.com/users/fflo","html_url":"https://github.com/fflo","followers_url":"https://api.github.com/users/fflo/followers","following_url":"https://api.github.com/users/fflo/following{/other_user}","gists_url":"https://api.github.com/users/fflo/gists{/gist_id}","starred_url":"https://api.github.com/users/fflo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fflo/subscriptions","organizations_url":"https://api.github.com/users/fflo/orgs","repos_url":"https://api.github.com/users/fflo/repos","events_url":"https://api.github.com/users/fflo/events{/privacy}","received_events_url":"https://api.github.com/users/fflo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bitcoin/bitcoin/labels/Mac","name":"Mac","color":"660000"},{"url":"https://api.github.com/repos/bitcoin/bitcoin/labels/Upstream","name":"Upstream","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-01-31T08:49:35Z","updated_at":"2015-06-07T08:07:25Z","closed_at":"2015-02-07T18:42:26Z","body":"Hi,\r\n\r\nusing the latest sources from git I'm unable to compile bitcoin with qt5.\r\nTrying to compile with qt 5.4.0 or 5.3.2 fails with the following message:\r\n\r\n  CXX      qt/test/qt_test_test_bitcoin_qt-test_main.o\r\nIn file included from qt/test/test_main.cpp:9:\r\nqt/test/uritests.h:8:10: fatal error: 'QObject' file not found\r\n#include <QObject>\r\n         ^\r\n  CXX      qt/test/qt_test_test_bitcoin_qt-uritests.o\r\nIn file included from qt/test/uritests.cpp:5:\r\nqt/test/uritests.h:8:10: fatal error: 'QObject' file not found\r\n#include <QObject>\r\n         ^\r\n1 error generated.\r\nmake[2]: *** [qt/test/qt_test_test_bitcoin_qt-test_main.o] Error 1\r\nmake[2]: *** Waiting for unfinished jobs....\r\n1 error generated.\r\nmake[2]: *** [qt/test/qt_test_test_bitcoin_qt-uritests.o] Error 1\r\nmake[1]: *** [all-recursive] Error 1\r\nmake: *** [all-recursive] Error 1\r\n\r\nreal\t1m19.367s\r\nuser\t9m10.002s\r\nsys\t0m31.861s\r\n\r\nPrior to compilation I've ran ./autogen.sh and ./configure\r\n\r\nTrying to compile the package with qt 4.8.6 fails with this message:\r\n  CXXLD    bitcoind\r\n  CXXLD    bitcoin-cli\r\n  CXXLD    bitcoin-tx\r\n  CXXLD    test/test_bitcoin\r\nclang: warning: argument unused during compilation: '-pthread'\r\nclang: warning: argument unused during compilation: '-pie'\r\nclang: warning: argument unused during compilation: '-pthread'\r\nclang: warning: argument unused during compilation: '-pthread'\r\nclang: warning: argument unused during compilation: '-pie'\r\nclang: warning: argument unused during compilation: '-pthread'\r\nclang: warning: argument unused during compilation: '-pthread'\r\nclang: warning: argument unused during compilation: '-pie'\r\nclang: warning: argument unused during compilation: '-pthread'\r\nclang: warning: argument unused during compilation: '-pthread'\r\nclang: warning: argument unused during compilation: '-pie'\r\nclang: warning: argument unused during compilation: '-pthread'\r\n  AR       qt/libbitcoinqt.a\r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u\r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u\r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u\r\n/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/u\r\n  OBJCXXLD qt/bitcoin-qt\r\n  CXXLD    qt/test/test_bitcoin-qt\r\nclang: warning: argument unused during compilation: '-pthread'\r\nclang: warning: argument unused during compilation: '-pie'\r\nclang: warning: argument unused during compilation: '-pthread'\r\nclang: warning: argument unused during compilation: '-pthread'\r\nclang: warning: argument unused during compilation: '-pie'\r\nclang: warning: argument unused during compilation: '-pthread'\r\nUndefined symbols for architecture x86_64:\r\n  \"vtable for RPCExecutor\", referenced from:\r\n      RPCConsole::startExecutor() in libbitcoinqt.a(qt_libbitcoinqt_a-rpcconsole\r\n  NOTE: a missing vtable usually means the first non-inline virtual member funct\r\n  \"vtable for RPCConsole\", referenced from:\r\n      RPCConsole::RPCConsole(QWidget*) in libbitcoinqt.a(qt_libbitcoinqt_a-rpcco\r\n  NOTE: a missing vtable usually means the first non-inline virtual member funct\r\n  \"RPCConsole::staticMetaObject\", referenced from:\r\n      RPCConsole::RPCConsole(QWidget*) in libbitcoinqt.a(qt_libbitcoinqt_a-rpcco\r\n      RPCConsole::clear() in libbitcoinqt.a(qt_libbitcoinqt_a-rpcconsole.o)\r\n      RPCConsole::setNumConnections(int) in libbitcoinqt.a(qt_libbitcoinqt_a-rpc\r\n      RPCConsole::FormatBytes(unsigned long long) in libbitcoinqt.a(qt_libbitcoi\r\n  \"BitcoinApplication::requestedShutdown()\", referenced from:\r\n      BitcoinApplication::requestShutdown() in qt_bitcoin_qt-bitcoin.o\r\n  \"BitcoinApplication::requestedInitialize()\", referenced from:\r\n      BitcoinApplication::requestInitialize() in qt_bitcoin_qt-bitcoin.o\r\n  \"vtable for BitcoinCore\", referenced from:\r\n      BitcoinCore::BitcoinCore() in qt_bitcoin_qt-bitcoin.o\r\n  NOTE: a missing vtable usually means the first non-inline virtual member funct\r\n  \"vtable for BitcoinApplication\", referenced from:\r\n      BitcoinApplication::~BitcoinApplication() in qt_bitcoin_qt-bitcoin.o\r\n      _main in qt_bitcoin_qt-bitcoin.o\r\n  NOTE: a missing vtable usually means the first non-inline virtual member funct\r\n  \"BitcoinApplication::stopThread()\", referenced from:\r\n      BitcoinApplication::~BitcoinApplication() in qt_bitcoin_qt-bitcoin.o\r\nld: symbol(s) not found for architecture x86_64\r\nclang: error: linker command failed with exit code 1 (use -v to see invocation)\r\nmake[2]: *** [qt/bitcoin-qt] Error 1\r\nmake[1]: *** [all-recursive] Error 1\r\nmake: *** [all-recursive] Error 1\r\n\r\nreal\t1m51.749s\r\nuser\t12m50.340s\r\nsys\t0m49.340s\r\n\r\n-Flo\r\n"},"comment":{"url":"https://api.github.com/repos/bitcoin/bitcoin/issues/comments/109715572","html_url":"https://github.com/bitcoin/bitcoin/issues/5728#issuecomment-109715572","issue_url":"https://api.github.com/repos/bitcoin/bitcoin/issues/5728","id":109715572,"user":{"login":"paveljanik","id":6848764,"avatar_url":"https://avatars.githubusercontent.com/u/6848764?v=3","gravatar_id":"","url":"https://api.github.com/users/paveljanik","html_url":"https://github.com/paveljanik","followers_url":"https://api.github.com/users/paveljanik/followers","following_url":"https://api.github.com/users/paveljanik/following{/other_user}","gists_url":"https://api.github.com/users/paveljanik/gists{/gist_id}","starred_url":"https://api.github.com/users/paveljanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paveljanik/subscriptions","organizations_url":"https://api.github.com/users/paveljanik/orgs","repos_url":"https://api.github.com/users/paveljanik/repos","events_url":"https://api.github.com/users/paveljanik/events{/privacy}","received_events_url":"https://api.github.com/users/paveljanik/received_events","type":"User","site_admin":false},"created_at":"2015-06-07T08:07:25Z","updated_at":"2015-06-07T08:07:25Z","body":"MacPorts probably fixed their problem: https://trac.macports.org/ticket/44204#comment:12\r\n"}}