Installing with Linux



  • I have been learning QT Creator 3.0.1 using Windows 7. Installation presented no problems using the online installer and I then attempted to install on a different computer using Linux Puppy 5.7.1. When the installation was about 25% complete I received the following message:

    Could not download archive: http://download.qt-
    project.org/online/qtsdkrepository/linux_x86/android/qt5/qt.521.android_armv7.essentials/5.2.1android_armv7_qt5_essentials:Cannot download http://download.qt-project.org/online/qtsdkrepository/linux86/android/qt5qt521.android_armv7.essentials/5.2.1android_armv7_qt5_essentials
    Writing to file'/tmp/remoterepo-gw8YAJ/qt.521.android_armv7.essentials/5.2.1android_armv7_qt5_essentials.7z’ failed:
    Unknown error

    Can anyone advise me on what this means and how I can fix it? Thanks.


  • Moderators

    Running out of disk space, perhaps? Or network problems?



  • I have about 40GB of disk space unused so I don't think that is it. I never saw any problem when I installed on Windows. I attempted the Linux online installation twice and it stopped at the same place with the same message.

    I tried downloading the file qt-opensource-linux-x86-5.2.1.run for offline installation and although it installed successfully I couldn't get it to respond to keyboard inputs. It would respond to mouse inputs but nothing from the keyboard. This has really got me baffled! Any help would be much appreciated.



  • Hi, what do you mean with "no keyboard inputs"? Can you start the Creator but it does not respond to the keyboard?
    Could you post the download link you used?



  • Creator starts OK and I can access anything via the mouse. For example, I can pull down the File Menu and select 'New File or Project'. I can then select 'Applications' and 'Qt Widgets Application' and click 'Choose'. When the 'Introduction and Project Location' window appears I attempt to type in a name for the project but it has no effect.

    This is the link I used.

    http://download.qt-project.org/official_releases/qt/5.2/5.2.1/qt-opensource-linux-x86-5.2.1.run



  • 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/


  • Moderators

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



  • [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.



  • [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?


  • Moderators

    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.



  • 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.



  • 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?



  • 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.



  • 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?



  • 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



  • 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?



  • 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.



  • 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.


  • Moderators

    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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.