Does QT for X11 include QT Creator?
-
HI, I am new to QT, and I installed QT 5.1.0 for X11 (qt-everywhere-opensource-src-5.0.2.tar.gz) on my rhel 6 machine. This includes Designer, Assistant, etc., and I assumed it also included Creator but I can't find it anywhere. Do I need to download QT Creator separately? If so, does the QT 5.1.0 that I just installed have all the necessary libraries for QT Creator? Thanks!
-
No, source packages for Qt contain Qt libraries only. Qt Creator is a separate product (but is shipped with prebuilt Qt SDKs). And yes, the libraries you have are enough for Creator. Just check out it's README for instructions.
-
[quote author="Andre" date="1375773035"]QT is usually associated with Apple's QuickTime, and we don't want that association do we?[/quote]
Hell no :) But I grew tired of seeing that being pointed out everywhere, so I stopped paying attention when people get it "wrong". It is not a big mistake anyway. And Google searches in lowercase only, so for them Qt and QT are equal.
-
Sierdzio, thanks for the help. I downloaded Creator and opened the README file for installation instructions. But the qmake -r command wouldn't work. There isn't a Makefile at the top level. I found a Makefile.linux in one of the subdirectories. Should I use that?
-
Hi,
Did you download the sources or the pre-built version of QtCreator ?
-
I downloaded Qt Creator source code tar.gz (which is "qt-creator-2.8.0-src.tar.gz").
-
It should work, then. This is what I usually do to build QtC:
@
cd /my/extracted/qtcreator
mkdir build
cd build
qmake ../qtcreator.pro
make -j9
@That's it. So far it has worked every time, also when building with QBS enabled.
-
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