Does QT for X11 include QT Creator?
-
Thank you. I followed the instructions, and I received these errors after the qmake:
qtcreator.pri:7: Unknown test function: isEqual
qtcreator.pri:19: Unknown test function: defineReplace
qtcreator.pri:32: Unknown test function: defineReplace
qtcreator.pri:38: Unknown test function: defineReplace
qtcreator.pri:51: Unknown test function: defineTest
qtcreator.pri:74: Unknown test function: isEqual
qtcreator.pri:85: Unknown test function: defineReplace
qtcreator.pri:100: Unknown test function: CONFIG
qtcreator.pri:118: Unknown replace function: re_escape
qtcreator.pri:119: Unknown replace function: cleanPath
qtcreator.pri:120: Unknown replace function: re_escape
qtcreator.pri:149: Unknown test function: isEqual
qtcreator.pri:156: Parse Error ('$$IDE_SOURCE_TREE/src/libs $$IDE_SOURCE_TREE/tools $$IDE_SOURCE_TREE/src/plugins')
qtcreator.pro:4: Unknown test function: minQtVersion
Project MESSAGE: Cannot build Qt Creator with Qt version .
Project ERROR: Use at least Qt 4.8.0. -
What does your qmake --version return ?
-
Qmake version: 1.07a (Qt 3.3.8b)
-
3.3.8 ? It's a really really old qmake... What system are you running that uses such an outdated Qt ?
-
rehl 6
-
Like the error message says, you have to first install at least Qt 4.8
-
I downloaded the Qt source code tar.gz (which is “qt-everywhere-opensource-src-5.1.0.tar.gz”) and used the instructions from http://qt-project.org/doc/qt-5.0/qtdoc/install-x11.html to make and install. I also downloaded Qt Creator source code tar.gz (which is “qt-creator-2.8.0-src.tar.gz”), looked at the README file for installation instructions, but the qmake didn’t work. So, evidently the system isn't recognizing the newer version of Qt. How can I fix that?
-
You can simply use the full path to your Qt 5.1 qmake.
Building & installing Qt from sources won't overwrite your system Qt install (that would wreak havoc)
-
Okay, thanks! That worked. After the qmake worked, I continued to follow sierdzio's instructions (shown below), and performed the "make -j9".
- cd /my/extracted/qtcreator
- mkdir build
- cd build
- qmake ../qtcreator.pro
- make -j9
After the "make -j9", it appeared to make until I received these errors:
make[3]: Leaving directory
/home/cpatterson/Downloads/qt-creator-2.8.0-src/build/src/libs/ssh' make[2]: Leaving directory
/home/cpatterson/Downloads/qt-creator-2.8.0-src/build/src/libs'
make[1]: *** [sub-libs-make_first-ordered] Error 2
make[1]: Leaving directory `/home/cpatterson/Downloads/qt-creator-2.8.0-src/build/src'
make: *** [sub-src-make_first-ordered] Error 2Do you know what's wrong with this? I'm sorry to know such a small amount, but I'm trying to learn. Thanks!
-
You'll have to post more lines, where the error currently happens
-
Is this what you mean? These are the last lines in the make.
ln -s libQtcSsh.so.1.0.0 libQtcSsh.so
ln -s libQtcSsh.so.1.0.0 libQtcSsh.so.1
ln -s libQtcSsh.so.1.0.0 libQtcSsh.so.1.0
rm -f ../../../lib/qtcreator/libQtcSsh.so.1.0.0
rm -f ../../../lib/qtcreator/libQtcSsh.so
rm -f ../../../lib/qtcreator/libQtcSsh.so.1
rm -f ../../../lib/qtcreator/libQtcSsh.so.1.0
mv -f libQtcSsh.so.1.0.0 ../../../lib/qtcreator/
mv -f libQtcSsh.so ../../../lib/qtcreator/
mv -f libQtcSsh.so.1 ../../../lib/qtcreator/
mv -f libQtcSsh.so.1.0 ../../../lib/qtcreator/
make[3]: Leaving directory/home/cpatterson/Downloads/qt-creator-2.8.0-src/build/src/libs/ssh' make[2]: Leaving directory
/home/cpatterson/Downloads/qt-creator-2.8.0-src/build/src/libs'
make[1]: *** [sub-libs-make_first-ordered] Error 2
make[1]: Leaving directory `/home/cpatterson/Downloads/qt-creator-2.8.0-src/build/src'
make: *** [sub-src-make_first-ordered] Error 2 -
Don't you have other lines that contains "error" ?
-
No. Unless there are some that have rolled off the command window (which retains 680 lines).
-
You can redirect the output to a file and inspect it to see where the error happened
-
You are right. There are several errors. Here are some of them:
g++ -c -pipe -Werror -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_CREATOR -DQML_BUILD_STATIC_LIB -DQBS_LIBRARY -DSRCDIR="/home/cpatterson/Downloads/qt-creator-2.8.0-src/src/shared/qbs/src/lib" -DQBS_VERSION="1.0.1" -DQT_NO_DEBUG -DQT_XML_LIB -DQT_CONCURRENT_LIB -DQT_TESTLIB_LIB -DQT_SCRIPT_LIB -DQT_CORE_LIB -DQT_TESTCASE_BUILDDIR="/home/cpatterson/Downloads/qt-creator-2.8.0-src/build/src/shared/qbs/src/lib" -I/usr/local/Qt-5.1.0/mkspecs/linux-g++ -I/home/cpatterson/Downloads/qt-creator-2.8.0-src/src/shared/qbs/src/lib -I/home/cpatterson/Downloads/qt-creator-2.8.0-src/src/shared/qbs/src/lib -I/home/cpatterson/Downloads/qt-creator-2.8.0-src/src/shared/qbs/src -I/usr/local/Qt-5.1.0/include -I/usr/local/Qt-5.1.0/include/QtXml -I/usr/local/Qt-5.1.0/include/QtConcurrent -I/usr/local/Qt-5.1.0/include/QtTest -I/usr/local/Qt-5.1.0/include/QtScript -I/usr/local/Qt-5.1.0/include/QtCore -I. -I. -o project.o /home/cpatterson/Downloads/qt-creator-2.8.0-src/src/shared/qbs/src/lib/api/project.cpp
.
.
.
cc1plus: warnings being treated as errors
/usr/local/Qt-5.1.0/include/QtCore/qbytearray.h:433: error: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules
/usr/local/Qt-5.1.0/include/QtCore/qbytearray.h:438: error: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules
/usr/local/Qt-5.1.0/include/QtCore/qarraydata.h:104: error: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules
/usr/local/Qt-5.1.0/include/QtCore/qgenericatomic.h:96: error: dereferencing pointer ‘<anonymous>’ does break strict-aliasing rules
/usr/local/Qt-5.1.0/include/QtCore/qbytearray.h:395: note: initialized from here
make[3]: *** [project.o] Error 1
make[3]: *** Waiting for unfinished jobs....
.
.
.
/usr/local/Qt-5.1.0/include/QtCore/qstring.h:918: note: initialized from here
make[3]: Leaving directory `/home/cpatterson/Downloads/qt-creator-2.8.0-src/build/src/shared/qbs/src/lib'
make[2]: *** [sub----shared-qbs-src-lib-make_first] Error 2
make[2]: *** Waiting for unfinished jobs.... -
You need to add it to PATH, or use directly:
@either
export PATH=/path/to/qmake:$PATH
or
/path/to/qmake/qmake myProject.pro
@