Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Qt5]Building Qt5 on Ubuntu 12.04[solved]

[Qt5]Building Qt5 on Ubuntu 12.04[solved]

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 4 Posters 14.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    akrynski
    wrote on last edited by
    #1

    @Build steps – Linux XCB (Ubuntu 12.04)

    Install dependencies of Qt 4 “sudo apt-get build-dep libqt4-dev”
    Install additional dependencies “sudo apt-get install gperf bison” (needed to compile QtWebkit)
    Install xcb dependencies “sudo apt-get install libxcb1 libxcb1-dev libx11-xcb1 libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev libxcb-shm0 libxcb-shm0-dev libxcb-icccm4 libxcb-icccm4-dev libxcb-sync0 libxcb-sync0-dev libxcb-xfixes0-dev libxrender-dev libxcb-shape0-dev”
    cd to the directory where you extracted the tarball and run ./configure (with the options suggested above)
    Run “./build” and wait for some time. If you have multiple cores, use ./build -j <number of cores> to speed up the build process
    

    @
    DONE!

    Required build tools:
    @Required build tools

    Perl 5.8 or later
    Python 2.7 or later@
    

    Available build tools:
    @VPCEC3C5E:~$ perl -V
    Summary of my perl5 (revision 5 version 14 subversion 2) configuration:@

    I have Python 2.7.3 (default, Apr 20 2012, 22:39:59)

    And configure error:
    @VPCEC3C5E:~/qt-everywhere$ ./configure
    bash: ./configure: /usr/bin/perl^M: zły interpreter: Nie ma takiego pliku ani katalogu
    (it means: bad interpreter: there is no such file nor directory)@

    Is there any way to build it? Where is an error? Why ^M is added to command line?
    Dos2unix is a good solution, but why? Why me? Building instructions for linux? Ha, ha, ha! ;)

    Greets :D
    A.K.

    --
    Pozdrawiam i do następnego...
    Greetings and till next...

    1 Reply Last reply
    0
    • W Offline
      W Offline
      william
      wrote on last edited by
      #2

      It seems that you use the zip archive format which is for windows platform. Use the bz2 or gz format instead.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Skylar
        wrote on last edited by
        #3

        I use to build QT5 from git directly on ubuntu 11.10 and 12.04, all running smoothly.

        http://qt-project.org/wiki/Building-Qt-5-from-Git

        In most cases, the bug is mine. But of the remaining lines are correct.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          akrynski
          wrote on last edited by
          #4

          [quote author="william" date="1342663151"]It seems that you use the zip archive format which is for windows platform. Use the bz2 or gz format instead.[/quote]

          Yes, I do. I even didn't know there is any difference. And IMO it shouldn't be.

          TNX guys.

          --
          Pozdrawiam i do następnego...
          Greetings and till next...

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tobias.hunger
            wrote on last edited by
            #5

            Maybe it is a localization issue where the script expects english output and gets whatever language you are using.

            try running "LANG=C LC_ALL=C ./configure" to force the non-localized strings to appear.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved