qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
27.75k stars 3.92k forks source link

Unable to compile against qt5 #2133

Closed Noctem closed 9 years ago

Noctem commented 9 years ago

When I try to compile against Qt5 on OS X 10.10, it fails when it gets to here:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -mmacosx-version-min=10.6 -Wall -W -fPIE -DBOOST_ASIO_DYN_LINK -DWITH_GEOIP_EMBEDDED -DQT_NO_DEBUG_OUTPUT -DVERSION=\"v3.1.10\" -DVERSION_MAJOR=3 -DVERSION_MINOR=1 -DVERSION_BUGFIX=10 -DQT_NO_CAST_TO_ASCII -DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS -DBOOST_FILESYSTEM_VERSION=2 -DTORRENT_USE_OPENSSL -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DBOOST_ASIO_ENABLE_CANCELIO -DTORRENT_LINKING_SHARED -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_NETWORK_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/local/Cellar/qt5/5.3.2/mkspecs/macx-clang -I. -I/usr/local/Cellar/openssl/1.0.1j/include -I/usr/local/Cellar/qt5/5.3.2/include -I/usr/local/Cellar/zlib/1.2.8/include -I/usr/local/include -I/usr/include -I. -Iqtsingleapp -Iqtlibtorrent -Iwebui -Itracker -Ipreferences -Ilineedit/src -Iproperties -Isearchengine -Irss -Itorrentcreator -Igeoip -Ipowermanagement -I/usr/local/Cellar/libtorrent-rasterbar/1.0.2_1/include -I/usr/local/Cellar/libtorrent-rasterbar/1.0.2_1/include/libtorrent -I/usr/local/Cellar/qt5/5.3.2/lib/QtWidgets.framework/Versions/5/Headers -I/usr/local/Cellar/qt5/5.3.2/lib/QtNetwork.framework/Versions/5/Headers -I/usr/local/Cellar/qt5/5.3.2/lib/QtXml.framework/Versions/5/Headers -I/usr/local/Cellar/qt5/5.3.2/lib/QtGui.framework/Versions/5/Headers -I/usr/local/Cellar/qt5/5.3.2/lib/QtCore.framework/Versions/5/Headers -I. -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers -I. -F/usr/local/Cellar/qt5/5.3.2/lib -o moc_programupdater.o moc_programupdater.cpp
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -headerpad_max_install_names -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -mmacosx-version-min=10.6 -o qbittorrent.app/Contents/MacOS/qbittorrent qtsingleapplication.o qtlocalpeer.o qbtsession.o qtorrenthandle.o torrentspeedmonitor.o alertdispatcher.o torrentstatistics.o torrentmodel.o shutdownconfirm.o httpserver.o httpconnection.o httprequestparser.o httpresponsegenerator.o btjson.o prefjson.o webapplication.o abstractrequesthandler.o requesthandler.o qtracker.o options_imp.o preferences.o lineedit.o propertieswidget.o peerlistwidget.o trackerlist.o proptabbar.o downloadedpiecesbar.o pieceavailabilitybar.o searchengine.o searchtab.o engineselectdlg.o rss_imp.o rsssettingsdlg.o feedlistwidget.o rssmanager.o rssfeed.o rssfolder.o rssarticle.o automatedrssdownloader.o rssdownloadrule.o rssdownloadrulelist.o cookiesdlg.o rssfile.o rssparser.o torrentcreatordlg.o torrentcreatorthread.o geoipmanager.o powermanagement.o main.o downloadthread.o scannedfoldersmodel.o torrentpersistentdata.o misc.o fs_utils.o smtp.o dnsupdater.o mainwindow.o ico.o transferlistwidget.o transferlistdelegate.o transferlistfilterswidget.o torrentcontentmodel.o torrentcontentmodelitem.o torrentcontentmodelfolder.o torrentcontentmodelfile.o torrentcontentfiltermodel.o sessionapplication.o torrentimportdlg.o executionlog.o previewselect.o iconprovider.o updownratiodlg.o loglistwidget.o addnewtorrentdialog.o autoexpandabledialog.o statsdialog.o messageboxraised.o statussortfilterproxymodel.o qmacapplication.o programupdater.o qrc_icons.o qrc_lang.o qrc_about.o qrc_webui.o qrc_lineeditimages.o qrc_search.o qrc_geoip.o moc_qtsingleapplication.o moc_qtlocalpeer.o moc_qbtsession.o moc_bandwidthscheduler.o moc_torrentspeedmonitor.o moc_filterparserthread.o moc_alertdispatcher.o moc_torrentstatistics.o moc_torrentmodel.o moc_shutdownconfirm.o moc_httpserver.o moc_httpconnection.o moc_webapplication.o moc_qtracker.o moc_options_imp.o moc_advancedsettings.o moc_preferences.o moc_lineedit.o moc_propertieswidget.o moc_peerlistwidget.o moc_proplistdelegate.o moc_trackerlist.o moc_downloadedpiecesbar.o moc_peerlistdelegate.o moc_peerlistsortmodel.o moc_peeraddition.o moc_trackersadditiondlg.o moc_pieceavailabilitybar.o moc_proptabbar.o moc_searchengine.o moc_searchtab.o moc_engineselectdlg.o moc_pluginsource.o moc_searchlistdelegate.o moc_supportedengines.o moc_searchsortmodel.o moc_rss_imp.o moc_rsssettingsdlg.o moc_feedlistwidget.o moc_rssmanager.o moc_rssfeed.o moc_rssfolder.o moc_rssarticle.o moc_automatedrssdownloader.o moc_cookiesdlg.o moc_rssparser.o moc_torrentcreatordlg.o moc_torrentcreatorthread.o moc_geoipmanager.o moc_powermanagement.o moc_downloadthread.o moc_filesystemwatcher.o moc_scannedfoldersmodel.o moc_qinisettings.o moc_smtp.o moc_dnsupdater.o moc_mainwindow.o moc_transferlistwidget.o moc_transferlistdelegate.o moc_transferlistfilterswidget.o moc_transferlistsortmodel.o moc_torrentcontentmodel.o moc_torrentcontentfiltermodel.o moc_deletionconfirmationdlg.o moc_statusbar.o moc_reverseresolution.o moc_speedlimitdlg.o moc_about_imp.o moc_previewselect.o moc_previewlistdelegate.o moc_downloadfromurldlg.o moc_trackerlogin.o moc_sessionapplication.o moc_torrentimportdlg.o moc_executionlog.o moc_updownratiodlg.o moc_loglistwidget.o moc_addnewtorrentdialog.o moc_autoexpandabledialog.o moc_statsdialog.o moc_messageboxraised.o moc_statussortfilterproxymodel.o moc_qmacapplication.o moc_programupdater.o   -F/usr/local/Cellar/qt5/5.3.2/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/qt5/lib -L/usr/local/lib -lssl -lcrypto -framework Carbon -framework IOKit -lz -L/usr/local/Cellar/libtorrent-rasterbar/1.0.2_1/lib -ltorrent-rasterbar -lboost_system-mt -framework QtWidgets -L/usr/local/opt/d-bus/lib -framework QtGui -framework QtCore -framework QtNetwork -framework QtXml -ldbus-1 -framework OpenGL -framework AGL 
Undefined symbols for architecture x86_64:
  "libtorrent::parent_path(std::string const&)", referenced from:
      void libtorrent::add_files<bool (*)(std::string const&)>(libtorrent::file_storage&, std::string const&, bool (*)(std::string const&), unsigned int) in torrentcreatorthread.o
  "libtorrent::base32decode(std::string const&)", referenced from:
      misc::magnetUriToHash(QString const&) in misc.o
  "libtorrent::torrent_info::torrent_info(std::string const&, int)", referenced from:
      QBtSession::addTorrent(QString, bool, QString, bool, bool) in qbtsession.o
      QBtSession::addTorrentsFromScanFolder(QStringList&) in qbtsession.o
      QBtSession::recursiveTorrentDownload(QTorrentHandle const&) in qbtsession.o
      QBtSession::handleTorrentFinishedAlert(libtorrent::torrent_finished_alert*) in qbtsession.o
      TorrentCreatorDlg::handleCreationSuccess(QString, QString) in torrentcreatordlg.o
      fsutils::isValidTorrentFile(QString const&) in fs_utils.o
      TorrentImportDlg::loadTorrent(QString const&) in torrentimportdlg.o
      ...
  "libtorrent::announce_entry::announce_entry(std::string const&)", referenced from:
      QBtSession::mergeTorrents(QTorrentHandle&, QString const&) in qbtsession.o
      QBtSession::mergeTorrents(QTorrentHandle&, boost::intrusive_ptr<libtorrent::torrent_info>) in qbtsession.o
      RequestHandler::action_command_addTrackers() in requesthandler.o
      TrackerList::moveSelectionUp() in trackerlist.o
      TrackerList::moveSelectionDown() in trackerlist.o
      TrackerList::askForTrackers() in trackerlist.o
      TrackerList::editSelectedTracker() in trackerlist.o
      ...
  "libtorrent::create_torrent::add_tracker(std::string const&, int)", referenced from:
      TorrentCreatorThread::run() in torrentcreatorthread.o
  "libtorrent::create_torrent::add_url_seed(std::string const&)", referenced from:
      TorrentCreatorThread::run() in torrentcreatorthread.o
  "libtorrent::has_parent_path(std::string const&)", referenced from:
      TorrentImportDlg::on_browseContentBtn_clicked() in torrentimportdlg.o
  "libtorrent::parse_magnet_uri(std::string const&, libtorrent::add_torrent_params&, boost::system::error_code&)", referenced from:
      QBtSession::addMagnetUri(QString, bool, bool, QString const&) in qbtsession.o
  "libtorrent::set_piece_hashes(libtorrent::create_torrent&, std::string const&, boost::function<void (int)>, boost::system::error_code&)", referenced from:
      void libtorrent::set_piece_hashes<boost::_bi::bind_t<void, void (*)(int, int, TorrentCreatorThread*), boost::_bi::list3<boost::arg<1>, boost::_bi::value<int>, boost::_bi::value<TorrentCreatorThread*> > > >(libtorrent::create_torrent&, std::string const&, boost::_bi::bind_t<void, void (*)(int, int, TorrentCreatorThread*), boost::_bi::list3<boost::arg<1>, boost::_bi::value<int>, boost::_bi::value<TorrentCreatorThread*> > >) in torrentcreatorthread.o
  "libtorrent::default_storage_constructor(libtorrent::file_storage const&, libtorrent::file_storage const*, std::string const&, libtorrent::file_pool&, std::vector<unsigned char, std::allocator<unsigned char> > const&)", referenced from:
      QBtSession::addMagnetUri(QString, bool, bool, QString const&) in qbtsession.o
      QBtSession::addTorrent(QString, bool, QString, bool, bool) in qbtsession.o
  "libtorrent::entry::entry(std::string const&)", referenced from:
      QPeer::toEntry(bool) const in qtracker.o
  "libtorrent::entry::entry(std::map<std::string, libtorrent::entry, std::less<std::string>, std::allocator<std::pair<std::string const, libtorrent::entry> > > const&)", referenced from:
      QTracker::ReplyWithPeerList(QTcpSocket*, TrackerAnnounceRequest const&) in qtracker.o
      QPeer::toEntry(bool) const in qtracker.o
  "libtorrent::entry::entry(std::list<libtorrent::entry, std::allocator<libtorrent::entry> > const&)", referenced from:
      QTracker::ReplyWithPeerList(QTcpSocket*, TrackerAnnounceRequest const&) in qtracker.o
  "libtorrent::entry::operator=(std::string const&)", referenced from:
      QBtSession::backupPersistentData(QString const&, boost::shared_ptr<libtorrent::entry>) in qbtsession.o
      QTorrentHandle::save_torrent_file(QString const&) const in qtorrenthandle.o
  "libtorrent::entry::operator[](std::string const&)", referenced from:
      void libtorrent::detail::bdecode_recursive<char*>(char*&, char*, libtorrent::entry&, bool&, int) in qtorrenthandle.o
  "libtorrent::detail::add_files_impl(libtorrent::file_storage&, std::string const&, std::string const&, boost::function<bool (std::string)>, unsigned int)", referenced from:
      void libtorrent::add_files<bool (*)(std::string const&)>(libtorrent::file_storage&, std::string const&, bool (*)(std::string const&), unsigned int) in torrentcreatorthread.o
  "libtorrent::session::add_dht_router(std::pair<std::string, int> const&)", referenced from:
      QBtSession::enableDHT(bool) in qbtsession.o
  "libtorrent::session::set_alert_dispatch(boost::function<void (std::auto_ptr<libtorrent::alert>)> const&)", referenced from:
      QAlertDispatcher::QAlertDispatcher(libtorrent::session*, QObject*) in alertdispatcher.o
      QAlertDispatcher::~QAlertDispatcher() in alertdispatcher.o
  "libtorrent::session::init(std::pair<int, int>, char const*, libtorrent::fingerprint const&, unsigned int)", referenced from:
      libtorrent::session::session(libtorrent::fingerprint const&, int, unsigned int) in qbtsession.o
  "libtorrent::session::listen_on(std::pair<int, int> const&, boost::system::error_code&, char const*, int)", referenced from:
      QBtSession::setListeningPort(int) in qbtsession.o
  "libtorrent::complete(std::string const&)", referenced from:
      void libtorrent::add_files<bool (*)(std::string const&)>(libtorrent::file_storage&, std::string const&, bool (*)(std::string const&), unsigned int) in torrentcreatorthread.o
  "libtorrent::filename(std::string const&)", referenced from:
      file_filter(std::string const&) in torrentcreatorthread.o
      void libtorrent::add_files<bool (*)(std::string const&)>(libtorrent::file_storage&, std::string const&, bool (*)(std::string const&), unsigned int) in torrentcreatorthread.o
  "libtorrent::file_storage::file_path(libtorrent::internal_file_entry const&, std::string const&) const", referenced from:
      TorrentImportDlg::on_browseContentBtn_clicked() in torrentimportdlg.o
  "libtorrent::file_storage::file_path(int, std::string const&) const", referenced from:
      QTorrentHandle::filepath_at(unsigned int) const in qtorrenthandle.o
      QTorrentHandle::orig_filepath_at(unsigned int) const in qtorrenthandle.o
      AddNewTorrentDialog::setupTreeview() in addnewtorrentdialog.o
  "libtorrent::torrent_handle::rename_file(int, std::string const&) const", referenced from:
      QTorrentHandle::rename_file(int, QString const&) const in qtorrenthandle.o
  "libtorrent::torrent_handle::add_url_seed(std::string const&) const", referenced from:
      QTorrentHandle::add_url_seed(QString const&) const in qtorrenthandle.o
  "libtorrent::torrent_handle::move_storage(std::string const&, int) const", referenced from:
      QTorrentHandle::move_storage(QString const&) const in qtorrenthandle.o
  "libtorrent::torrent_handle::file_progress(std::vector<long long, std::allocator<long long> >&, int) const", referenced from:
      QTorrentHandle::file_progress(std::vector<long long, std::allocator<long long> >&) const in qtorrenthandle.o
  "libtorrent::torrent_handle::get_peer_info(std::vector<libtorrent::peer_info, std::allocator<libtorrent::peer_info> >&) const", referenced from:
      PeerListWidget::loadPeers(QTorrentHandle const&, bool) in peerlistwidget.o
      TrackerList::loadStickyItems(QTorrentHandle const&) in trackerlist.o
  "libtorrent::torrent_handle::remove_url_seed(std::string const&) const", referenced from:
      QTorrentHandle::remove_url_seed(QString const&) const in qtorrenthandle.o
  "libtorrent::torrent_handle::prioritize_files(std::vector<int, std::allocator<int> > const&) const", referenced from:
      QTorrentHandle::prioritize_files(std::vector<int, std::allocator<int> > const&) const in qtorrenthandle.o
  "libtorrent::torrent_handle::replace_trackers(std::vector<libtorrent::announce_entry, std::allocator<libtorrent::announce_entry> > const&) const", referenced from:
      TrackerList::moveSelectionUp() in trackerlist.o
      TrackerList::moveSelectionDown() in trackerlist.o
      TrackerList::deleteSelectedTrackers() in trackerlist.o
      TrackerList::editSelectedTracker() in trackerlist.o
  "libtorrent::torrent_handle::set_tracker_login(std::string const&, std::string const&) const", referenced from:
      QTorrentHandle::set_tracker_login(QString const&, QString const&) const in qtorrenthandle.o
  "libtorrent::torrent_handle::get_download_queue(std::vector<libtorrent::partial_piece_info, std::allocator<libtorrent::partial_piece_info> >&) const", referenced from:
      QTorrentHandle::downloading_pieces(libtorrent::bitfield&) const in qtorrenthandle.o
  "libtorrent::torrent_handle::piece_availability(std::vector<int, std::allocator<int> >&) const", referenced from:
      PropertiesWidget::loadDynamicData() in propertieswidget.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:640: recipe for target 'qbittorrent.app/Contents/MacOS/qbittorrent' failed
make[1]: *** [qbittorrent.app/Contents/MacOS/qbittorrent] Error 1
make[1]: Leaving directory '/Users/David/GitHub/qBittorrent-qt5/src'
Makefile:38: recipe for target 'sub-src-make_first' failed
make: *** [sub-src-make_first] Error 2

Qt4 still works fine. Here's the Qt5 configuration:

./configure --with-boost=/usr/local/opt/boost --with-geoip-database-embedded --with-qt5 QT_QMAKE=/usr/local/opt/qt5/bin PKG_CONFIG_PATH=/usr/local/opt/qt5/lib/pkgconfig:/usr/local/opt/zlib/lib/pkgconfig --disable-qt-dbus
pmzqla commented 9 years ago

I don't think 3.1.10 is ready for Qt5, you have to move to 3.2.0.

Noctem commented 9 years ago

@pmzqla Sorry, ignore the version strings. This is git master but I manually shifted back the version info.

sorokin commented 9 years ago

Undefined symbols for libtorrent. Very strange that this has to do something with Qt version.

Could you provide the linker command line for Qt4 when linking succeeded?

The current command line links with libtorrent as:

-L/usr/local/Cellar/libtorrent-rasterbar/1.0.2_1/lib -ltorrent-rasterbar
Noctem commented 9 years ago

That part appears to be the same. Here's the complete command from the functioning Qt4 build:

clang++ -headerpad_max_install_names -stdlib=libc++ -mmacosx-version-min=10.7 -arch x86_64 -o qbittorrent.app/Contents/MacOS/qbittorrent qtsingleapplication.o qtlocalpeer.o qbtsession.o qtorrenthandle.o torrentspeedmonitor.o alertdispatcher.o torrentstatistics.o filterparserthread.o torrentmodel.o shutdownconfirm.o httpserver.o httpconnection.o httprequestparser.o httpresponsegenerator.o btjson.o prefjson.o webapplication.o abstractrequesthandler.o requesthandler.o json_parser.o json_scanner.o parser.o serializer.o qtracker.o options_imp.o preferences.o lineedit.o propertieswidget.o peerlistwidget.o trackerlist.o proptabbar.o downloadedpiecesbar.o pieceavailabilitybar.o searchengine.o searchtab.o engineselectdlg.o rss_imp.o rsssettingsdlg.o feedlistwidget.o rssmanager.o rssfeed.o rssfolder.o rssarticle.o automatedrssdownloader.o rssdownloadrule.o rssdownloadrulelist.o cookiesdlg.o rssfile.o rssparser.o torrentcreatordlg.o torrentcreatorthread.o geoipmanager.o powermanagement.o main.o downloadthread.o scannedfoldersmodel.o torrentpersistentdata.o misc.o fs_utils.o smtp.o dnsupdater.o mainwindow.o ico.o transferlistwidget.o transferlistdelegate.o transferlistfilterswidget.o torrentcontentmodel.o torrentcontentmodelitem.o torrentcontentmodelfolder.o torrentcontentmodelfile.o torrentcontentfiltermodel.o sessionapplication.o torrentimportdlg.o executionlog.o previewselect.o iconprovider.o updownratiodlg.o loglistwidget.o addnewtorrentdialog.o autoexpandabledialog.o statsdialog.o messageboxraised.o statussortfilterproxymodel.o statusbar.o trackerlogin.o qmacapplication.o programupdater.o moc_qtsingleapplication.o moc_qtlocalpeer.o moc_qbtsession.o moc_bandwidthscheduler.o moc_torrentspeedmonitor.o moc_filterparserthread.o moc_alertdispatcher.o moc_torrentstatistics.o moc_torrentmodel.o moc_shutdownconfirm.o moc_httpserver.o moc_httpconnection.o moc_webapplication.o moc_qtracker.o moc_options_imp.o moc_advancedsettings.o moc_preferences.o moc_lineedit.o moc_propertieswidget.o moc_peerlistwidget.o moc_proplistdelegate.o moc_trackerlist.o moc_downloadedpiecesbar.o moc_peerlistdelegate.o moc_peerlistsortmodel.o moc_peeraddition.o moc_trackersadditiondlg.o moc_pieceavailabilitybar.o moc_proptabbar.o moc_searchengine.o moc_searchtab.o moc_engineselectdlg.o moc_pluginsource.o moc_searchlistdelegate.o moc_supportedengines.o moc_searchsortmodel.o moc_rss_imp.o moc_rsssettingsdlg.o moc_feedlistwidget.o moc_rssmanager.o moc_rssfeed.o moc_rssfolder.o moc_rssarticle.o moc_automatedrssdownloader.o moc_cookiesdlg.o moc_rssparser.o moc_torrentcreatordlg.o moc_torrentcreatorthread.o moc_geoipmanager.o moc_powermanagement.o moc_downloadthread.o moc_filesystemwatcher.o moc_scannedfoldersmodel.o moc_qinisettings.o moc_smtp.o moc_dnsupdater.o moc_mainwindow.o moc_transferlistwidget.o moc_transferlistdelegate.o moc_transferlistfilterswidget.o moc_transferlistsortmodel.o moc_torrentcontentmodel.o moc_torrentcontentfiltermodel.o moc_deletionconfirmationdlg.o moc_statusbar.o moc_reverseresolution.o moc_speedlimitdlg.o moc_about_imp.o moc_previewselect.o moc_previewlistdelegate.o moc_downloadfromurldlg.o moc_trackerlogin.o moc_sessionapplication.o moc_torrentimportdlg.o moc_executionlog.o moc_updownratiodlg.o moc_loglistwidget.o moc_addnewtorrentdialog.o moc_autoexpandabledialog.o moc_statsdialog.o moc_messageboxraised.o moc_statussortfilterproxymodel.o moc_qmacapplication.o moc_programupdater.o qrc_icons.o qrc_lang.o qrc_about.o qrc_webui.o qrc_lineeditimages.o qrc_search.o qrc_geoip.o   -F/usr/local/Cellar/qt/4.8.6/lib -L/usr/local/Cellar/qt/4.8.6/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/zlib/lib -L/usr/local/lib -L/usr/lib -lssl -lcrypto -framework Carbon -framework IOKit -lz -L/usr/local/Cellar/libtorrent-rasterbar/1.0.2_1/lib -ltorrent-rasterbar -lboost_system-mt -framework QtXml -L/usr/local/opt/d-bus/lib -L/usr/local/Cellar/qt/4.8.6/lib -F/usr/local/Cellar/qt/4.8.6/lib -framework QtCore -framework QtGui -framework QtNetwork -ldbus-1
sorokin commented 9 years ago

I diffed these two command lines:

Qt4:

 -stdlib=libc++ -mmacosx-version-min=10.7 -arch x86_64

Qt5:

-Wl,syslibroot,/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -mmacosx-version-min=10.6

I noticed that all function that failed to link contain containers from the standard library. Probably Qt5 command line misses -stdlib=libc++?

Noctem commented 9 years ago

I noticed that too. Any idea why Qt5's qmake is leaving that out?

I tried manually adding -stdlib=libc++ to CXXFLAGS and LFLAGS in src/Makefile, and compilation/linking completed, but the binary crashes immediately.

Here's the dump:

Process:               qbittorrent [9310]
Path:                  /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
Identifier:            org.qbittorrent
Version:               3.1.10 (???)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           qbittorrent [9310]
User ID:               501

Date/Time:             2014-11-07 10:07:45.672 -0700
OS Version:            Mac OS X 10.10 (14A389)
Report Version:        11

Time Awake Since Boot: 71000 seconds

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Application Specific Information:
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00007fff8d5c4282 __pthread_kill + 10
1   libsystem_c.dylib               0x00007fff8be0ab73 abort + 129
2   QtCore                          0x00000001119b0679 qt_message_fatal(QtMsgType, QMessageLogContext const&, QString const&) + 9
3   QtCore                          0x00000001119b1b21 QMessageLogger::fatal(char const*, ...) const + 161
4   QtGui                           0x0000000111416e98 QGuiApplicationPrivate::createPlatformIntegration() + 5672
5   QtGui                           0x0000000111416ebb QGuiApplicationPrivate::createEventDispatcher() + 27
6   QtCore                          0x0000000111bd6bc1 QCoreApplication::init() + 113
7   QtCore                          0x0000000111bd6b37 QCoreApplication::QCoreApplication(QCoreApplicationPrivate&) + 39
8   QtGui                           0x00000001114145de QGuiApplication::QGuiApplication(QGuiApplicationPrivate&) + 14
9   QtWidgets                       0x0000000110da0ede QApplication::QApplication(int&, char**, int) + 206
10  org.qbittorrent                 0x000000010ff53230 QtSingleApplication::QtSingleApplication(QString const&, int&, char**) + 32
11  org.qbittorrent                 0x00000001101243ae QMacApplication::QMacApplication(QString, int&, char**) + 14
12  org.qbittorrent                 0x0000000110107fa0 SessionApplication::SessionApplication(QString const&, int&, char**) + 48
13  org.qbittorrent                 0x0000000110099fef main + 271
14  org.qbittorrent                 0x000000010ff530a4 start + 52

Thread 1:: QProcessManager
0   libsystem_kernel.dylib          0x00007fff8d5c43f6 __select + 10
1   QtCore                          0x00000001119c1473 QThreadPrivate::start(void*) + 339
2   libsystem_pthread.dylib         0x00007fff97a6c2fc _pthread_body + 131
3   libsystem_pthread.dylib         0x00007fff97a6c279 _pthread_start + 176
4   libsystem_pthread.dylib         0x00007fff97a6a4b1 thread_start + 13

Thread 2:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib          0x00007fff8d5c522e kevent64 + 10
1   libdispatch.dylib               0x00007fff8d23aa6a _dispatch_mgr_thread + 52

Thread 3:
0   libsystem_kernel.dylib          0x00007fff8d5c4946 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff97a6a4a1 start_wqthread + 13

Thread 4:
0   libsystem_kernel.dylib          0x00007fff8d5c4946 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff97a6a4a1 start_wqthread + 13

Thread 5:
0   libsystem_kernel.dylib          0x00007fff8d5c4946 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff97a6a4a1 start_wqthread + 13

Thread 6:
0   libsystem_kernel.dylib          0x00007fff8d5c4946 __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff97a6a4a1 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000006  rcx: 0x00007fff4fcb1ff8  rdx: 0x0000000000000000
  rdi: 0x000000000000130f  rsi: 0x0000000000000006  rbp: 0x00007fff4fcb2020  rsp: 0x00007fff4fcb1ff8
   r8: 0x000000000000003f   r9: 0x00007ffe59e00000  r10: 0x0000000008000000  r11: 0x0000000000000206
  r12: 0x0000000111d01528  r13: 0x00007ffe59e00240  r14: 0x00007fff7b419300  r15: 0x00007fff4fcb2ae0
  rip: 0x00007fff8d5c4282  rfl: 0x0000000000000206  cr2: 0x00007fff7984dfd8

Logical CPU:     0
Error Code:      0x02000148
Trap Number:     133

Binary Images:
       0x10ff4d000 -        0x1105f4fff +org.qbittorrent (3.1.10 - ???) <E5E50504-FDB3-3ED5-B350-EC4FFCFAE606> /Applications/qbittorrent.app/Contents/MacOS/qbittorrent
       0x1106bc000 -        0x1106f4ff7 +libssl.1.0.0.dylib (0) <B991DC60-A3A0-3C2C-95DA-D5A119269D87> /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
       0x110714000 -        0x110826fdf +libcrypto.1.0.0.dylib (0) <A1B57D78-EDCD-3768-A627-B8118765850B> /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
       0x11089d000 -        0x1108adfff +libz.1.dylib (0) <BD5D9145-EB88-3D4C-BEB8-9B4F0CB107B5> /usr/local/opt/zlib/lib/libz.1.dylib
       0x1108b7000 -        0x110b4ffff +libtorrent-rasterbar.8.dylib (0) <79476A4C-3E77-3DD4-BA18-BDCB4075B761> /usr/local/lib/libtorrent-rasterbar.8.dylib
       0x110d6b000 -        0x110d6dff3 +libboost_system-mt.dylib (0) <1F805F25-9640-3288-AEC9-23884EDCF5B4> /usr/local/lib/libboost_system-mt.dylib
       0x110d76000 -        0x111252fff +QtWidgets (5.3.2) <5F62651B-EBC7-3450-9E66-B0E542ACEA85> /usr/local/opt/qt5/lib/QtWidgets.framework/Versions/5/QtWidgets
       0x1113f6000 -        0x111860ff7 +QtGui (5.3.2) <F805C128-8F07-3A43-8168-B92C55954E29> /usr/local/opt/qt5/lib/QtGui.framework/Versions/5/QtGui
       0x11198e000 -        0x111ed4ff7 +QtCore (5.3.2) <F58B39B4-FFDB-3E10-AC4E-4B1AE2377761> /usr/local/opt/qt5/lib/QtCore.framework/Versions/5/QtCore
       0x111fc6000 -        0x1120d9fff +QtNetwork (5.3.2) <983156DD-A21A-3994-9F50-77BA7BDCA410> /usr/local/opt/qt5/lib/QtNetwork.framework/Versions/5/QtNetwork
       0x112145000 -        0x11217efff +QtXml (5.3.2) <EF57200D-A109-3B33-BC99-D24B654DFCEC> /usr/local/opt/qt5/lib/QtXml.framework/Versions/5/QtXml
       0x112199000 -        0x1121c6fff +libdbus-1.3.dylib (0) <A3904853-CCA1-3BFB-B863-604279311558> /usr/local/lib/libdbus-1.3.dylib
       0x1121dc000 -        0x1121e0fff  com.apple.agl (3.3.0 - AGL-3.3.0) <3B0D06B0-99F1-3D5F-8977-340FC462B511> /System/Library/Frameworks/AGL.framework/Versions/A/AGL
       0x1121e9000 -        0x112208fff +libGeoIP.1.dylib (0) <80D3FA69-D164-33F2-BC4C-210EE8312C03> /usr/local/lib/libGeoIP.1.dylib
    0x7fff68392000 -     0x7fff683c8837  dyld (353.2.1) <4696A982-1500-34EC-9777-1EF7A03E2659> /usr/lib/dyld
    0x7fff890fc000 -     0x7fff890fdfff  libDiagnosticMessagesClient.dylib (100) <2EE8E436-5CDC-34C5-9959-5BA218D507FB> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff89173000 -     0x7fff89179ff7  libsystem_networkextension.dylib (167.1.10) <29AB225B-D7FB-30ED-9600-65D44B9A9442> /usr/lib/system/libsystem_networkextension.dylib
    0x7fff891ac000 -     0x7fff891b3fff  com.apple.NetFS (6.0 - 4.0) <1581D25F-CC07-39B0-90E8-5D4F3CF84EBA> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x7fff891b4000 -     0x7fff8941cffb  com.apple.security (7.0 - 57031.1.35) <96141D1F-614E-32C4-8AC2-F47481F23F43> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff89447000 -     0x7fff894dbfff  com.apple.ink.framework (10.9 - 213) <8E029630-1530-3734-A446-13353F0E7AC5> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
    0x7fff894dc000 -     0x7fff894dcff7  libkeymgr.dylib (28) <77845842-DE70-3CC5-BD01-C3D14227CED5> /usr/lib/system/libkeymgr.dylib
    0x7fff894dd000 -     0x7fff89551fff  com.apple.ApplicationServices.ATS (360 - 375) <62828B40-231D-3F81-8067-1903143DCB6B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
    0x7fff8955b000 -     0x7fff89574fff  com.apple.openscripting (1.4 - 162) <80DFF366-B950-3F79-903F-99DA0FFDB570> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
    0x7fff896a0000 -     0x7fff896dbfff  com.apple.Symbolication (1.4 - 56045) <D64571B1-4483-3FE2-BD67-A91360F79727> /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication
    0x7fff89705000 -     0x7fff89705fff  com.apple.audio.units.AudioUnit (1.12 - 1.12) <76EF1C9D-DEA4-3E55-A134-4099B2FD2CF2> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x7fff898e4000 -     0x7fff89930ff7  libcups.2.dylib (408) <9CECCDE3-51D7-3028-830C-F58BD36E3317> /usr/lib/libcups.2.dylib
    0x7fff8994d000 -     0x7fff8994fff7  libquarantine.dylib (76) <DC041627-2D92-361C-BABF-A869A5C72293> /usr/lib/system/libquarantine.dylib
    0x7fff89950000 -     0x7fff899cdfff  com.apple.CoreServices.OSServices (640.3 - 640.3) <28445162-08E9-3E24-84E4-617CE5FE1367> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    0x7fff899ce000 -     0x7fff89aeffff  com.apple.LaunchServices (644.10 - 644.10) <0B1C68BC-0AEB-38E2-ABC8-E92728FEC475> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    0x7fff89b1f000 -     0x7fff89cadfff  libBLAS.dylib (1128) <497912C1-A98E-3281-BED7-E9C751552F61> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    0x7fff89cae000 -     0x7fff89cd3ff7  libJPEG.dylib (1231) <35F13BD9-AA92-3510-B5BB-420DA15AE7F2> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x7fff89d1f000 -     0x7fff89d1ffff  com.apple.ApplicationServices (48 - 48) <5BF7910B-C328-3BF8-BA4F-CE52B574CE01> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
    0x7fff89d20000 -     0x7fff89d34ff7  com.apple.MultitouchSupport.framework (260.30 - 260.30) <28728A7D-E048-3B14-9932-839A87D381FE> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
    0x7fff89d41000 -     0x7fff89d42ff7  com.apple.print.framework.Print (10.0 - 265) <3BC4FE7F-78A0-3E57-8F4C-520E7EFD36FA> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
    0x7fff89d51000 -     0x7fff89d76ff7  libPng.dylib (1231) <2D5AC0EE-4056-3F76-97E7-BBD415F072B5> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x7fff89d8e000 -     0x7fff89d9aff7  com.apple.OpenDirectory (10.10 - 187) <1D0066FC-1DEB-381B-B15C-4C009E0DF850> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
    0x7fff89ddd000 -     0x7fff89dddff7  libunc.dylib (29) <5676F7EA-C1DF-329F-B006-D2C3022B7D70> /usr/lib/system/libunc.dylib
    0x7fff89dde000 -     0x7fff89e9dfff  com.apple.backup.framework (1.6 - 1.6) <5C38C168-5E9B-335D-9570-91AF8604BB10> /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
    0x7fff89ece000 -     0x7fff8a1d0fff  com.apple.HIToolbox (2.1.1 - 756) <9DD121B5-B7EB-3C43-8155-61A4417F8E9A> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
    0x7fff8a21e000 -     0x7fff8a223ff7  libunwind.dylib (35.3) <BE7E51A0-B6EA-3A54-9CCA-9D88F683A6D6> /usr/lib/system/libunwind.dylib
    0x7fff8a22c000 -     0x7fff8a22cfff  com.apple.Carbon (154 - 157) <6E3AEB9D-7643-36BE-A7E5-D08886649257> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x7fff8a498000 -     0x7fff8a4b2ff3  com.apple.Ubiquity (1.3 - 313) <DF56A657-CC6E-3BE2-86A0-71F07127724C> /System/Library/PrivateFrameworks/Ubiquity.framework/Versions/A/Ubiquity
    0x7fff8a4bb000 -     0x7fff8a4d6ff7  libCRFSuite.dylib (34) <D64842BE-7BD4-3D0C-9842-1D202F7C2A51> /usr/lib/libCRFSuite.dylib
    0x7fff8a4d7000 -     0x7fff8a504fff  com.apple.CoreVideo (1.8 - 145.1) <18DB07E0-B927-3260-A234-636F298D1917> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x7fff8aa19000 -     0x7fff8aa1cfff  com.apple.IOSurface (97 - 97) <D4B4D2B2-7B16-3174-9EA6-55E0A10B452D> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
    0x7fff8aa1d000 -     0x7fff8aa71fff  libc++.1.dylib (120) <1B9530FD-989B-3174-BB1C-BDC159501710> /usr/lib/libc++.1.dylib
    0x7fff8ad16000 -     0x7fff8ad19fff  com.apple.xpc.ServiceManagement (1.0 - 1) <7E9E6BB7-AEE7-3F59-BAC0-59EAF105D0C8> /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement
    0x7fff8ad1a000 -     0x7fff8ad5aff7  libGLImage.dylib (11.0.7) <7CBCEB4B-D22F-3116-8B28-D1C22D28C69D> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
    0x7fff8ad88000 -     0x7fff8ad8dffb  libheimdal-asn1.dylib (398.1.2) <F9463B34-AAF5-3488-AD0C-85937C81FC5E> /usr/lib/libheimdal-asn1.dylib
    0x7fff8adf5000 -     0x7fff8afda267  libobjc.A.dylib (646) <3B60CD90-74A2-3A5D-9686-B0772159792A> /usr/lib/libobjc.A.dylib
    0x7fff8b6e1000 -     0x7fff8b7f9ffb  com.apple.CoreText (352.0 - 454.1) <AB07DF12-BB1F-3275-A8A3-45F14BF872BF> /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
    0x7fff8b847000 -     0x7fff8b852ff7  com.apple.speech.synthesis.framework (5.2.6 - 5.2.6) <9434AA45-B6BD-37F7-A866-172196A7F91B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x7fff8b853000 -     0x7fff8b8a0ff3  com.apple.print.framework.PrintCore (10.0 - 451) <3CA58254-D14F-3913-9DFB-CAC499570CC7> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
    0x7fff8ba39000 -     0x7fff8ba3afff  liblangid.dylib (117) <B54A4AA0-2E53-3671-90F5-AFF711C0EB9E> /usr/lib/liblangid.dylib
    0x7fff8bd45000 -     0x7fff8bdacff7  com.apple.framework.CoreWiFi (3.0 - 300.4) <19269C1D-EB29-384A-83F3-7DDDEB7D9DAD> /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi
    0x7fff8bdad000 -     0x7fff8be39fff  libsystem_c.dylib (1044.1.2) <C185E862-7424-3210-B528-6B822577A4B8> /usr/lib/system/libsystem_c.dylib
    0x7fff8be3a000 -     0x7fff8be3cfff  libRadiance.dylib (1231) <746E9989-E89C-3027-A418-5F99CE131C93> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x7fff8be58000 -     0x7fff8c13fffb  com.apple.CoreServices.CarbonCore (1108.1 - 1108.1) <55A16172-ACC0-38B7-8409-3CB92AF33973> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    0x7fff8c140000 -     0x7fff8c15aff7  liblzma.5.dylib (7) <1D03E875-A7C0-3028-814C-3C27F7B7C079> /usr/lib/liblzma.5.dylib
    0x7fff8c15b000 -     0x7fff8c166fff  libGL.dylib (11.0.7) <C53344AD-8CE6-3111-AB94-BD4CA89ED84E> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x7fff8c24c000 -     0x7fff8c252fff  libsystem_trace.dylib (72.1.3) <A9E6B7D8-C327-3742-AC54-86C94218B1DF> /usr/lib/system/libsystem_trace.dylib
    0x7fff8c253000 -     0x7fff8c27bfff  libsystem_info.dylib (459) <B85A85D5-8530-3A93-B0C3-4DEC41F79478> /usr/lib/system/libsystem_info.dylib
    0x7fff8c2d3000 -     0x7fff8c3c6ff7  libJP2.dylib (1231) <58849E48-9CD2-38A1-9D48-FCE630F473EB> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x7fff8c3cf000 -     0x7fff8c3d1ff7  libsystem_coreservices.dylib (9) <41B7C578-5A53-31C8-A96F-C73E030B0938> /usr/lib/system/libsystem_coreservices.dylib
    0x7fff8c48d000 -     0x7fff8c5b4fff  com.apple.coreui (2.1 - 305) <BB430677-D1F7-38DD-8F05-70E54352B8B5> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
    0x7fff8c5ce000 -     0x7fff8c5d9fff  libcommonCrypto.dylib (60061) <D381EBC6-69D8-31D3-8084-5A80A32CB748> /usr/lib/system/libcommonCrypto.dylib
    0x7fff8c5da000 -     0x7fff8c5defff  libpam.2.dylib (20) <E805398D-9A92-31F8-8005-8DC188BD8B6E> /usr/lib/libpam.2.dylib
    0x7fff8c945000 -     0x7fff8c945fff  com.apple.Cocoa (6.8 - 21) <EAC0EA1E-3C62-3B28-A941-5D8B1E085FF8> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x7fff8c946000 -     0x7fff8c957fff  libcmph.dylib (1) <46EC3997-DB5E-38AE-BBBB-A035A54AD3C0> /usr/lib/libcmph.dylib
    0x7fff8c958000 -     0x7fff8c990fff  com.apple.RemoteViewServices (2.0 - 99) <C9A62691-B0D9-34B7-B71C-A48B5F4DC553> /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices
    0x7fff8ca2d000 -     0x7fff8cb1ffff  libxml2.2.dylib (26) <B834E7C8-EC3E-3382-BC5A-DA38DC4D720C> /usr/lib/libxml2.2.dylib
    0x7fff8cb20000 -     0x7fff8cb3dffb  libresolv.9.dylib (57) <26B38E61-298A-3C3A-82C1-3B5E98AD5E29> /usr/lib/libresolv.9.dylib
    0x7fff8ceaa000 -     0x7fff8ceacfff  libsystem_configuration.dylib (699.1.5) <9FBA1CE4-97D0-347E-A443-93ED94512E92> /usr/lib/system/libsystem_configuration.dylib
    0x7fff8cf61000 -     0x7fff8cf6afff  libGFXShared.dylib (11.0.7) <EC449E3A-D9D2-3494-8B6C-DEB7B11EEDAB> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
    0x7fff8d205000 -     0x7fff8d235ffb  com.apple.GSS (4.0 - 2.0) <D033E7F1-2D34-339F-A814-C67E009DE5A9> /System/Library/Frameworks/GSS.framework/Versions/A/GSS
    0x7fff8d236000 -     0x7fff8d260ff7  libdispatch.dylib (442.1.4) <502CF32B-669B-3709-8862-08188225E4F0> /usr/lib/system/libdispatch.dylib
    0x7fff8d27a000 -     0x7fff8d294ff7  libextension.dylib (55) <17514AB2-C503-3D49-A725-EBC1140567A6> /usr/lib/libextension.dylib
    0x7fff8d2ed000 -     0x7fff8d303ff7  libsystem_asl.dylib (267) <F153AC5B-0542-356E-88C8-20A62CA704E2> /usr/lib/system/libsystem_asl.dylib
    0x7fff8d304000 -     0x7fff8d345fff  libGLU.dylib (11.0.7) <8037342E-1ECD-385F-B4C3-545CE97B76AE> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x7fff8d35a000 -     0x7fff8d383ffb  libxslt.1.dylib (13) <AED1143F-B848-3E73-81ED-71356F25F084> /usr/lib/libxslt.1.dylib
    0x7fff8d3b1000 -     0x7fff8d418ff7  com.apple.datadetectorscore (6.0 - 396.1) <5D348063-1528-3E2F-B587-9E82970506F9> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore
    0x7fff8d41b000 -     0x7fff8d41bfff  com.apple.Accelerate.vecLib (3.10 - vecLib 3.10) <A48738CA-5B6F-3D14-97E9-2BFDFC3DCC06> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
    0x7fff8d41c000 -     0x7fff8d490ff3  com.apple.securityfoundation (6.0 - 55126) <E7FB7A4E-CB0B-37BA-ADD5-373B2A20A783> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
    0x7fff8d491000 -     0x7fff8d4b9fff  libxpc.dylib (559.1.22) <9437C02E-A07B-38C8-91CB-299FAA63083D> /usr/lib/system/libxpc.dylib
    0x7fff8d4cf000 -     0x7fff8d4dfff7  libbsm.0.dylib (34) <A3A2E56C-2B65-37C7-B43A-A1F926E1A0BB> /usr/lib/libbsm.0.dylib
    0x7fff8d4e0000 -     0x7fff8d529ff3  com.apple.HIServices (1.22 - 519) <59D78E07-C3F1-3272-88F1-876B836D5517> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
    0x7fff8d52a000 -     0x7fff8d555ff3  libarchive.2.dylib (30) <8CBB4416-EBE9-3574-8ADC-44655D245F39> /usr/lib/libarchive.2.dylib
    0x7fff8d556000 -     0x7fff8d5a5ff7  com.apple.opencl (2.4.2 - 2.4.2) <6AE26E08-6EFC-3E1B-B202-EFA9C3E5B9D4> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
    0x7fff8d5a6000 -     0x7fff8d5adff7  libcompiler_rt.dylib (35) <BF8FC133-EE10-3DA6-9B90-92039E28678F> /usr/lib/system/libcompiler_rt.dylib
    0x7fff8d5ae000 -     0x7fff8d5cbfff  libsystem_kernel.dylib (2782.1.97) <93E0E0A9-75B6-3904-BB4E-4BC7C05F4B6B> /usr/lib/system/libsystem_kernel.dylib
    0x7fff8d5e4000 -     0x7fff8d5e7fff  com.apple.help (1.3.3 - 46) <CA4541F4-CEF5-355C-8F1F-EA65DC1B400F> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
    0x7fff8d5e8000 -     0x7fff8d5f3ff7  libkxld.dylib (2782.1.97) <CB1A1B57-54BE-3573-AE0C-B90ED6BAEEE2> /usr/lib/system/libkxld.dylib
    0x7fff8d5f4000 -     0x7fff8d60bff7  libLinearAlgebra.dylib (1128) <E78CCBAA-A999-3B65-8EC9-06DB15E67C37> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib
    0x7fff8d665000 -     0x7fff8d669ff7  com.apple.TCC (1.0 - 1) <AFC32F8F-BCD5-313C-B66E-5AB8591EC066> /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC
    0x7fff8d876000 -     0x7fff8d876ff7  liblaunch.dylib (559.1.22) <8A988924-8BE7-35FE-BF7D-322E90EFE49E> /usr/lib/system/liblaunch.dylib
    0x7fff8d9b9000 -     0x7fff8d9bdfff  libCoreVMClient.dylib (79) <FC4E08E3-749E-32FF-B5E9-211F29864831> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
    0x7fff8d9be000 -     0x7fff8ddeefff  com.apple.vision.FaceCore (3.1.6 - 3.1.6) <C3B823AA-C261-37D3-B4AC-C59CE91C8241> /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore
    0x7fff8e054000 -     0x7fff8e0f3df7  com.apple.AppleJPEG (1.0 - 1) <9BB3D7DF-630A-3E1C-A124-12D6C4D0DE70> /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG
    0x7fff8e0f4000 -     0x7fff8e0f8ff7  libGIF.dylib (1231) <A349BA73-301E-3EDE-8A31-8ACE827C289E> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x7fff8e199000 -     0x7fff8ecdafff  com.apple.AppKit (6.9 - 1343.14) <1732C412-257B-340E-8863-B8162D4EB2E2> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7fff8ecdb000 -     0x7fff8ece3fff  libsystem_platform.dylib (63) <64E34079-D712-3D66-9CE2-418624A5C040> /usr/lib/system/libsystem_platform.dylib
    0x7fff8ece4000 -     0x7fff8ece6fff  com.apple.loginsupport (1.0 - 1) <35A2A071-606C-39A5-8C11-E4CAF98D934C> /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport
    0x7fff8ee1c000 -     0x7fff8ee8affb  com.apple.Heimdal (4.0 - 2.0) <B852ACA1-4C64-3E2A-A9D3-6D4C80AD9429> /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal
    0x7fff8ee8b000 -     0x7fff8ee9cff7  libsystem_coretls.dylib (35.1.2) <EBBF7EF6-80D8-3F8F-825C-B412BD6D22C0> /usr/lib/system/libsystem_coretls.dylib
    0x7fff8ee9d000 -     0x7fff8eed8fff  com.apple.QD (301 - 301) <C4D2AD03-B839-350A-AAF0-B4A08F8BED77> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
    0x7fff8ef0c000 -     0x7fff8efa1ff7  com.apple.ColorSync (4.9.0 - 4.9.0) <F06733BD-A10C-3DB3-B050-825351130392> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
    0x7fff8f010000 -     0x7fff8f056ff7  libauto.dylib (186) <A260789B-D4D8-316A-9490-254767B8A5F1> /usr/lib/libauto.dylib
    0x7fff8f057000 -     0x7fff8f207ff7  com.apple.QuartzCore (1.10 - 361.11) <7382E4A9-10B0-3877-B9D7-FA84DC71BA55> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x7fff8f36e000 -     0x7fff8f3a6ffb  libsystem_network.dylib (411) <C0B2313D-47BE-38A9-BEE6-2634A4F5E14B> /usr/lib/system/libsystem_network.dylib
    0x7fff8f6ce000 -     0x7fff8fa01fff  libmecabra.dylib (666) <2CE5540A-D412-3D53-9E11-86C24D61713B> /usr/lib/libmecabra.dylib
    0x7fff8fa8f000 -     0x7fff8fb52ff7  libvMisc.dylib (512) <A4E39464-52EA-34CB-9FFE-53E79B3C65F5> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
    0x7fff8fb53000 -     0x7fff8fb57fff  libcache.dylib (69) <45E9A2E7-99C4-36B2-BEE3-0C4E11614AD1> /usr/lib/system/libcache.dylib
    0x7fff8fc6c000 -     0x7fff8fc6eff7  com.apple.securityhi (9.0 - 55006) <B1E09986-7AF0-3BD1-BAA1-B5514DFB7CD1> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
    0x7fff8fc6f000 -     0x7fff8fc77ffb  com.apple.CoreServices.FSEvents (1210 - 1210) <782A9C69-7A45-31A7-8960-D08A36CBD0A7> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents
    0x7fff8fc78000 -     0x7fff8fc7bff7  libdyld.dylib (353.2.1) <19FAF435-C165-3374-9DEF-D7BBA7D61DB6> /usr/lib/system/libdyld.dylib
    0x7fff90308000 -     0x7fff9031aff7  com.apple.ImageCapture (9.0 - 9.0) <7FB65DD4-56B5-35C4-862C-7A2DED991D1F> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
    0x7fff90423000 -     0x7fff9047dff7  com.apple.LanguageModeling (1.0 - 1) <ACA93FE0-A0E3-333E-AE3C-8EB7DE5F362F> /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling
    0x7fff9071f000 -     0x7fff9074ffff  libsystem_m.dylib (3086.1) <1E12AB45-6D96-36D0-A226-F24D9FB0D9D6> /usr/lib/system/libsystem_m.dylib
    0x7fff90750000 -     0x7fff90759ff3  com.apple.CommonAuth (4.0 - 2.0) <F4C266BE-2E0E-36B4-9DE7-C6B4BF410FD7> /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth
    0x7fff90765000 -     0x7fff9094aff3  libicucore.A.dylib (531.30) <EF0E7544-E317-3550-A962-6AE65E78AF17> /usr/lib/libicucore.A.dylib
    0x7fff9094d000 -     0x7fff90969fff  com.apple.GenerationalStorage (2.0 - 209.11) <9FF8DD11-25FB-3047-A5BF-9415339B3EEC> /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage
    0x7fff9096a000 -     0x7fff911c1ff3  com.apple.CoreGraphics (1.600.0 - 772) <6364CBE3-3635-3A53-B448-9D19EF9FEA96> /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
    0x7fff911c2000 -     0x7fff911ccff7  com.apple.CrashReporterSupport (10.10 - 629) <EC97EA5E-3190-3717-A4A9-2F35A447E7A6> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport
    0x7fff911cd000 -     0x7fff9122cff3  com.apple.AE (681 - 681) <7F544183-A515-31A8-B45F-89A167F56216> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x7fff91396000 -     0x7fff9139afff  libsystem_stats.dylib (163.1.4) <1DB04436-5974-3F16-86CC-5FF5F390339C> /usr/lib/system/libsystem_stats.dylib
    0x7fff913be000 -     0x7fff9168dff3  com.apple.CoreImage (10.0.33) <6E3DDA29-718B-3BDB-BFAF-F8C201BF93A4> /System/Library/Frameworks/QuartzCore.framework/Versions/A/Frameworks/CoreImage.framework/Versions/A/CoreImage
    0x7fff9168e000 -     0x7fff916aaff7  libsystem_malloc.dylib (53.1.1) <19BCC257-5717-3502-A71F-95D65AFA861B> /usr/lib/system/libsystem_malloc.dylib
    0x7fff916b5000 -     0x7fff91721fff  com.apple.framework.CoreWLAN (5.0 - 500.35.2) <ACBAAB0A-BCC7-37CF-AAFB-2DA1733F2682> /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN
    0x7fff91831000 -     0x7fff91837fff  com.apple.speech.recognition.framework (5.0.9 - 5.0.9) <BB2D573F-0A01-379F-A2BA-3C454EDCB111> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
    0x7fff91838000 -     0x7fff91947ffb  com.apple.desktopservices (1.9 - 1.9) <6EDAC73F-C42C-3FF7-B67D-FCCA1CFC5405> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
    0x7fff91964000 -     0x7fff91c92ff7  com.apple.Foundation (6.9 - 1151.16) <18EDD673-A010-3E99-956E-DA594CE1FA80> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff927bd000 -     0x7fff92928ff7  com.apple.audio.toolbox.AudioToolbox (1.12 - 1.12) <5C6DBEB4-F2EA-3262-B9FC-AFB89404C1DA> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x7fff92929000 -     0x7fff9294fff7  com.apple.ChunkingLibrary (2.1 - 163.1) <3514F2A4-38BD-3849-9286-B3B991057742> /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary
    0x7fff9296c000 -     0x7fff92d79ff7  libLAPACK.dylib (1128) <F9201AE7-B031-36DB-BCF8-971E994EF7C1> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
    0x7fff92d9b000 -     0x7fff92dbefff  com.apple.Sharing (328.3 - 328.3) <FDEE49AD-8804-3760-9C14-8D1D10BBEA37> /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing
    0x7fff9306c000 -     0x7fff9319cfff  com.apple.UIFoundation (1.0 - 1) <8E030D93-441C-3997-9CD2-55C8DFAC8B84> /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation
    0x7fff9319d000 -     0x7fff9323bfff  com.apple.Metadata (10.7.0 - 916) <DA8A1D18-19FE-37B3-BE12-85C5B0A00736> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    0x7fff935ad000 -     0x7fff936effff  libsqlite3.dylib (168) <7B580EB9-9260-35FE-AE2F-276A2C242BAB> /usr/lib/libsqlite3.dylib
    0x7fff936f0000 -     0x7fff93b43fc7  com.apple.vImage (8.0 - 8.0) <33BE7B31-72DB-3364-B37E-C322A32748C5> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
    0x7fff93b56000 -     0x7fff93b70ff7  com.apple.AppleVPAFramework (1.0.30 - 1.0.30) <D47A2125-C72D-3298-B27D-D89EA0D55584> /System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA
    0x7fff93b99000 -     0x7fff93ba1ffb  libcopyfile.dylib (118.1.2) <0C68D3A6-ACDD-3EF3-991A-CC82C32AB836> /usr/lib/system/libcopyfile.dylib
    0x7fff93ba2000 -     0x7fff93c1aff7  com.apple.SystemConfiguration (1.14 - 1.14) <C269BCFD-ACAB-3331-BC7C-0430F0E84817> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff93cdb000 -     0x7fff93ce8fff  com.apple.SpeechRecognitionCore (2.0.32 - 2.0.32) <87F0C88D-502D-3217-8B4A-8388288568BA> /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore
    0x7fff93cf4000 -     0x7fff93e0bfe7  libvDSP.dylib (512) <52777555-F051-3BC2-A2D2-9645907E836D> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
    0x7fff93e0c000 -     0x7fff94086fff  com.apple.CoreData (110 - 526) <AEEDAF00-D38F-3A15-B3C9-73732940CC55> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x7fff94087000 -     0x7fff9408cff7  libmacho.dylib (862) <126CA2ED-DE91-308F-8881-B9DAEC3C63B6> /usr/lib/system/libmacho.dylib
    0x7fff9408d000 -     0x7fff94095fff  libsystem_dnssd.dylib (561.1.1) <62B70ECA-E40D-3C63-896E-7F00EC386DDB> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff94097000 -     0x7fff94097fff  com.apple.CoreServices (62 - 62) <9E4577CA-3FC3-300D-AB00-87ADBDDA2E37> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff940d1000 -     0x7fff9415afff  com.apple.CoreSymbolication (3.1 - 56072) <8CE81C95-49E8-389F-B989-67CC452C08D0> /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication
    0x7fff9415b000 -     0x7fff9415dfff  libCVMSPluginSupport.dylib (11.0.7) <29D775BB-A11D-3140-A478-2A0DA1A87420> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib
    0x7fff94323000 -     0x7fff94328fff  com.apple.DiskArbitration (2.6 - 2.6) <0DFF4D9B-2AC3-3B82-B5C5-30F4EFBD2DB9> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff9438d000 -     0x7fff9438efff  libsystem_secinit.dylib (18) <581DAD0F-6B63-3A48-B63B-917AF799ABAA> /usr/lib/system/libsystem_secinit.dylib
    0x7fff943d5000 -     0x7fff943dfff7  com.apple.NetAuth (5.0 - 5.0) <B9EC5425-D38D-308C-865F-207E0A98BAC7> /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth
    0x7fff949f4000 -     0x7fff94a65ff7  com.apple.framework.IOKit (2.0.2 - 1050.1.21) <ED3B0B22-AACC-303B-BFC8-20ECD1AF6BA2> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff95a3c000 -     0x7fff95a3dff7  libsystem_blocks.dylib (65) <9615D10A-FCA7-3BE4-AA1A-1B195DACE1A1> /usr/lib/system/libsystem_blocks.dylib
    0x7fff95a8b000 -     0x7fff95aacfff  com.apple.framework.Apple80211 (10.0 - 1000.57.3) <F64EB1A1-57F3-3ABA-97D0-DB7C926FD07F> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211
    0x7fff95aad000 -     0x7fff95af3ffb  libFontRegistry.dylib (134) <01B8034A-45FD-3360-A347-A1896F591363> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
    0x7fff95af4000 -     0x7fff95b1ffff  libc++abi.dylib (125) <88A22A0F-87C6-3002-BFBA-AC0F2808B8B9> /usr/lib/libc++abi.dylib
    0x7fff95b40000 -     0x7fff95b51ff7  libz.1.dylib (55) <88C7C7DE-04B8-316F-8B74-ACD9F3DE1AA1> /usr/lib/libz.1.dylib
    0x7fff95b52000 -     0x7fff95b65ff7  com.apple.CoreBluetooth (1.0 - 1) <FA9B43B3-E183-3040-AE25-66EF9870CF35> /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth
    0x7fff95b66000 -     0x7fff95b73ff7  libbz2.1.0.dylib (36) <2DF83FBC-5C08-39E1-94F5-C28653791B5F> /usr/lib/libbz2.1.0.dylib
    0x7fff95b74000 -     0x7fff95c68ff7  libFontParser.dylib (134) <506126F8-FDCE-3DE1-9DCA-E07FE658B597> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
    0x7fff95c70000 -     0x7fff95c79ff7  libsystem_notify.dylib (133.1.1) <61147800-F320-3DAA-850C-BADF33855F29> /usr/lib/system/libsystem_notify.dylib
    0x7fff95e43000 -     0x7fff95e50ff7  libxar.1.dylib (254) <CE10EFED-3066-3749-838A-6A15AC0DBCB6> /usr/lib/libxar.1.dylib
    0x7fff95e51000 -     0x7fff95eacfff  libTIFF.dylib (1231) <ACC9ED11-EED8-3A23-B452-3F40FF7EF435> /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x7fff95ead000 -     0x7fff95eaeffb  libremovefile.dylib (35) <3485B5F4-6CE8-3C62-8DFD-8736ED6E8531> /usr/lib/system/libremovefile.dylib
    0x7fff95ef0000 -     0x7fff95efeff7  com.apple.opengl (11.0.7 - 11.0.7) <B5C4DF85-37BD-3984-98D1-90A5043DA984> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x7fff95f2f000 -     0x7fff95f2ffff  libOpenScriptingUtil.dylib (162) <EFD79173-A9DA-3AE6-BE15-3948938204A6> /usr/lib/libOpenScriptingUtil.dylib
    0x7fff961e5000 -     0x7fff96322fff  com.apple.ImageIO.framework (3.3.0 - 1038) <611BDFBA-4BAA-36A8-B7E0-3830F3375E53> /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
    0x7fff96323000 -     0x7fff966b9fff  com.apple.CoreFoundation (6.9 - 1151.16) <F2B088AF-A5C6-3FAE-9EB4-7931AF6359E4> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff97975000 -     0x7fff97975fff  com.apple.Accelerate (1.10 - Accelerate 1.10) <227E2491-1DDB-336F-BF83-773CECEC66F1> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x7fff97976000 -     0x7fff97a68ff7  libiconv.2.dylib (42) <2A06D02F-8B76-3864-8D96-64EF5B40BC6C> /usr/lib/libiconv.2.dylib
    0x7fff97a69000 -     0x7fff97a72fff  libsystem_pthread.dylib (105.1.4) <26B1897F-0CD3-30F3-B55A-37CB45062D73> /usr/lib/system/libsystem_pthread.dylib
    0x7fff97a82000 -     0x7fff97a9bff7  com.apple.CFOpenDirectory (10.10 - 187) <0ECA5D80-A045-3A2C-A60C-E1605F3AB6BD> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
    0x7fff97ac3000 -     0x7fff97b45fff  com.apple.PerformanceAnalysis (1.0 - 1) <2FC0F303-B672-3E64-A978-AB78EAD98395> /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis
    0x7fff97b69000 -     0x7fff97c0bfff  com.apple.Bluetooth (4.3.0 - 4.3.0f10) <70922125-2A01-37AE-9CB8-D8A9578092E4> /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth
    0x7fff97e0c000 -     0x7fff97e10fff  com.apple.CommonPanels (1.2.6 - 96) <F9ECC8AF-D9CA-3350-AFB4-5113A9B789A5> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
    0x7fff97ea7000 -     0x7fff980aaff3  com.apple.CFNetwork (720.0.9 - 720.0.9) <78EE1B88-394F-3BB8-93A6-E068990559EC> /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff980ab000 -     0x7fff980bafff  com.apple.LangAnalysis (1.7.0 - 1.7.0) <D1E527E4-C561-352F-9457-E8C50232793C> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
    0x7fff980bb000 -     0x7fff980dbfff  com.apple.IconServices (47.1 - 47.1) <E83DFE3B-6541-3736-96BB-26DC5D0100F1> /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices
    0x7fff98171000 -     0x7fff9819cfff  com.apple.DictionaryServices (1.2 - 229) <6789EC43-CADA-394D-8FE8-FC3A2DD136B9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    0x7fff9819d000 -     0x7fff9820cfff  com.apple.SearchKit (1.4.0 - 1.4.0) <BFD6D876-36BA-3A3B-9F15-3E2F7DE6E89D> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    0x7fff9820d000 -     0x7fff98247ffb  com.apple.DebugSymbols (115 - 115) <6F03761D-7C3A-3C80-8031-AA1C1AD7C706> /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols
    0x7fff9824a000 -     0x7fff982c0fe7  libcorecrypto.dylib (233.1.2) <E1789801-3985-3949-B736-6B3378873301> /usr/lib/system/libcorecrypto.dylib
    0x7fff98401000 -     0x7fff98452ff7  com.apple.audio.CoreAudio (4.3.0 - 4.3.0) <AF72B06E-C6C1-3FAE-8B47-AF461CAE0E22> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x7fff98ad3000 -     0x7fff98ad4fff  libSystem.B.dylib (1213) <DA954461-EC6A-3DF0-8551-6FC810627627> /usr/lib/libSystem.B.dylib
    0x7fff98ae8000 -     0x7fff98b02ff7  com.apple.Kerberos (3.0 - 1) <7760E0C2-A222-3709-B2A6-B692D900CEB1> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
    0x7fff98b03000 -     0x7fff98b05ff7  libsystem_sandbox.dylib (358.1.1) <DB9962EF-8898-31CC-9B87-E01F8CE74C9D> /usr/lib/system/libsystem_sandbox.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 1
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 70647
    thread_create: 1
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=205.9M resident=187.7M(91%) swapped_out_or_unallocated=18.2M(9%)
Writable regions: Total=56.0M written=1636K(3%) resident=2068K(4%) swapped_out=0K(0%) unallocated=53.9M(96%)

REGION TYPE                      VIRTUAL
===========                      =======
Kernel Alloc Once                     4K
MALLOC                             44.4M
MALLOC (admin)                       32K
STACK GUARD                        56.0M
Stack                              10.6M
VM_ALLOCATE                         340K
__DATA                             14.4M
__IMAGE                             528K
__LINKEDIT                         77.2M
__TEXT                            128.7M
__UNICODE                           544K
mapped file                        22.5M
shared memory                         4K
===========                      =======
TOTAL                             355.2M
Noctem commented 9 years ago

Changing the deployment target to 10.9 or 10.10 by adding QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.10 to macxconf.pri also makes the compilation complete even without -stdlib=libc++ being used anywhere, but the binary still crashes immediately.

Noctem commented 9 years ago

Okay, I think I got it working. In addition to changing the deployment target, I copied /usr/local/opt/qt5/plugins/platforms/libqcocoa.dylib to qBittorrent.app/Contents/MacOS/platforms/ and it now executes.

Perhaps this should be filed as a separate issue but when I run it from the command line so that I can see the output, it's constantly saying QCocoaAccessibility::notifyAccessibilityUpdate: invalid element, I don't know if that was the case with Qt4.

sorokin commented 9 years ago

I don't know. Perhaps if compilation with Qt5 omits -stdlib=libc++ , you should compile libtorrent without -stdlib=libc++ too.

sledgehammer999 commented 9 years ago

@Noctem since you're developing on MAC do you have any input for #2085, #2126 and #2094 ?

sledgehammer999 commented 9 years ago

@Noctem what is the current status? Should I close this?

Noctem commented 9 years ago

@sledgehammer999 My commit fixes this issue. Is that the most appropriate place to insert those flags?

The only remaining Qt5 issue I have is needing to manually copy plugins/platforms/libqcocoa.dylib from Qt5 into the qBittorrent app bundle. Do we need to link that library somewhere to avoid this?

sledgehammer999 commented 9 years ago

Let me ask you a few things:

  1. What is your configure commandline?
  2. Do you use homebrew or macports?
  3. Can you post the output of pkg-config --cflags --libs libtorrent-rasterbar and pkg-config --cflags --libs Qt5Core ?
  4. About libqcocoa: How do you package qbt? Do you use the tool macdeployqt ? Can you do a otool -L <binary>, replacing with the qbt binary inside the package?
Noctem commented 9 years ago
  1. ./configure --with-boost=/usr/local/opt/boost --with-geoip-database-embedded --with-qt5 PKG_CONFIG_PATH=/usr/local/opt/libtorrent-rasterbar/lib/pkgconfig:/usr/local/opt/qt5/lib/pkgconfig:/usr/local/opt/zlib/lib/pkgconfig There's a little overkill in specifying library locations, but I prefer being safe. Also, Qt5 and homebrew's zlib aren't in my PATH.
  2. Homebrew
$ pkg-config --cflags --libs libtorrent-rasterbar
-DTORRENT_USE_OPENSSL -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_DYN_LINK -DTORRENT_LINKING_SHARED -I/usr/local/Cellar/libtorrent-rasterbar/1.0.3/include -I/usr/local/Cellar/libtorrent-rasterbar/1.0.3/include/libtorrent -L/usr/local/Cellar/libtorrent-rasterbar/1.0.3/lib -ltorrent-rasterbar -lboost_system-mt

$ export PKG_CONFIG_PATH=/usr/local/opt/qt5/lib/pkgconfig
$ pkg-config --cflags --libs Qt5Core
-I/usr/local/Cellar/qt5/5.4.0/include/QtCore -I/usr/local/Cellar/qt5/5.4.0/include -F/usr/local/Cellar/qt5/5.4.0/lib -framework QtCore

4​. I haven't been packaging it since I run it on the same system that I compile on, and it just finds the libraries in their original locations.

$ otool -L /Applications/qbittorrent.app/Contents/MacOS/qbittorrent 
/Applications/qbittorrent.app/Contents/MacOS/qbittorrent:
    /usr/local/lib/libtorrent-rasterbar.8.dylib (compatibility version 9.0.0, current version 9.0.0)
    /usr/local/lib/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
    /usr/local/opt/zlib/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.8)
    /usr/local/lib/libboost_system.dylib (compatibility version 0.0.0, current version 0.0.0)
    /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 157.0.0)
    /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
    /usr/local/opt/qt5/lib/QtWidgets.framework/Versions/5/QtWidgets (compatibility version 5.4.0, current version 5.4.0)
    /usr/local/opt/qt5/lib/QtGui.framework/Versions/5/QtGui (compatibility version 5.4.0, current version 5.4.0)
    /usr/local/opt/qt5/lib/QtCore.framework/Versions/5/QtCore (compatibility version 5.4.0, current version 5.4.0)
    /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)
    /usr/local/opt/qt5/lib/QtXml.framework/Versions/5/QtXml (compatibility version 5.4.0, current version 5.4.0)
    /usr/local/opt/qt5/lib/QtNetwork.framework/Versions/5/QtNetwork (compatibility version 5.4.0, current version 5.4.0)
    /usr/local/lib/libdbus-1.3.dylib (compatibility version 12.0.0, current version 12.10.0)
    /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1151.16.0)
    /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 62.0.0)

I'll try packaging with macdeployqt.

sledgehammer999 commented 9 years ago

The otool doesn't show a linking requirement for the *cocoa lib.... Can you use the otool on libtorrent-rasterbar too? But not the one in the package, the one in homebrew. So if you don't package qbt and it finds the cocoa lib, how does it complain about it?

Noctem commented 9 years ago

I figured it out. qt.conf was erroneously overriding the prefix to be MacOS/, so it was unable to find and load the PlugIns unless they were also put into the MacOS folder. By removing that line from qt.conf (in 1506999968ac94368d7b86b500fabc7cedbcf205) and allowing it to use the defaults , the app bundle works properly after packaging.

sledgehammer999 commented 9 years ago

Does this still work with qt4? I hope it didn't break it.

Noctem commented 9 years ago

I haven't tested Qt4, but I don't see why it would break anything. Omitting that line just makes it use the default, and I would assume that the default is appropriate for both Qt4 and Qt5. I can test that a little later.

Also, I uploaded a completed bundle here from the current git master + my fixes in #2463 and #2464. I haven't tested it on any other systems yet, but perhaps it could be useful to the people in #2085, #2279, #2282, #2336, #2394, #2441, and others.

sledgehammer999 commented 9 years ago

Yes, please test with qt4 too. (at your leisure)

Noctem commented 9 years ago

Just tried this branch (that contains all of the changes from #2463, #2464, and #2470) with Qt4 and an argumentless ./configure command, and it works. Here's the binary bundle.

albertogasparin commented 9 years ago

@Noctem Well done! I have a working 3.1.11.1 (so I don't know if your builds fix startup crashes) but I have tried your binaries and both QT5 and QT4 starts without problems is my OS X 10.10.1. Apparently DHT and PeX are not working in both your builds, right? Moreover, QT5 looks way better but there is a bug in the trackers list: if you right click, the menu will auto close immediately.

Noctem commented 9 years ago

@Noctem Well done! I have a working 3.1.11.1 (so I don't know if your builds fix startup crashes) but I have tried your binaries and both QT5 and QT4 starts without problems is my OS X 10.10.1.

Thanks, glad to hear it.

Apparently DHT and PeX are not working in both your builds, right? Moreover, QT5 looks way better but there is a bug in the trackers list: if you right click, the menu will auto close immediately.

DHT and PeX are working on my system (running OS X 10.10.2) with those builds as far as I can tell, and I don't seem to have the same bug with right clicking in the trackers list.