2010-11-30 5 views
-1

ich ein Problem habe das QDevelop, Qt-IDE (Qt-Version 4.6.2) in Ubuntu 10.04 LTS Lucid Lynx verwenden. Der Code, mit dem ich arbeiten möchte, wurde von einem neueren 64-Bit-Laptop auf meinen 32-Bit-Laptop übertragen. Beide Systeme führen dieselbe Version von Ubuntu und Qt IDE aus. Wenn ich versuche, den Code zu erstellen, bekomme ich eine lange Liste von Fehlern, die ich hier nicht wirklich posten möchte, aber ich werde am Ende meines Textes sehen. Jede Hilfe würde sehr geschätzt werden. Aus irgendeinem Grund werden meine Textblöcke abgeschnitten. Ich benutze die "< pre> Text hier einfügen < slashpre> White Space Retainer Trick, was mache ich falsch? Ok mein Build Stück Text wird nicht richtig formatiert mit Hilfe der Pre slashpre HTML-Thingsies .. Die Formatierung dieser Post ist bekommen alle verkorkste: |!QDevelop Qt IDE in Ubuntu 10.04 LTS Lucid Lynx qwt

E-Mail schickte ich meine College:

 
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. 

.proDatei:

 
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 für den Bau: bin/myPico # von qmake generiert (2.01a) (Qt 4.6 .2) am: Mo 22. November 10:56:19 2010 # Projekt: myPico.pro # Vorlage: app # Befehl:/usr/bin/qmake-qt4 -unix -o Makefile myPico.pro ### ######################################################## ######################## ####### Compiler, Tools und Optionen CC = gcc CXX = g ++ DEFINIERT = -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED CFLAGS = -pipe -g -Wall -W -D_REENTRANT $ (DEFINES) CXXFLAGS = -pipe -g -Wand -W-D_REENTRANT $ (DEFINIERT) INCPATH = -I/usr/teilen/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 = tar - cf COMPRESS = gzip -9f COPY = cp -f SED = sed COPY_FILE = $ (COPY) COPY_DIR = $ (COPY) -r STRIP = Streifen install_file = install -m 644 -p INSTALL_DIR = $ (COPY_DIR) INSTALL_PROGRAM = install -m 755 -p DEL_FILE = rm -f SYMLINK = ln -f -s DEL_DIR = rmdir MOVE = mv -f CHK_DIR_EXISTS = test -d MKDIR = mkdir -p ####### Ausgabeverzeichnis OBJECTS_DIR = build/ ####### Dateien QUELLEN = src/mainwindowimpl.cpp \ src/main.cpp \ src/picofunctions.cpp \ src/Thread.cpp bauen/moc_mainwindowimpl.cpp OBJEKTE = build/mainwindowimpl.o \ build/main.o \ build/picofunktionen .o \ build/Thread.o \ build/moc_mainwindowimpl.o DIST =/usr/share/qt4/mkspecs/common/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/features/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/Funktionen/yacc.prf \ /usr/share/qt4/mkspecs/features/lex.prf \ myPico.pro QMAKE_TARGET = myPico DESTDIR = bin/TARGET = bin/myPico zuerst: alle ####### Implizite Regeln .SUFFIXES: .o .c CPP .cc .cxx .C .cpp.o: $ (CXX) -c $ (CXXFLAGS) $ (INCPATH) -o "$ @" "$

Build-Ausgabe:

Build (machen) ... g ++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g ++ - ICH. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Ibuild -Ibuild -o build/mainwindowimpl.o src/mainwindowimpl.cpp In der Datei enthalten von/usr/include/qt4/qwt_plot.h: 17, von build/ui_mainwindow.h: 29, von src/mainwindowimpl.h: 5, von src/mainwindowimpl.cpp: 1: /usr/include/qt4 /qwt_array.h:25:23: Fehler: qmemarray.h: Keine solche Datei oder Verzeichnis In der Datei enthalten von /usr/include/qt4/qwt_marker.h:20, von /usr/include/qt4/qwt_plot.h : 23, von build/ui_mainwindow.h: 29, von src/mainwindowimpl.h: 5, von src/mainwindowimpl.cpp: 1: /usr/include/qt4/qwt_text.h:20:29: error : qsimpleretext.h: Keine solche Datei oder Verzeichnis In der Datei enthalten von/usr/include/qt4/qwt_plot.h:24, von build/ui_mainwindow.h: 29, von src/mainwindowimpl.h: 5, von src /mainwindowimpl.cpp:1: /usr/include/qt4/qwt_legend.h:16:25: Fehler: qscrollview.h: Keine solche Datei oder Verzeichnis In der Datei enthalten von /usr/include/qt4/qwt_legend.h: 25, aus /usr/include/qt4/qwt_plot.h:24, von build/ui_mainwindow.h: 29, von src/mainwindowimpl.h: 5, von src/mainwindowimpl.cpp: 1: /usr /include/qt4/qwt_plot_dict.h:15:22: Fehler: qintdict.h: Keine solche Datei oder kein Verzeichnis In der Datei enthalten von/usr/include/qt4/qwt_ plot.h: 25, von build/ui_mainwindow.h: 29, von src/mainwindowimpl.h: 5, von src/mainwindowimpl.cpp: 1: /usr/include/qt4/qwt_plot_printfilter.h:16: 24: Fehler: qvaluelist.h: Keine solche Datei oder kein Verzeichnis In der Datei enthalten von /usr/include/qt4/qwt_dimap.h:14, von /usr/include/qt4/qwt_grid.h:15, von/usr /include/qt4/qwt_plot.h:18, von build/ui_mainwindow.h: 29, von src/mainwindowimpl.h: 5, von src/mainwindowimpl.cpp: 1: /usr/include/qt4/qwt_math.h: In der Funktion 'void qwtShiftArray (T *, int, int)' : /usr/include/qt4/qwt_math.h:162: Fehler: Es gibt keine Argumente für 'QABS', die von einem Vorlagenparameter abhängen, daher muss eine Deklaration von 'QABS' verfügbar sein /usr/include/qt4/qwt_math.h: 162: note: (Wenn Sie '-fpermissive' verwenden, akzeptiert G ++ Ihren Code, aber die Verwendung eines nicht deklarierten Namens ist veraltet) In der Datei enthalten von /usr/include/qt4/qwt_grid.h: 16, aus /usr/include/qt4/qwt_plot.h:18, von build/ui_mainwindow.h: 29, von src/mainwindowimpl.h: 5, von src/mainwindowimpl.cpp: 1: 01.235./usr/include/qt4/qwt_scldiv.h: Im globalen Gültigkeitsbereich: /usr/include/qt4/qwt_scldiv.h:128: Fehler: ISO C++ verbietet die Deklaration von 'QMemArray' ohne Typ /usr/include/qt4 /qwt_scldiv.h:128: Fehler: erwartet ';' vor '' /usr/include/qt4/qwt_plot_dict.h:22: Fehler: Deklaration von 'Klasse QwtSeqDict' /usr/include/qt4/qwt_plot_dict.h: Im Konstruktor 'QwtCurveDict :: QwtCurveDict()': /usr/include/qt4/qwt_plot_dict.h:66: Fehler: 'setAutoDelete' wurde in diesem Bereich nicht deklariert /usr/include/qt4/qwt_plot_dict.h: At global Umfang: /usr/include/qt4/qwt_plot_dict.h:70: Fehler: ungültige Verwendung des unvollständigen Typs 'Klasse QwtSeqDict' /usr/include/qt4/qwt_plot_dict.h:22: Fehler: Deklaration von 'Klasse QwtSeqDict' /usr/include/qt4/qwt_plot_dict.h: Im Konstruktor 'QwtMarkerDict :: QwtMarkerDict()': /usr/include/qt4/qwt_plot_dict.h:72: Fehler: 'setAutoDelete' wurde in diesem Bereich nicht deklariert /usr/include/qt4/qwt_plot_dict.h: Im globalen Gültigkeitsbereich: /usr/include/qt4/qwt_plot_dict.h:75: Fehler: erwartete Initialisierung vor '' /usr/include/qt4/qwt_plot_dict.h:22: Fehler : Deklaration der 'Klasse QwtSeqDict' /usr/include/qt4/qwt_legend.h:31: Fehler: erwartete Initialisierer vor '

Antwort

0

Uhh gut auf geheimnisvolle Weise das Problem nur auf und verschwand ohne mich eine einzige Sache zu tun.