2010-11-30 3 views
-1

У меня возникла проблема с использованием QDevelop, Qt IDE (Qt версии 4.6.2) в Ubuntu 10.04 LTS Lucid Lynx. Код, с которым я пытаюсь работать, был перенесен с нового 64-битного ноутбука на мой 32-разрядный ноутбук. Обе системы работают с той же версией Ubuntu и Qt IDE. Когда я пытаюсь создать код, я получаю длинный список ошибок, которые я действительно не хочу публиковать здесь, но я буду в конце своего текста. Любая помощь будет принята с благодарностью. По какой-то причине мои блоки текста обрезаются. Я использую текст «< pre> insert здесь < slashpre> трюк с пробелом в пробеле, что я делаю неправильно? Хорошо, что мой кусок текста не отформатирован правильно, используя pre slashpre html thingies .. Формирование этого сообщения получать все перепуталось: |!QDevelop Qt IDE в Ubuntu 10.04 LTS Lucid Lynx qwt

Email Я послал мой колледж:

 
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 for building: bin/myPico # Создано qmake (2.01a) (Qt 4.6 .2): Mon Nov 22 10:56:19 2010 # Project: myPico.pro # Шаблон: app # Команда:/usr/bin/qmake-qt4 -unix -o Makefile myPico.pro ### ################################################## ######################## ####### Compiler, инструменты и опции CC = GCC CXX = г ++ ОПРЕДЕЛЯЕТ = -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED CFLAGS = -pipe -g -Wall -W -D_REENTRANT $ (ОПРЕДЕЛЕНИЯ) 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/Библиотека -L/USR/местные/QWT-5.2.1/Библиотека -lqwt-Qt4 -lQtGui -lQtCore -lpthread AR = AR CQS RANLIB = QMAKE =/USR/бен/QMAKE-Qt4 тАР = гудрона - ср КОМПРЕСС = GZIP -9f КОПИРОВАНИЯ = ф -f SED = Сед COPY_FILE = $ (COPY) COPY_DIR = $ (COPY) -r пОЛОСЫ = полоса INSTALL_FILE = установить -m 644 -p INSTALL_DIR = $ (COPY_DIR) INSTALL_PROGRAM = установить -m 755 -p DEL_FILE = гт -f SYMLINK = -f -s пер DEL_DIR = RmDir MOVE = мв -f CHK_DIR_EXISTS = тест -d MKDIR = MKDIR -p ####### каталог Output OBJECTS_DIR = построить/ ####### Files ИСТОЧНИКОВ = SRC/mainwindowimpl.cpp \ SRC/main.cpp \ SRC/picofunctions.cpp \ SRC/Thread.cpp построить/moc_mainwindowimpl.cpp ОБЪЕКТЫ = сборка/mainwindowimpl.o \ сборка/main.o \ сборка/picofunctions .o \ build/Thread.o \ build/moc_mainwindowimpl.o DIST =/usr/share/qt4/mkspecs/common/g ++.конф \ /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: .o .c .cpp .cc .cxx .C .cpp.o: $ (CXX) -c $ (CXXFLAGS) $ (INCPATH) -o "$ @" "$ Выход

Сложение:

Build (сделать) ... г ++ -c -g -pipe -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/USR/доли/qt4/mkspecs/линукс-г ++ - Я. -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_marker.h:20, из /usr/include/qt4/qwt_plot.h : 23, из сборки/ui_mainwindow.h: 29, из SRC/mainwindowimpl.h: 5, от SRC/mainwindowimpl.cpp: 1: /usr/include/qt4/qwt_text.h:20:29: ошибка : qsimplerichtext.h: Нет такого файла или каталога В файле не включены из /usr/include/qt4/qwt_plot.h:24, из сборки/ui_mainwindow.h: 29, из SRC/mainwindowimpl.h: 5, от ЦСИ /mainwindowimpl.cpp:1: /usr/include/qt4/qwt_legend.h:16:25: ошибка: qscrollview.h: Нет такого файла или каталога В файле, включенном в /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: ошибка: qintdict.h: Нет такого файла или каталога В файле, включенном в/usr/include/qt4/qwt_ plot.h: 25, из сборки/ui_mainwindow.h: 29, из SRC/mainwindowimpl.h: 5, из SRC/mainwindowimpl.cpp: 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 /include/qt4/qwt_plot.h:18, из build/ui_mainwindow.h: 29, от src/mainwindowimpl.h: 5, от 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: note: (если вы используете «-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: ошибка: объявление класса 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: На глобальном уровне scope: /usr/include/qt4/qwt_plot_dict.h:70: ошибка: недопустимое использование класса неполного типа QwtSeqDict /usr/include/qt4/qwt_plot_dict.h:22: ошибка: объявление класса QwtSeqDict /usr/include/qt4/qwt_plot_dict.h: В конструкторе 'QwtMarkerDict :: QwtMarkerDict()': /usr/include/qt4/qwt_plot_dict.h:72: ошибка: 'setAutoDelete' не был объявлен в этой области /usr/include/qt4/qwt_plot_dict.h: В глобальной области: /usr/include/qt4/qwt_plot_dict.h:75: ошибка: ожидаемый инициализатор до '' /usr/include/qt4/qwt_plot_dict.h:22: ошибка : Объявление класса QwtSeqDict /usr/include/qt4/qwt_legend.h:31: ошибка: ожидаемый инициализатор до '

ответ

0

Ух, ну, загадочно проблема просто исчезла и исчезла без меня.

Смежные вопросы