Название: не получается собрать со статической либой (ubuntu)
Отправлено: kilanoff от Февраль 17, 2011, 16:20
пытаюсь собрать QT в режиме STATIC make[4]: Вход в каталог `/home/netic/qtsdk-2010.05/qt/tools/assistant/tools/assistant' g++ -Wl,-rpath-link,/home/netic/qtsdk-2010.05/qt/lib -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/Qt-4.7.0/lib -Wl,-rpath,/usr/local/Trolltech/Qt-4.7.0/lib -o ../../../../bin/assistant .obj/release-static/fontpanel.o .obj/release-static/aboutdialog.o .obj/release-static/bookmarkdialog.o .obj/release-static/bookmarkfiltermodel.o .obj/release-static/bookmarkitem.o .obj/release-static/bookmarkmanager.o .obj/release-static/bookmarkmanagerwidget.o .obj/release-static/bookmarkmodel.o .obj/release-static/centralwidget.o .obj/release-static/cmdlineparser.o .obj/release-static/contentwindow.o .obj/release-static/findwidget.o .obj/release-static/filternamedialog.o .obj/release-static/helpenginewrapper.o .obj/release-static/helpviewer.o .obj/release-static/indexwindow.o .obj/release-static/installdialog.o .obj/release-static/main.o .obj/release-static/mainwindow.o .obj/release-static/preferencesdialog.o .obj/release-static/qtdocinstaller.o .obj/release-static/remotecontrol.o .obj/release-static/searchwidget.o .obj/release-static/topicchooser.o .obj/release-static/xbelsupport.o .obj/release-static/collectionconfiguration.o .obj/release-static/helpviewer_qtb.o .obj/release-static/moc_fontpanel.o .obj/release-static/moc_aboutdialog.o .obj/release-static/moc_bookmarkdialog.o .obj/release-static/moc_bookmarkfiltermodel.o .obj/release-static/moc_bookmarkmanager.o .obj/release-static/moc_bookmarkmanagerwidget.o .obj/release-static/moc_bookmarkmodel.o .obj/release-static/moc_centralwidget.o .obj/release-static/moc_contentwindow.o .obj/release-static/moc_findwidget.o .obj/release-static/moc_filternamedialog.o .obj/release-static/moc_helpenginewrapper.o .obj/release-static/moc_indexwindow.o .obj/release-static/moc_installdialog.o .obj/release-static/moc_mainwindow.o .obj/release-static/moc_preferencesdialog.o .obj/release-static/moc_qtdocinstaller.o .obj/release-static/moc_remotecontrol.o .obj/release-static/moc_searchwidget.o .obj/release-static/moc_topicchooser.o .obj/release-static/moc_helpviewer_qtb.o .obj/release-static/qrc_assistant.o .obj/release-static/qrc_assistant_images.o -L/home/netic/qtsdk-2010.05/qt/lib -L/home/netic/qtsdk-2010.05/qt/plugins/sqldrivers -lQtHelp -L/home/netic/qtsdk-2010.05/qt/lib -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -L/usr/X11R6/lib -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -pthread -lQtCLucene -pthread -pthread -lQtSql -pthread -pthread -lQtXml -pthread -pthread -lQtGui -pthread -pthread -pthread -lpng -pthread -lgobject-2.0 -lSM -lICE -lXrender -lfontconfig -lfreetype -lXext -lX11 -lQtNetwork -pthread -pthread -lQtCore -lz -lm -ldl -pthread -lgthread-2.0 -lrt -lglib-2.0 -lpthread .obj/release-static/centralwidget.o: In function `CentralWidget::isForwardAvailable() const': centralwidget.cpp:(.text+0x721): undefined reference to `QWebView::pageAction(QWebPage::WebAction) const' .obj/release-static/centralwidget.o: In function `CentralWidget::currentTitle() const': centralwidget.cpp:(.text+0x791): undefined reference to `QWebView::title() const' .obj/release-static/centralwidget.o: In function `CentralWidget::copySelection()': centralwidget.cpp:(.text+0xbc9): undefined reference to `QWebView::triggerPageAction(QWebPage::WebAction, bool)' .obj/release-static/centralwidget.o: In function `CentralWidget::currentSource() const': centralwidget.cpp:(.text+0xbf1): undefined reference to `HelpViewer::source() const' .obj/release-static/centralwidget.o: In function `CentralWidget::isBackwardAvailable() const': centralwidget.cpp:(.text+0xd31): undefined reference to `QWebView::pageAction(QWebPage::WebAction) const' .obj/release-static/centralwidget.o: In function `CentralWidget::currentSourceFileList() const': centralwidget.cpp:(.text+0xe42): undefined reference to `HelpViewer::source() const' centralwidget.cpp:(.text+0xe7a): undefined reference to `HelpViewer::source() const' .obj/release-static/centralwidget.o: In function `CentralWidget::~CentralWidget()': centralwidget.cpp:(.text+0x10ea): undefined reference to `HelpViewer::source() const' centralwidget.cpp:(.text+0x1129): undefined reference to `HelpViewer::source() const' .obj/release-static/centralwidget.o: In function `CentralWidget::~CentralWidget()': centralwidget.cpp:(.text+0x145a): undefined reference to `HelpViewer::source() const' .obj/release-static/centralwidget.o:centralwidget.cpp:(.text+0x1499): more undefined references to `HelpViewer::source() const' follow .obj/release-static/centralwidget.o: In function `CentralWidget::eventFilter(QObject*, QEvent*)': centralwidget.cpp:(.text+0x2bd0): undefined reference to `QWebView::pageAction(QWebPage::WebAction) const' centralwidget.cpp:(.text+0x2bfe): undefined reference to `QWebView::back()' .obj/release-static/centralwidget.o: In function `CentralWidget::setTabTitle(QUrl const&)': centralwidget.cpp:(.text+0x2dbd): undefined reference to `QWebView::title() const' .obj/release-static/centralwidget.o: In function `CentralWidget::findInWebPage(QString const&, bool)': centralwidget.cpp:(.text+0x2f0a): undefined reference to `QWebView::findText(QString const&, QFlags<QWebPage::FindFlag>)' centralwidget.cpp:(.text+0x2f38): undefined reference to `QWebView::findText(QString const&, QFlags<QWebPage::FindFlag>)' centralwidget.cpp:(.text+0x2f82): undefined reference to `QWebView::findText(QString const&, QFlags<QWebPage::FindFlag>)' centralwidget.cpp:(.text+0x2fbe): undefined reference to `QWebView::findText(QString const&, QFlags<QWebPage::FindFlag>)' .obj/release-static/centralwidget.o: In function `CentralWidget::print()': centralwidget.cpp:(.text+0x3256): undefined reference to `QWebView::print(QPrinter*) const' .obj/release-static/centralwidget.o: In function `CentralWidget::hasSelection() const': centralwidget.cpp:(.text+0x32a3): undefined reference to `QWebView::selectedText() const' .obj/release-static/centralwidget.o: In function `CentralWidget::highlightSearchTerms()': centralwidget.cpp:(.text+0x352e): undefined reference to `QWebView::findText(QString const&, QFlags<QWebPage::FindFlag>)' centralwidget.cpp:(.text+0x35a3): undefined reference to `QWebView::findText(QString const&, QFlags<QWebPage::FindFlag>)' .obj/release-static/centralwidget.o: In function `CentralWidget::setSourceInNewTab(QUrl const&, double)': centralwidget.cpp:(.text+0x38b8): undefined reference to `QWebView::title() const' .obj/release-static/centralwidget.o: In function `CentralWidget::newTab()': centralwidget.cpp:(.text+0x3a0c): undefined reference to `HelpViewer::source() const' .obj/release-static/centralwidget.o: In function `CentralWidget::setSource(QUrl const&)': centralwidget.cpp:(.text+0x3ca4): undefined reference to `QWebView::title() const' .obj/release-static/centralwidget.o: In function `CentralWidget::closeOrReloadTabs(QList<int> const&, bool)': centralwidget.cpp:(.text+0x43ed): undefined reference to `HelpViewer::source() const' centralwidget.cpp:(.text+0x446b): undefined reference to `QWebView::reload()' .obj/release-static/centralwidget.o: In function `CentralWidget::showTabBarContextMenu(QPoint const&)': centralwidget.cpp:(.text+0x493f): undefined reference to `HelpViewer::source() const' centralwidget.cpp:(.text+0x4acd): undefined reference to `HelpViewer::source() const' centralwidget.cpp:(.text+0x4afb): undefined reference to `QWebView::title() const' centralwidget.cpp:(.text+0x4b56): undefined reference to `HelpViewer::source() const' .obj/release-static/centralwidget.o: In function `CentralWidget::backward()': centralwidget.cpp:(.text+0x75a): undefined reference to `QWebView::back()' .obj/release-static/centralwidget.o: In function `CentralWidget::forward()': centralwidget.cpp:(.text+0x9aa): undefined reference to `QWebView::forward()' .obj/release-static/centralwidget.o: In function `CentralWidget::printPreview(QPrinter*)': centralwidget.cpp:(.text+0xa15): undefined reference to `QWebView::print(QPrinter*) const' collect2: ld returned 1 exit status make[4]: *** [../../../../bin/assistant] Ошибка 1 make[4]: Выход из каталога `/home/netic/qtsdk-2010.05/qt/tools/assistant/tools/assistant' make[3]: *** [sub-assistant-install_subtargets-ordered] Ошибка 2 make[3]: Выход из каталога `/home/netic/qtsdk-2010.05/qt/tools/assistant/tools' make[2]: *** [sub-tools-install_subtargets-ordered] Ошибка 2 make[2]: Выход из каталога `/home/netic/qtsdk-2010.05/qt/tools/assistant' make[1]: *** [sub-assistant-install_subtargets-ordered] Ошибка 2 make[1]: Выход из каталога `/home/netic/qtsdk-2010.05/qt/tools' make: *** [sub-tools-install_subtargets-ordered] Ошибка 2
это все сделано после: sudo ./configure -static -release -prefix /usr/local/Trolltech/Qt-4.7.0 -nomake demos -nomake examples -no-sql-sqlite -no-sql-sqlite2 -no-sql-sqlite_symbian sudo make sub-src sudo make install и вобще так вопрос, как написанную программу например дать кому либо у кого стоит линукс, что бы она заработала Shared Lib можно как то использовать? или только статик либ?
Название: Re: не получается собрать со статической либой (ubuntu)
Отправлено: kilanoff от Февраль 18, 2011, 09:44
у кого похожие проблемы суть такая не надо компилировать и пересобирать Qt который находится в составе Qt Creator надо скачать последний Source QT С сайта нокии и проделать тоже самое: $ sudo ./configure -static -release -prefix /usr/local/staticqt/ $ sudo make sub-src $ sudo make install
|