nyxee
nyxee

Reputation: 2811

Building QT 5 on Ubuntu

Following the normal installation procedures:

./configure -prefix $PWD/qtbase -opensource -confirm-license 
make
make docs
make install docs

I ended up with some ~12GB size in the folder where I extracted my qt-everywhere-opensource-src-5.6.0-alpha.tar.gz for Ubuntu.

I deleted that build and tried

./configure -prefix /usr/local/qt-5.6.0-alpha/ -opensource\
-confirm-license -developer-build
make
make install

followed by

make docs
make install docs

This time, just before trying to install docs, my installation folder (under /usr/local) and my source folder were normal sizes before trying to install docs. After building and installing docs, my source folder was 20 GB, and i noticed a lot of HEAVY src and test folders under each first level directory in my installation folder.

I don't know where to find QT creater under the build too. A file search was futile.

Does anyone see if I'm doing anything wrong?

Upvotes: 2

Views: 3105

Answers (1)

Acha Bill
Acha Bill

Reputation: 1255

Firstly, For not including test, add -nomake tests to configure command.

You can do a make clean after compiling to save a lot of space.

Compiling QT from source does not come with QT Creator. You have to install it separately and follow this procedure to use it with your compiled Qt.

Download Qt Creator: http://www.qt.io/download-open-source/ and install it.

  1. Start Qt Creator
  2. Go to Tools, Options
  3. Select Build and Run from the list on the left.
  4. Go to "Qt Versions" tab
  5. Click on "Add" and select qmake from the folder where your bin in qtbase
  6. Click "Apply"
  7. Go to "Kits" tab
  8. Click "Add"
  9. Give it a name, choose the appropriate compiler
  10. Click OK

Upvotes: 1

Related Questions