Build Ubuntu10.04 LTS Lucid Lynx qwt中的QDevelop Qt IDE

Build Ubuntu10.04 LTS Lucid Lynx qwt中的QDevelop Qt IDE,build,qt4,ubuntu-10.04,qwt,Build,Qt4,Ubuntu 10.04,Qwt,我在Ubuntu10.04 LTS Lucid Lynx中使用QDevelop、Qt IDE(Qt版本4.6.2)时遇到问题。我正在尝试使用的代码已从较新的64位笔记本电脑传输到我的32位笔记本电脑。两个系统都运行相同版本的Ubuntu和Qt IDE。当我尝试构建代码时,我会得到一长串错误,我不想在这里发布这些错误,但我会在我的文章末尾发布。任何帮助都将不胜感激。不管什么原因,我的文本块都被切断了。我正在使用“在此处插入文本空白保留技巧,我做错了什么?好的,我的构建文本块没有使用pre-slas

我在Ubuntu10.04 LTS Lucid Lynx中使用QDevelop、Qt IDE(Qt版本4.6.2)时遇到问题。我正在尝试使用的代码已从较新的64位笔记本电脑传输到我的32位笔记本电脑。两个系统都运行相同版本的Ubuntu和Qt IDE。当我尝试构建代码时,我会得到一长串错误,我不想在这里发布这些错误,但我会在我的文章末尾发布。任何帮助都将不胜感激。不管什么原因,我的文本块都被切断了。我正在使用“
在此处插入文本空白保留技巧,我做错了什么?好的,我的构建文本块没有使用pre-slashpre html内容正确格式化。这篇文章的格式变得一团糟!:|

我给我的大学发的电子邮件:

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. 我安装了32位版本的qwt-5.2.1,但它仍然没有构建,我收到了相同的错误。 附件是my.pro和make文件以及buildoutput.txt,其中显示了我的构建结果。 查看您是否发现以下信息有任何错误: 检查路径: 在myPico.pro文件中有一行:LIBS+=-L/usr/local/qwt-5.2.1/lib-lqwt-qt4(这是32位,我发现您可以键入“file”,然后键入空格和文件名,它将为您提供有关文件的信息,包括是32位还是64位。请参阅下面的注释。) Inside/usr/local/qwt-5.2.1/lib我有三个teal项:libqwt.so、libqwt.so.5和libqwt.so.5.2,还有一个绿色项:libqwt.so.5.2.1。它们都指向libqwt.so.5.2.1,是32位。 在Makefile中,INCPATH everything行似乎没有问题,但我不理解该行的最后一部分:“-I/usr/include/qt4-Ibuild-Ibuild”当我转到/usr/include/qt4时,我没有看到任何显示build的内容。这会是一个问题吗? 在网上搜索解决方案的过程中,我看到很多人都有同样的问题,但他们的解决方案是神秘的/创可贴的捷径。 注意:我想到了一个可能的问题。您让我从您的系统中复制了lib,然后我们发现它们是64位的。我安装了32位的lib,但我不知道这是否删除了我们手动复制的内容。因此我正在尝试找出我们将这些lib复制到的位置。好的,我找到了(/usr/local/qwt-5.2.1/lib)而且它们是32位的,所以安装32位的版本比64位的版本更容易。 .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 模板=应用程序 QT=gui内核 CONFIG+=qt在控制台调试时发出警告 DESTDIR=bin 对象\u DIR=构建 MOC_DIR=构建 UI_DIR=构建 FORMS=ui/mainwindow.ui HEADERS=src/mainwindowimpl.h src/picofunctions.h src/Thread.h SOURCES=src/main windowimpl.cpp src/main.cpp src/picofunctions.cpp src/Thread.cpp LIBS+=-L/usr/local/qwt-5.2.1/lib-lqwt-qt4 生成文件:

############################################################################# #用于构建的生成文件:bin/myPico #由qmake(2.01a)(Qt 4.6.2)于2010年11月22日星期一10:56:19生成 #项目:myPico.pro #模板:应用程序 #命令:/usr/bin/qmake-qt4-unix-o Makefile myPico.pro ############################################################################# #######编译器、工具和选项 CC=gcc CXX=g++ DEFINES=-DQT\u GUI\u LIB-DQT\u CORE\u LIB-DQT\u SHARED CFLAGS=-pipe-g-Wall-W-D_可重入$(定义) CXXFLAGS=-pipe-g-Wall-W-D_可重入$(定义) 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=$(子LIBS)-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 焦油=焦油-cf 压缩=gzip-9f 拷贝=cp-f SED=SED 复制\文件=$(复制) 复制\u目录=$(复制)-r 带 INSTALL_FILE=INSTALL-m 644-p 安装目录=$(复制目录) 安装程序=安装-m 755-p DEL_FILE=rm-f 符号链接=ln-f-s DEL_DIR=rmdir 移动=毫伏-f CHK_DIR_EXISTS=测试-d MKDIR=MKDIR-p #######输出目录 对象\u DIR=构建/ #######档案 SOURCES=src/mainwindowimpl.cpp\ src/main.cpp\ src/picofunctions.cpp\ src/Thread.cpp build/moc_main windowimpl.cpp OBJECTS=build/mainwindowimpl.o\ build/main.o\ 构建/picofunctions.o\ build/Thread.o\ 构建/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\u 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/features/yacc.prf\ /usr/share/qt4/mkspecs/features/lex.prf\ myPico.pro QMAKE_TARGET=myPico DESTDIR=bin/ 目标=bin/myPico 第一:全部 #######隐含规则 .后缀:.o.c.cpp.cc.cxx.c .cpp.o: $(CXX)-c$(CXXFLAGS)$(INCPATH)-o“$@”$ 生成输出:

建造。。。 g++-c-pipe-g-Wall-W-D_可重入性-DQT_GUI_LIB-DQT_CORE_LIB-DQT_共享-I/usr/share/qt4/mkspecs/linux-g++-I.-I/usr/include/qt4/QtCore-I/usr/include/qt4/QtGui-I/usr/include/qt4-Ibuild-Ibuild-o build/mainwindowimpl.o src/mainwindowimpl.cpp 在/usr/include/qt4/qwt_plot.h:17中包含的文件中 , 来自构建/ui\u mainwi