Автор Тема: Проблеми при компилиране  (Прочетена 7729 пъти)

boril

  • Напреднали
  • *****
  • Публикации: 26
    • Профил
Проблеми при компилиране
« -: Mar 04, 2002, 14:47 »
Имам значи RH7.2 и инсталиран gcc3 и Qt-2.3.1-5 но когато правя ./configure на една програма ми дава :
checking for Qt... configure: error: Qt (>= Qt 2.2.2) (libraries) not found. Please check your installation!
For more details about this problem, look at the end of config.log.
а в този config.log е следното:
configure:5250: checking for Qt
configure:5411: rm -rf SunWS_cache; g++ -o conftest -O2 -fno-exceptions -fno-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long -Wnon-virtual-dtor -fno-builtin -I/usr/lib/qt-2.3.1/include/ -I/usr/X11R6/include -L/usr/lib/qt-2.3.1/lib/ -L/usr/X11R6/lib conftest.C -lqt -lpng -lz -lm -ljpeg -lXext -lX11 -lSM -lICE 1>&5
conftest.C: In function `int main()':
conftest.C:15: warning: unused variable `QStringList*t'
conftest.C:20: warning: unused variable `int magnolia'
/tmp/ccleEJS1.o: In function `main':
/tmp/ccleEJS1.o(.text+0x3e): undefined reference to `QString::shared_null'
/tmp/ccleEJS1.o(.text+0x71): undefined reference to `QIconView::QIconView(QWidget*, char const*, unsigned)'
/tmp/ccleEJS1.o(.text+0x7b): undefined reference to `QIconView::setWordWrapIconText(bool)'
/tmp/ccleEJS1.o(.text+0x80): undefined reference to `QString::shared_null'
/tmp/ccleEJS1.o(.text+0xa3): undefined reference to `QString::setLatin1(char const*, int)'
/tmp/ccleEJS1.o(.text+0xb8): undefined reference to `QString::shared_null'
/tmp/ccleEJS1.o(.text+0xc3): undefined reference to `QStringData::deleteSelf()'
/tmp/ccleEJS1.o(.text+0xd5): undefined reference to `QIconView::~QIconView()'
/tmp/ccleEJS1.o(.text+0xea): undefined reference to `QString::shared_null'
/tmp/ccleEJS1.o(.text+0xf5): undefined reference to `QString::makeSharedNull()'
/tmp/ccleEJS1.o(.text+0xfd): undefined reference to `QString::makeSharedNull()'
collect2: ld returned 1 exit status
configure: failed program was:
#include "confdefs.h"
#include <qglobal.h>
#include <qapplication.h>
#include <qapp.h>
#include <qobjcoll.h>
#include <qevent.h>
#include <qstring.h>
#include <qstyle.h>
#include <qiconview.h>
#if ! (QT_VERSION >= 222)
#error 1
#endif

int main() {
QStringList *t = new QStringList();
QIconView iv(0);
iv.setWordWrapIconText(false);
QString s;
s.setLatin1("Elvis is alive", 14);
int magnolia = QEvent::Speech; /* new in 2.2 beta2 */
return 0;
}
Пробвах да укажа пътя до Qt с : ./configure --with-qt-dir=/usr/lib/qt-2.3.1 --with-qt-includes=/usr/lib/qt-2.3.1/include --with-qt-libraries=/usr/lib/qt-2.3.1/lib
ама и това не помага.
Кажете какво да правя? Програмата е важна за мен, става въпрос за scribus коята е от сорта на Adobe Pagemaker.

P.S.:mezdu drugoto napravil sum si linkove, kakto e opisano na stranicata na gcc.gnu.org, kum gcc3 , e sled kato gi smenih da sochat kum gcc-2.96 deto idva s RH po standart pak dava sushtoto. Takuv problem mi davashe kogato iskah da compiliram mplayer s GUI-enabled ama sled kato slozih gcc3 ne mi dade poveche greshka i vsichko si mina gladko ta si misleh che poveche problemi niama da imam. No ne bi...
 Daite niakakva ideia kakvo da pravia pls...
Активен

mechok

  • Участници
  • ***
  • Публикации: 9
    • Профил
Проблеми при компилиране
« Отговор #1 -: Mar 05, 2002, 13:24 »
Mi vij sega towa po nadolu e chast ot fajla deto si go dal ti, i to tam e ukazano mnogo iasno AKO QT E S VERSIA PO-GOLIAMA ILI RAVNA NA 222 da ti dade greshka . az mislia che ako promenish towa 222 na malko po goliama ot twoiata wersia shte trugne wsichko no towa e wsepak samo predpolojeni, no probwaj nishto ne gubish '<img'>

otkys ot towa deto ti si go dal :
#include <qstyle.h>
#include <qiconview.h>
#if ! (QT_VERSION >= 222)
#error 1
#endif

int main() {
Активен