Skip to content

Installation and Deployment

Your Qt just doesn't want to build? Your compiler can't find the libs? Here's where you find comfort and understanding. And help.
9.8k Topics 51.2k Posts
  • Unable to find an x11 visual that matches egl config 20.(Raspberry Pi 3 Mobdel B)

    Locked Unsolved
    2
    0 Votes
    2 Posts
    845 Views
    SGaistS
    Hi, Please don't post the same message in multiple sub-forums. One is enough. Duplicate. Closing this one.
  • Command "python setup.py egg_info" failed with error code 1

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    jsulmJ
    @JBAbbott If you're on Linux try with sudo pip install PySide
  • Statically linking shared libraries for cross compilation

    Unsolved
    6
    0 Votes
    6 Posts
    3k Views
    SGaistS
    Take a looks at the mkspecs folder in Qt's sources. It's the set of configuration Qt uses.
  • Install for home use fails with network error

    Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    JKSHJ
    @BKBK This might help: https://forum.qt.io/topic/43349/slow-downloads-with-the-online-installer-try-this-tool
  • How to get cross compile toolchain from target system

    Unsolved
    14
    0 Votes
    14 Posts
    8k Views
    K
    @lx_frz said in How to get cross compile toolchain from target system: Switching to 5.9 helped. I think I have just one more problem before this will work. When I built the 5.9 and made an executable, it was recognized on the target platform, but couldnt run because it couldnt find the Qt .so files, despite them being on my platform. I had that problem too, but this helped export LD_LIBRARY_PATH=/home/ubuntu/QtForBBB/lib:. The statement above is basically similar for that case as the path enviroment setting in windows. The only issue is, for windows boys like me, the different syntax to separate path values. The separator is a ' : ' The shared libraries are on QtForBBB/lib and the default folder ' . ' for the dynamic libs of my application. Basically the default is also the folder where the application executable resides. linux does apparently/obviously not look into the default folder for dynamic libs. On some threads I found from google, it qas recommended that I compile Qt statically to avoid this. I tried it and it worked. However, there is still 1 missing .so, libstdc++.so.6 I have seen those posts in the past as well, but actually I was surprised how easy this dynamic link part. Supposedly I could use the -static_runtime option to statically include this, but when I try that I get Warning: Feature static_runtime is insignificant in this configuration, ignoring related command(s) So I can make executables now, but they wont run on my target because I cant compile with a static libstdc++.so.6 libstdc++.so.6 is part of the compiler. On my BBB it is found on folder /usr/lib/arm-linux-gnueabihf As the whole setup looks to me is the compiler with all its libraries already installed on the device. Probably it came already with the bootable SD card. For you that would mean that you need to install the gnu c++ with its libraries.
  • xcb platform plugin missing with a Qt kit compiled from Qt sources

    Solved
    3
    0 Votes
    3 Posts
    706 Views
    L
    Hi and thank you for your quick answer, Actually this was not a silly question at all because I did not call any make install... The reason is that I only wanted to compile Qt, not install it. But it seems that everything works like a charm after the make install. My application can now launch and I have the whole stack tree. That is all that matters to me. Again, thank you for the answer that solved my issue. Florian
  • 0 Votes
    5 Posts
    2k Views
    S
    Thank you SGaist. I look at the big output of the qmake -d. It seems to browse a few directories to find the pri files of the modules, but never the good ones. After further investigation, I found that the function from qt_config.prf looks also in the QMAKEMODULES environment variable to configure the list of folders where to find the modules. After configuring this variable to my *.pri folder in qt installation path of the sysroot folder, the module qtserialport was found ! I think I will create a bug on the qt bug tracker. I really do not see what I miss to have that bug in my configuration of the qt build.
  • Difficulty with static builds

    Solved
    4
    0 Votes
    4 Posts
    2k Views
    SGaistS
    https://wiki.qt.io/Building_Qt_5_from_Git Yes it is for several reasons: Each update of any of your dependency means that you have to rebuild everything that depends on it and do a new release of your application. Think security related bug fixes. This means that you have to trac every dependency for bug fixes and security fixes. Linking dynamically you can rely on the distribution your application users run to stay updated. Licensing issues, LGPL for example states that you have to provide the means for your application users to replace the LGPL libraries you link to with whatever versions of that library they want. And that example is only for LGPL, you might be using libraries with other license that have other restrictions. The application is way bigger and longer to load.
  • Cross Compiling for BeagleBone Black libm.so.6 not found, but it is there.

    Unsolved
    2
    2 Votes
    2 Posts
    964 Views
    D
    You should use -sysroot, and add several links ln -sf /mnt/bbb-rootfs/lib/arm-linux-gnueabihf/librt.so.1 /mnt/bbb-rootfs/usr/lib/arm-linux-gnueabihf/librt.so ln -sf /mnt/bbb-rootfs/lib/arm-linux-gnueabihf/libdl.so.2 /mnt/bbb-rootfs/usr/lib/arm-linux-gnueabihf/libdl.so ln -sf /mnt/bbb-rootfs/lib/arm-linux-gnueabihf/libglib-2.0.so.0 /mnt/bbb-rootfs/usr/lib/arm-linux-gnueabihf/libglib-2.0.so ln -sf /mnt/bbb-rootfs/lib/arm-linux-gnueabihf/libm.so.6 /mnt/bbb-rootfs/usr/lib/arm-linux-gnueabihf/libm.so See https://wiki.qt.io/BeagleBone_Black_Beginners_Guide
  • There is no libqsqlodbc.so in qt-opensource-linux-x64-5.10.0.run

    Solved
    3
    0 Votes
    3 Posts
    983 Views
    plgrm44P
    Thanks, I've built the plugin somehow.
  • How connect QT to "Empty Project"(C++) in VS15

    Unsolved
    5
    0 Votes
    5 Posts
    2k Views
    A
    @jsulm said in How connect QT to "Empty Project"(C++) in VS15: Is there a reason why you want to do it? Why not use QtCreator or Qt plug-in for Visual Studio? I need connect Qt to my main project
  • Missing compiler in Qt Creator on RPi

    Unsolved
    5
    0 Votes
    5 Posts
    1k Views
    jsulmJ
    @SamCoding Well, you need a compiler and sysroot to be able to build for RaspberryPi. And you need Qt build for RaspberryPi. See http://wiki.qt.io/Raspberry_Pi_Beginners_Guide
  • Can I develop a Qt Quick app without using the qt resource system (qrc)?

    Solved
    4
    1 Votes
    4 Posts
    1k Views
    JKSHJ
    @Aras said in Can I develop a Qt Quick app without using the qt resource system (qrc)?: I tried putting my graphics out and just the qml files in the qrc but that does not seem to work. I think this should work. I suggest you post your code in a new thread; someone should be able to show you how to do it.
  • Unable to run any QML app (QGLXContext issue)

    Solved qglxcontext linux opengl qml nvidia
    2
    0 Votes
    2 Posts
    5k Views
    tansgumusT
    I fixed this issue by my nvidia driver to recent version from this PPA ppa:graphics-drivers/ppa
  • HOW TO Read exceptions

    Solved qtcreator libraries linking exceptions
    9
    0 Votes
    9 Posts
    4k Views
    S
    @JonB I think i won't be able to understand something more detailled and that answer the whole questions =) Thanks a lot, you ma real expert ! ;D
  • Installing Qt5.10 on Raspbian

    Unsolved qt5 raspberry p raspbian
    6
    0 Votes
    6 Posts
    3k Views
    A
    @Xenoshell What's the full output from the configure? Or more specifically, what is the output from the tests that are built to test for gstreamer and dbus? That will help shed some light on your install issue. It sounds like even though you installed all the *-dev packages Qt isn't finding them properly.
  • QtCreator Ubuntu 16.04 Offline Installation Issue

    Unsolved
    11
    0 Votes
    11 Posts
    3k Views
    X
    I've tinkered around a bit more and found that I can't even compile the modules from source. Qmake works, but when I try to do a make I get various errors. Qtbase compiles fine, though. I'm wondering if having previously installed QtCreator from the Ubuntu repositories has caused these issues.
  • Run in release crash

    Solved qt creator release mode dll
    5
    0 Votes
    5 Posts
    6k Views
    S
    After few researches and some help from internal, it appears that my links to libraries ain't clean enough wich leads to those random behaviours. So i'm working on making it cleaner for x32/x64 debug and release. Thanks a lot for your help ! You made my mind way sharper !
  • msvc2015 build - app crash (The CDB process terminated)

    Unsolved
    10
    0 Votes
    10 Posts
    5k Views
    G
    I checked the env variables - it looks a little bit strange. On the working configuration, the PATH env variable contains Qt\Tools\mingw530_32\bin and no msvc2015 related path. In Qt Creator, the Build & Run config are using the System Environment (without manually performed modifications) but the Path contains Qt\5.9.3\msvc2015_64\bin (the MinGW bin location too of course). My PC doesn't have the PATH with an item related to Qt build kit. In Qt Creator, in Build & Run I have the Qt\5.9.3\msvc2015_64\lib but I didn't found the Qt\5.9.3\msvc2015_64\bin. Of course after adding the C:\Qt\5.9.3\msvc2015_64\bin to the PATH, I'm able to run the app from Qt Creator and from the debug/release folder so looks like the problem is solved - but I still don't know how the working configuration generated an extra bin location in Build & Run.
  • Windows Deployment with QML (simple?) issue

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    J.HilkJ
    @SGaist I'm not sure, if you look at the picture I posted, I copied, by hand, the folders qmltooling, Qt, QtGraphicalEffects, QtQML, QtQuick, QtQuick.2, and scenegraph and than it worked. So anyone of them, or all auf them?