2010-11-30 44 views
-1

我在Ubuntu 10.04 LTS Lucid Lynx中使用QDevelop,Qt IDE(Qt版本4.6.2)時遇到問題。我正在嘗試使用的代碼已從新的64位筆記本電腦轉移到我的32位筆記本電腦上。兩個系統都運行相同版本的Ubuntu和Qt IDE。當我嘗試構建代碼時,我收到了很長的錯誤列表,我不想在這裏發佈這些錯誤,但是我會在我的文本結尾。任何幫助將不勝感激。無論出於何種原因,我的文本塊都被截斷了。我正在使用「< pre>在此處插入文本< slashpre>空格保留技巧,我在做什麼錯誤?確定我的構建塊文本未使用pre slashpre html thingies正確格式化。本帖子的格式化爲讓全亂了:|!QDevelop Ubuntu 10.04中的Qt IDE LTS Lucid Lynx qwt

現我把我的大學:

 
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. 

.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文件:bin/myPico #由qmake(2.01a)生成(Qt 4.6 0.2)上:週一11月22日10時56分19秒2010 #項目:myPico.pro #模板:應用 #命令:/ usr/bin中/ QMAKE-QT4 -unix -o Makefile文件myPico.pro ### ################################################## ######################## #######編譯器,工具和選項 CC = GCC CXX =克++ DEFINES = -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED CFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES) CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES) 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 = tar - CF COMPRESS = gzip的-9f COPY = CP -f SED = SED COPY_FILE = $(COPY) COPY_DIR = $(COPY)-r STRIP =條 INSTALL_FILE = -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 =測試-d MKDIR = MKDIR -p #######輸出目錄 OBJECTS_DIR =建立/ #######文件 SOURCES = SRC/mainwindowimpl.cpp \ 的src/main.cpp中\ SRC/picofunctions.cpp \ SRC/Thread.cpp建立/ moc_mainwindowimpl.cpp OBJECTS = build/mainwindowimpl.o \ build/main.o \ build/picofunctions .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 /共享/ QT4/mkspecs /特徵/ yacc.prf \ /usr/share/qt4/mkspecs/features/lex.prf \ myPico.pro QMAKE_TARGET = myPico DESTDIR =倉/ TARGET =倉/ myPico 第一:所有 #######潛規則 .SUFFIXES:.c的的.o的.cpp .CC .CXX .C .cpp.o: $(CXX)-c $(CXXFLAGS)$ (INCPATH)-o「$ @」「$

生成輸出:

生成(使)... 克++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/USR /共享/ QT4/mkspecs/Linux的克++ - 一世。 -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -Ibuild -Ibuild -o build/mainwindowimpl.o src/mainwindowimpl.cpp 從/ USR /包含/ QT4/qwt_plot.h:17 , 從構建/ ui_mainwindow.h:29, 從SRC/mainwindowimpl.h:5,從 SRC/mainwindowimpl.cpp:1: 的/ usr /包括/ QT4 /qwt_array.h:25:23:錯誤:qmemarray.h:沒有這樣的文件或目錄 來自/usr/include/qt4/qwt_plot.h的/usr/include/qt4/qwt_marker.h:20, 包含的文件:23, from src/mainwindowimpl.h:5, from src/mainwindowimpl.cpp:1: /usr/include/qt4/qwt_text.h:20:29:error : qsimplerichtext.h:沒有這樣的文件或目錄 從/usr/include/qt4/qwt_plot.h:24, 包含的文件build/ui_mainwindow.h:29, 來自src/mainwindowimpl.h:5, from src /mainwindowimpl.cpp:1: /usr/include/qt4/qwt_legend.h:16:25:error:qscrollview.h:No such file or directory 從/usr/include/qt4/qwt_legend.h包含的文件中: 25,從 /usr/include/qt4/qwt_plot.h:24, 從構建/ ui_mainwindow.h:29, 從SRC/mainwindowimpl.h:5,從 SRC/mainwindowimpl.cpp:1: /USR /include/qt4/qwt_plot_dict.h:15:22:error:qintdict.h:沒有這樣的文件或目錄 從/ usr/include/qt4/qwt_包含的文件來自build/ui_mainwindow.h的plot.h:25, :來自src/mainwindowimpl.h的29, :來自src/mainwindowimpl.cpp的5, :1: /usr/include/qt4/qwt_plot_printfilter.h:16: 24:錯誤:qvaluelist.h:沒有這樣的文件或目錄 從/usr/include/qt4/qwt_dimap.h:14, /usr/include/qt4/qwt_grid.h:15, 中包含的文件來自/ usr build/ui_mainwindow中的/include/qt4/qwt_plot.h:18, 。h:29, from src/mainwindowimpl.h:5, from src/mainwindowimpl.cpp:1: /usr/include/qt4/qwt_math.h:在函數'void qwtShiftArray(T *,int,int)' : /usr/include/qt4/qwt_math.h:162:錯誤:有要「QABS」實參不依賴模板參數,所以「QABS」的聲明必須是可用 /usr/include目錄/ QT4/qwt_math.h:162:注意:(如果你用「-fpermissive」,G ++會接受您的代碼,但是允許使用未聲明的名稱是不建議) 在文件中包括來自/usr/include/qt4/qwt_grid.h: 16,從 /usr/include/qt4/qwt_plot.h:18, 從構建/ ui_mainwindow.h:29, 從SRC/mainwindowimpl.h:5,從 SRC/mainwindowimpl.cpp:1: /usr/include/qt4/qwt_scldiv.h:在全局範圍內: /usr/include/qt4/qwt_scldiv.h:128:錯誤:ISO C++禁止聲明'QMemArray'沒有類型 /usr/include/qt4 /qwt_scldiv.h:128:error'expected';''''before'' /usr/include/qt4/qwt_plot_dict.h:22:error:'class QwtSeqDict'的聲明 /usr/include/qt4/qwt_plot_dict.h:在構造函數'QwtCurveDict :: QwtCurveDict()'中: /usr/include/qt4/qwt_plot_dict.h:66:錯誤:'setAutoDelete'未在此範圍內聲明 /usr/include/qt4/qwt_plot_dict.h:全局範圍: /usr/include/qt4/qwt_plot_dict.h:70:錯誤:使用不完整類型'class QwtSeqDict' /usr/include/qt4/qwt_plot_dict.h:22:錯誤:聲明'class QwtSeqDict' /usr/include/qt4/qwt_plot_dict.h:在構造函數'QwtMarkerDict :: QwtMarkerDict()'中: /usr/include/qt4/qwt_plot_dict.h:72:錯誤:'setAutoDelete'未在此範圍內聲明 /在全局範圍內:/ usr/include/qt4/:'class QwtSeqDict'的聲明 /usr/include/qt4/qwt_legend.h:31:error:expected initializer before'

回答

0

呃好神奇的是,這個問題剛起來,沒有我做一件事就消失了。

相關問題