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. Installing with Linux
Forum Updated to NodeBB v4.3 + New Features

Installing with Linux

Scheduled Pinned Locked Moved Installation and Deployment
19 Posts 4 Posters 8.5k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    clochydd
    wrote on last edited by
    #6

    I presume this has to do with the Creator setup.
    First thing: Is it possible to select one of the examples and build it?
    And you should verify if compiler, linker, kits are configured: "Configure Qt Creator ":http://qt-project.org/forums/viewthread/41726/

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #7

      I think you might be missing some dependencies, like 7z and XKB.

      (Z(:^

      1 Reply Last reply
      0
      • Q Offline
        Q Offline
        QT_fan
        wrote on last edited by
        #8

        [quote author="Clochydd" date="1398170192"]I presume this has to do with the Creator setup. First thing: Is it possible to select one of the examples and build it? And you should verify if compiler, linker, kits are configured: "Configure Qt Creator ":http://qt-project.org/forums/viewthread/41726/[/quote]

        I cannot access any examples to build.

        The link you included did not work for me; it led to an unrelated post.

        The website section on configuring Qt Creator was informative but I couldn't follow any of the instructions since I couldn't enter anything from the keyboard.

        The installation displayed a message that the help plugin had errors and could not be loaded. I wonder if there was anything else missing. The title bar did not appear either. Related problem maybe?

        The only success I've had with Qt Creator was installing it under Windows 7. No luck under Linux. Perhaps I should ask if anyone has installed it under Linux and advise me what version of Linux you have and any tips/tricks as to how you did it.

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          QT_fan
          wrote on last edited by
          #9

          [quote author="sierdzio" date="1398171267"]I think you might be missing some dependencies, like 7z and XKB.[/quote]

          Could you explain a little more about '7z' and XKB'? What are they, where can I find them and what would I do with them?

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #10

            See the dependencies "here":http://qt-project.org/wiki/Building_Qt_5_from_Git. Not all are needed when installing the prebuilt package.

            7z is a type of zip compression. XKB is X keyboard extension. Both are pretty standard stuff for Linux distros, but maybe - just maybe - you don't have them installed.

            (Z(:^

            1 Reply Last reply
            0
            • C Offline
              C Offline
              clochydd
              wrote on last edited by
              #11

              Apologise for the bad link - "this ":http://qt-project.org/doc/qtcreator-3.1/creator-configuring.html is a correct one.

              bq. The only success I’ve had with Qt Creator was installing it under Windows 7. No luck under Linux. Perhaps I should ask if anyone has installed it under Linux and advise me what version of Linux you have and any tips/tricks as to how you did it.

              I have installed Qt5 on several Ubuntu versions (Kubuntu, with KDE) and had no problems with any. Usually most Build options are automatically preset but I suggest you should look at the configuration following the link provided. If you still suffer with that problem please come back to the forum.

              1 Reply Last reply
              0
              • Q Offline
                Q Offline
                QT_fan
                wrote on last edited by
                #12

                I installed XUbuntu 14.04 on my laptop and was able to use the online installer for Qt5. The welcome screen was blank but I was able to create a new project. However, on the build/run screen there were no default selections for kits, Qt versions or compilers. Either nothing was auto-detected or what was displayed showed the red stop sign icon. When I reviewed these selections on my desktop under Windows they all had defaults which worked fine. Now I need to figure out how to do this under Linux. What should I do next?

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  clochydd
                  wrote on last edited by
                  #13

                  I always use Kubuntu and all Qt setups worked perfectly.
                  What I suggest is: With your Xubuntu install try to setup the kits with compiler and linker manually following the link above or test the installation of Kubuntu 14.04.

                  1 Reply Last reply
                  0
                  • Q Offline
                    Q Offline
                    QT_fan
                    wrote on last edited by
                    #14

                    Thanks for the suggestions.

                    I reviewed the link on configuring Qt Creator. The first sentence was:

                    “If you install Qt Creator as part of a Qt installation, you should be able to use it out-of-the-box, with the default settings and configuration options.”

                    This was my experience with Qt Creator under Windows 7. I hoped it would be the same under Linux but I encountered multiple difficulties. The following was what I found under Build & Run.

                    Kits: There was one auto-detected: Desktop Qt 5.2.1 GCC 32 bit(default). This was preceded by the red stop icon. What does this mean?

                    Compiler: None were auto-detected but the 'Add' menu listed Linux ICC, MinGW, GCC, Clang, Custom, and QCC. The only one I could find was 'GCC' so I added it with the appropriate path.

                    Qt Versions: Four were auto-detected but all preceded by the red stop icon. All of these produced the message: “No compiler can produce code for this Qt version. Please define one or more compilers.”

                    I'm not sure what to do about this. What settings did you use?

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      clochydd
                      wrote on last edited by
                      #15

                      Hi, these are my settings (autodetected):
                      Debugger:
                      GDB in /usr/bin/gdb
                      Compiler:
                      GCC (x86 64bit in /usr/bin)
                      GCC (x86 32bit in /usr/bin)
                      Qt Version:
                      Qt 5.2.1 GCC 64bit /home/.../Qt52/5.2.1/gcc_64/bin/qmake
                      Kits:
                      Desktop Qt 5.2.1 GCC 64bit

                      Hope it's useful for you

                      1 Reply Last reply
                      0
                      • Q Offline
                        Q Offline
                        QT_fan
                        wrote on last edited by
                        #16

                        The settings I used were similar to yours but were 32bit. I tried installing Kubuntu but I received the message: "Not enough disk space to store all selected components. Available space 911MB, at least 2.14GB required." I have adequate disk space so not sure why this happened. I am running Linux out of a live USB drive, (16GB). Could this be causing these problems? Should I do a full install instead?

                        1 Reply Last reply
                        0
                        • C Offline
                          C Offline
                          clochydd
                          wrote on last edited by
                          #17

                          I never tried to run it from an USB drive but AFAIK it should work.
                          Googled a bit and hopefully "this ":http://rudd-o.com/linux-and-free-software/a-better-way-to-create-a-customized-ubuntu-live-usb-drive may help you.

                          1 Reply Last reply
                          0
                          • Q Offline
                            Q Offline
                            QT_fan
                            wrote on last edited by
                            #18

                            I did a full install of Ubuntu on a spare HDD with nothing else on it. It ran fine so I installed Qt Creator on it but it did not do any better than with Ubuntu running from a USB drive. I have now tried to install Qt Creator on six different Linux distros and three different computers; Qt Creator just doesn't want to run on Linux! I can't think of anything else to try and may have to give up on Qt Creator.

                            1 Reply Last reply
                            0
                            • JKSHJ Offline
                              JKSHJ Offline
                              JKSH
                              Moderators
                              wrote on last edited by
                              #19

                              Hi,

                              I don't know about other distros, but Ubuntu does not come with a C++ compiler or OpenGL development libraries by default.

                              I have Ubuntu 14.04, and these are the steps I take to get a fully-functional Qt development environment:

                              Install g++ from the Ubuntu repository

                              Install Mesa development libraries from the Ubuntu repository

                              Install Qt from the Qt Project website (e.g. http://download.qt-project.org/official_releases/qt/5.2/5.2.1/qt-opensource-linux-x86-5.2.1.run )

                              See https://qt-project.org/forums/viewthread/33411 for more details

                              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                              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