2010-11-30 7 views
-1

J'ai un problème avec QDevelop, Qt IDE (Qt version 4.6.2) sous Ubuntu 10.04 LTS Lucid Lynx. Le code que j'essaie de travailler a été transféré d'un ordinateur portable 64 bits plus récent à mon ordinateur portable 32 bits. Les deux systèmes exécutent la même version d'Ubuntu et de Qt IDE. Quand j'essaye de construire le code, j'obtiens une longue liste d'erreurs, que je ne veux pas vraiment publier ici, mais je le ferai à la fin de mon texte. Toute aide serait grandement appréciée. Pour une raison quelconque, mes blocs de texte sont coupés. J'utilise le "< pré> insérer le texte ici < slashpre> truc de retenue d'espace blanc, qu'est-ce que je fais mal? Ok mon bloc de texte de construction n'est pas formaté correctement en utilisant les thingies pre slashpre html .. La mise en forme de ce poste est obtenir tout foiré: |!QDevelop Qt IDE sous Ubuntu 10.04 LTS Lucid Lynx qwt

Email J'ai envoyé mon collège:

 
I installed the 32bit version of qwt-5.2.1 and it still isn’t building, I get the same errors. 

Attached are my .pro and make files as well as buildoutput.txt showing the results of my build. 

See if you see anything wrong with any of the information below: 

Checking paths: 

In the myPico.pro file there is a line: LIBS += -L/usr/local/qwt-5.2.1/lib -lqwt-qt4 (This is 32bit, I found you can type “file” then space and a file name, it will give you information about the file including if it’s 32bit or 64bit. See note below.) 

Inside /usr/local/qwt-5.2.1/lib I have three items that are teal: libqwt.so, libqwt.so.5 and libqwt.so.5.2 and one green item: libqwt.so.5.2.1. They all point to libqwt.so.5.2.1 and it’s 32bit. 

Inside the Makefile, the line INCPATH everything seems ok, but I don’t understand the last part of the line: “-I/usr/include/qt4 -Ibuild -Ibuild” When I go to /usr/include/qt4 I don’t see anything that says build. Could this be an issue? 

In searching the web for solutions I see a lot of people having the same issue but their solutions are cryptic/Band-Aid short cuts. 

Note: I thought of a possible issue. You had me copy the libs from your system and then we found out they were 64 bit. I installed the 32 bit ones but I don’t know if that removed what we copied manually. So I am trying to figure out where we copied those libs to. Ok I found it (/usr/local/qwt-5.2.1/lib) and they’re 32 bit, so installing the 32 bit overwrote the 64bit versions. 

fichier .pro:

 
TEMPLATE = app 
QT = gui core 
CONFIG += qt warn_on console debug 
DESTDIR = bin 
OBJECTS_DIR = build 
MOC_DIR = build 
UI_DIR = build 
FORMS = ui/mainwindow.ui 
HEADERS = src/mainwindowimpl.h src/picofunctions.h src/Thread.h 
SOURCES = src/mainwindowimpl.cpp src/main.cpp src/picofunctions.cpp src/Thread.cpp 
LIBS += -L/usr/local/qwt-5.2.1/lib -lqwt-qt4 

Makefile:

######################################################### ############################# # Makefile pour la construction: bin/myPico # Généré par qmake (2.01a) (Qt 4.6 .2) sur: Lun Nov 22 10:56:19 2010 # Projet: myPico.pro # Modèle: app # Commande:/usr/bin/qmake-qt4 -unix -o Makefile myPico.pro ### ################################################## ######################## ####### compilateur, des outils et des options CC = gcc CXX = g ++ DEFINIT = -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED CFLAGS = -pipe -g -Wall -W -D_REENTRANT $ (DEFINIS) CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $ (DEFINIS) INCPATH = -I/usr/share/qt4/mkspecs/linux-g ++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Ibuild -Ibuild LINK = g ++ LFLAGS = LIBS = $ (SUBLIBS) -L/usr/lib -L/usr/local/qwt-5.2.1/lib -lqwt-qt4 -lQtGui -lQtCore -lpthread AR = ar CQS = RANLIB qMake =/usr/bin/qmake-qt4 tAR = goudron - cf COMPRESS = gzip -9f COPY = cp -f SED = sed COPY_FILE = $ (COPY) COPY_DIR = $ (COPY) -r sTRIP = bande INSTALL_FILE = install -m -p 644 INSTALL_DIR = $ (COPY_DIR) INSTALL_PROGRAM = install -m 755 -p DEL_FILE = rm -f SYMLINK = ln -s -f DEL_DIR = rmdir DEPLACER = mv -f CHK_DIR_EXISTS = test -d MKDIR = mkdir -p ####### répertoire de sortie OBJECTS_DIR = construire/ ####### fichiers SOURCES = src/mainwindowimpl.cpp \ src/main.cpp \ src/picofunctions.cpp \ src/Thread.cpp build/moc_mainwindowimpl.cpp OBJETS = build/mainwindowimpl.o \ build/main.o \ build/picofonctions .o \ build/Thread.o \ build/moc_mainwindowimpl.o DIST =/usr/share/qt4/mkspecs/commun/g ++.conf \ /usr/share/qt4/mkspecs/common/unix.conf \ /usr/share/qt4/mkspecs/common/linux.conf \ /usr/share/qt4/mkspecs/qconfig.pri \ /usr/share/qt4/mkspecs/fonctionnalités/qt_functions.prf \ /usr/share/qt4/mkspecs/features/qt_config.prf \ /usr/share/qt4/mkspecs/features/exclusive_builds.prf \ /usr/share/qt4/mkspecs/features/default_pre.prf \ /usr/share/qt4/mkspecs/features/debug.prf \ /usr/share/qt4/mkspecs/features/default_post.prf \ /usr/share/qt4/mkspecs/features/warn_on.prf \ /usr/share/qt4/mkspecs/features/qt.prf \ /usr/share/qt4/mkspecs/features/unix/thread.prf \ /usr/share/qt4/mkspecs/features/moc.prf \ /usr/share/qt4/mkspecs/features/resources.prf \ /usr/share/qt4/mkspecs/features/uic.prf \ /usr/share/Qt4/mkspecs/caractéristiques/yacc.prf \ /usr/share/qt4/mkspecs/features/lex.prf \ myPico.pro QMAKE_TARGET = myPico DESTDIR = bin/ target = bin/myPico d'abord: tous ####### règles implicites .SUFFIXES: .o .c cpp .cc .cxx .C .cpp.o: $ (CXX) -c $ (CXXFLAGS) $ (INCPATH) -o "$ @" "$

sortie de la construction:

Construction (faire) ... g ++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/Qt4/mkspecs/linux-g ++ - JE. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Ibuild -Ibuild -o construit/mainwindowimpl.o src/mainwindowimpl.cpp Dans le fichier inclus de/usr/include/Qt4/qwt_plot.h: 17 , de construction/ui_mainwindow.h: 29, de src/mainwindowimpl.h: 5, de src/mainwindowimpl.cpp: 1: /usr/include/Qt4 /qwt_array.h:25:23: erreur: qmemarray.h: aucun fichier ou répertoire de ce type Dans le fichier fourni par /usr/include/qt4/qwt_marker.h:20, from /usr/include/qt4/qwt_plot.h : 23, à partir de build/ui_mainwindow.h: 29, à partir de src/mainwindowimpl.h: 5, à partir de src/mainwindowimpl.cpp: 1: /usr/include/qt4/qwt_text.h:20:29: erreur : qsimplerichtext.h: Aucun fichier ou répertoire Dans le fichier inclus à partir /usr/include/qt4/qwt_plot.h:24, de construction/ui_mainwindow.h: 29, de src/mainwindowimpl.h: 5, de src /mainwindowimpl.cpp:1: /usr/include/qt4/qwt_legend.h:16:25: erreur: qscrollview.h: aucun fichier ou répertoire de ce type Dans le fichier fourni par /usr/include/qt4/qwt_legend.h: 25, de /usr/include/qt4/qwt_plot.h:24, de construction/ui_mainwindow.h: 29, de src/mainwindowimpl.h: 5, de src/mainwindowimpl.cpp: 1: /usr /include/qt4/qwt_plot_dict.h:15:22: erreur: qintdict.h: aucun fichier ou répertoire de ce type Dans le fichier inclus de/usr/include/qt4/qwt_ plot.h: 25, de construction/ui_mainwindow.h: 29, de src/mainwindowimpl.h: 5, de src/mainwindowimpl.cpp: 1: /usr/include/qt4/qwt_plot_printfilter.h:16: 24: erreur: qvaluelist.h: aucun fichier ou répertoire de ce type Dans le fichier inclus de /usr/include/qt4/qwt_dimap.h:14, de /usr/include/qt4/qwt_grid.h:15, à partir de/usr /include/qt4/qwt_plot.h:18, à partir de build/ui_mainwindow.h: 29, à partir de src/mainwindowimpl.h: 5, à partir de src/mainwindowimpl.cpp: 1: /usr/include/qt4/qwt_math.h: Dans la fonction 'void qwtShiftArray (T *, int, int)' : /usr/include/qt4/qwt_math.h:162: erreur: il n'y a pas d'arguments 'QABS' qui dépendent d'un paramètre template, donc une déclaration de 'QABS' doit être disponible /usr/include/qt4/qwt_math.h: 162: remarque: (si vous utilisez '-fpermissive', G ++ acceptera votre code, mais autoriser l'utilisation d'un nom non déclaré est obsolète) Dans le fichier inclus de /usr/include/qt4/qwt_grid.h: 16, de /usr/include/qt4/qwt_plot.h:18, de construction/ui_mainwindow.h: 29, de src/mainwindowimpl.h: 5, de src/mainwindowimpl.cpp: 1: /usr/include/qt4/qwt_scldiv.h: Au niveau global: /usr/include/qt4/qwt_scldiv.h:128: erreur: ISO C++ interdit la déclaration de 'QMemArray' sans type /usr/include/qt4 /qwt_scldiv.h:128: erreur: attendu ';' avant '' /usr/include/qt4/qwt_plot_dict.h:22: erreur: déclaration de 'classe QwtSeqDict' /usr/include/qt4/qwt_plot_dict.h: Dans le constructeur 'QwtCurveDict :: QwtCurveDict()': /usr/include/qt4/qwt_plot_dict.h:66: erreur: 'setAutoDelete' n'a pas été déclaré dans cette portée /usr/include/qt4/qwt_plot_dict.h: A global scope: /usr/include/qt4/qwt_plot_dict.h:70: erreur: utilisation invalide du type incomplet 'class QwtSeqDict' /usr/include/qt4/qwt_plot_dict.h:22: erreur: déclaration de 'class QwtSeqDict' /usr/include/qt4/qwt_plot_dict.h: Dans le constructeur 'QwtMarkerDict :: QwtMarkerDict()': /usr/include/qt4/qwt_plot_dict.h:72: erreur: 'setAutoDelete' n'a pas été déclaré dans cette portée /usr/include/qt4/qwt_plot_dict.h: Au niveau global: /usr/include/qt4/qwt_plot_dict.h:75: erreur: initialiseur attendu avant '' /usr/include/qt4/qwt_plot_dict.h:22: erreur : déclaration de la 'classe QwtSeqDict' /usr/include/qt4/qwt_legend.h:31: erreur: initialiseur attendu avant '

Répondre

0

Euhh bien mystérieusement le problème vient de disparaître sans que je fasse une seule chose.

Questions connexes