Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8320523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T22:40:43+00:00 2026-06-08T22:40:43+00:00

I am trying to build QT libraries 4.8.2 on Ubuntu Linux by following the

  • 0

I am trying to build QT libraries 4.8.2 on Ubuntu Linux by following the instruction mentioned in the documentation .

This is the second time I am trying building… I tried earlier also and when build process did not complete even after 12-13 hrs I thought something is wrong so I started from beginning.

It’s been almost 24 hrs I issued make command (In the second attempt) the build process is still going on. Terminal is not showing any error either.

Does building QT libraries on Ubuntu Linux really takes this much time or I have missed something.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T22:40:44+00:00Added an answer on June 8, 2026 at 10:40 pm

    Building Qt takes a couple of hours even on a fast system if you only do the default non-parallel build. By default it also pulls in lots of libraries that you may not need.

    So the first thing to try is make -j to do parallel builds. If that is still taking too long then try to slim down the libraries Qt generates. Do you need QtWebKit for instance? If you plan on using an embedded web browser in your application then you’ll want it. If not then you can halve the time of your build. Type configure --help to see the options. Some useful ones that can reduce the build time are:

    NOTE: some of the following options are no longer applicable in Qt5

    • -fast – Use this if you are just using Qt rather than developing Qt itself
    • -no-webkit – If you don’t need the embedded web browser this makes a huge difference
    • -release – If you don’t need the debug libraries then this can be quicker
    • -no-qt3-support – you won’t need this for a new project
    • -nomake examples – don’t build the examples
    • -nomake demos – don’t build the demos
    • -no-declarative – If you’re not using the QtQuick APIs then omit this
    • -nomake docs – don’t build the documentation (this can save a lot of time)

    If you’re having to pay for the time in this Amazon instance then another option is to create a local Ubuntu machine (on a spare machine or in a virtual machine) and tweak the options there until you get something that works, then use that build configuration on your Amazon instance.

    EDIT:

    In Qt5, the project changed to use git submodules, so if you are building from a git checkout then the default behaviour is to clone all the submodules, which will add substantially to your build times if there are modules you don’t need. There is a script init-repository that is part of the qt5 repository. You can use that to trim your local repository to only contain the submodules you need. So for instance:

    git clone https://git.gitorious.org/qt/qt5.git
    cd qt5
    ./init-repository --module-subset="qtbase qtdeclarative qtquick1"
    configure --your-options-here
    make -j
    

    On my machine I can do a basic build of qtbase in about 10 minutes

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my first time using CMake and I'm trying to build QJSon, a
I am following the explanation in this page and this page trying to build
I am trying to build omniORB libraries on RHEL 5.5. I tried running configure
I'm trying to build a rather longwinded chain of programs and libraries that culminates
Trying to build openssl-fips-2.0 with NDK, before I was lucky found this link and
I am trying to build a simple iPhone app that calls several static libraries.
I am trying to build some big libraries, like Boost and OpenCV , from
I'm following the Getting started tutorial from the Boost website. I'm trying to build
I'm currently trying to build an android application using the Android 4.1.2 Java libraries.
I am trying to install hmatrix on my Ubuntu Linux machine (don't know if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.