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.3k Posts
  • How to configure Qt with enabled udev support?

    Solved
    11
    0 Votes
    11 Posts
    4k Views
    M
    @SGaist : I re-run 'configure' again. But this time with the option '-recheck-all'. Now udev support is enabled.
  • QtWidgets/qwidget.h: No such file or directory

    Solved
    11
    0 Votes
    11 Posts
    9k Views
    aha_1980A
    @mcggoal Good! at least a step forward. Cross compilation is an advanced topic and needs quite some experience. Maybe someone else can help you better than me, but at least I've some questions for you: Do you have another (native) Qt version on your system? If yes, where is it installed? Do you call an environment-setup script to set-up your cross-compiler? Usually such scripts set the environment variables needed to find the compiler, the tools and also set up the sysroot for your embedded device. Have you already verified that the files below /usr/local/lib are the cross-compiled ones? You can check with file libXXXX.so. That gives me the impression that the files are wrongly installed. Reason: /lib, /usr/lib, and /usr/local/lib are for native libraries, same applies for /bin, /usr/bin and /usr/local/bin for the binaries. Cross compiled binaries and should rather be installed in /opt or in your home directory. Regards
  • windeployqt.exe file is empty

    Solved
    4
    0 Votes
    4 Posts
    623 Views
    K
    @Togar1560 Sometimes the antivirus app is removing files. That happened to me in the past. Good to know that you solved your issue.
  • Crossplatform shared build

    Solved
    4
    0 Votes
    4 Posts
    477 Views
    EndrII 0E
    Found They lay elsewhere. andrei@quasarapp:~$ locate libgcc_s_seh-1.dll /usr/lib/gcc/x86_64-w64-mingw32/7.3-posix/libgcc_s_seh-1.dll /usr/lib/gcc/x86_64-w64-mingw32/7.3-win32/libgcc_s_seh-1.dll
  • Qt 5 build recipe for target 'sub-assimp-make_first' failed

    Unsolved
    1
    0 Votes
    1 Posts
    411 Views
    No one has replied
  • QVPNClient file not found

    Solved
    3
    0 Votes
    3 Posts
    528 Views
    L
    Ahh, I see. Okay, thank you!
  • QT UWP and Qt Widget

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    C
    Yes I put a label and a button on the main widget with the qt form editor also I can start the widget project with the desktop MSVC qt kit but when I change to uwp MSVC kit I just get a blank window and lots of errors (see above). Also I did all updates one thing to say it is only a windows 10 vm but it should work anyway right?
  • Strange error building qtwebengine component on Windows (5.7.1)

    Unsolved
    3
    0 Votes
    3 Posts
    826 Views
    G
    In case anyone else hits the same problem, it is probably a path length issue. See https://lists.qt-project.org/pipermail/development/2016-November/027700.html for a similar problem. I had this problem and reduced the path length and now QtWebEngine has built fine.
  • compile qtwebengine with extra compile flag

    Unsolved
    1
    0 Votes
    1 Posts
    357 Views
    No one has replied
  • 0 Votes
    4 Posts
    1k Views
    SGaistS
    It's not a problem of Qt Creator. The mkspec used for the RPI3 is still valid unless your sysroot comes from a Debian Stretch were they have changed the library name. You need to modify the mkspec under devices that matches the Rpi3
  • Unable to cross compile Qt5.12.3 for Armv7

    Solved
    4
    0 Votes
    4 Posts
    3k Views
    K
    I was able to figure this out with more testing. I noticed that if I configured with the -no-opengl option I was able to compile/install without errors. This led me to looking into my .conf file to make sure I had my paths setup correctly. I used this configure input ./configure -release -opengl es2 -device linux-beagleboard-g++ -device-option CROSS_COMPILE=/opt/gcc-linaro-6.4.1-2018.05-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/Smartlog-rootfs -opensource -confirm-license -make libs -no-use-gold-linker -prefix /usr/local/qt5-SLL -extprefix /home/scorpion/Qt_Source/Qt_Installed/Qt_5.11.3_Beagleboard -skip qtserialbus -skip qtscxml -skip qtscript -skip qtcharts -skip qt3d -skip qtdatavis3d -skip qtcanvas3d -skip qtgamepad -skip qtvirtualkeyboard -skipqtwayland -skip qtwebengine -skip qtwebchannel -skip qtwebglplugin -qt-zlib -recheck-all and this .conf file MAKEFILE_GENERATOR = UNIX CONFIG += incremental QMAKE_INCREMENTAL_STYLE = sublib QMAKE_RPATHLINKDIR_POST += $$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf QMAKE_RPATHLINKDIR_POST += $$[QT_SYSROOT]/lib/arm-linux-gnueabihf include(../../common/linux.conf) include(../../common/gcc-base-unix.conf) include(../../common/g++-unix.conf) load(device_config) QT_QPA_DEFAULT_PLATFORM = eglfs # modifications to g++.conf QMAKE_CC = $${CROSS_COMPILE}gcc QMAKE_CXX = $${CROSS_COMPILE}g++ QMAKE_LINK = $${QMAKE_CXX} QMAKE_LINK_SHLIB = $${QMAKE_CXX} # modifications to linux.conf QMAKE_AR = $${CROSS_COMPILE}ar cqs QMAKE_OBJCOPY = $${CROSS_COMPILE}objcopy QMAKE_NM = $${CROSS_COMPILE}nm -P QMAKE_STRIP = $${CROSS_COMPILE}strip COMPILER_FLAGS = -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mthumb #modifications to gcc-base.conf QMAKE_CFLAGS += $${COMPILER_FLAGS} QMAKE_CXXFLAGS += $${COMPILER_FLAGS} QMAKE_CXXFLAGS_RELEASE += -O3 QMAKE_LIBS += -lrt -lpthread -ldl # Extra stuff (OpenGL, DirectFB, ...) QMAKE_INCDIR_EGL = $$[QT_SYSROOT]/usr/include/EGL QMAKE_LIBDIR_EGL = $$[QT_SYSROOT]/usr/lib/arm-linux-gnueabihf QMAKE_INCDIR_OPENGL_ES2 = $${QMAKE_INCDIR_EGL} QMAKE_LIBDIR_OPENGL_ES2 = $${QMAKE_LIBDIR_EGL} QMAKE_INCDIR_OPENVG = $${QMAKE_INCDIR_EGL} QMAKE_LIBDIR_OPENVG = $${QMAKE_LIBDIR_EGL} QMAKE_LIBS_EGL = -lEGL -lIMGegl -lsrv_um QMAKE_LIBS_OPENGL_ES2 = -lGLESv2 $${QMAKE_LIBS_EGL} QMAKE_LIBS_OPENVG = -lOpenVG $${QMAKE_LIBS_EGL} DISTRO_OPTS += hard-float # No need for any special EGL device integration. # Prioritize the default, compiled-in integration over any plugins. EGLFS_DEVICE_INTEGRATION = none include(../common/linux_arm_device_post.conf) load(qt_config) With these changes I was able to compile without errors and everything seems to be running as intended.
  • Completely clean Git Qt sources

    Solved
    7
    0 Votes
    7 Posts
    1k Views
    P
    @aha_1980 Thanks - the second git clean step did the trick.
  • 0 Votes
    31 Posts
    20k Views
    D
    It seems this issue has come back (we're now 2019). It occurred to me several times. Restarting QtCreator works for me (terrible solution!)
  • Qml deploiment to Android, in a sub project architecture

    Unsolved
    1
    0 Votes
    1 Posts
    300 Views
    No one has replied
  • Qt 5.12.3 for UWP Kit not Loading

    Solved
    6
    0 Votes
    6 Posts
    1k Views
    ndt_mikeN
    Thanks for the help. I am going to mark this closed. Seems like loading MSVS 2019 does something to the MSVS2017 install. I was able to get it to run on a new machine without either Qt or MSVS already installed. I was able to get QtCreator running and compiling on the machine I had previously loaded MSVS 2019 installed but it was still doing flaky things.
  • Using cross compile in windows for ARM use.

    Unsolved
    3
    0 Votes
    3 Posts
    684 Views
    Pablo J. RoginaP
    @victor-wang I have chosen to go through desktop linux in a VirtualBox As @koahnig said , maybe using a VM for your development machine will save you time and headaches, since most of the toolchains for cross-compiling are available for Linux as first option
  • Upgrade from Qt 5.5 to 5.12

    Unsolved
    1
    0 Votes
    1 Posts
    611 Views
    No one has replied
  • Older versions versus new

    Unsolved
    22
    0 Votes
    22 Posts
    3k Views
    SGaistS
    One thing I would do is to search through all the content of these folder to find out what defines the build type.
  • Windows deployment and missing DLL dependencies

    Solved
    9
    0 Votes
    9 Posts
    5k Views
    M
    @hskoglund said in Windows deployment and missing DLL dependencies: One question: the list of dependent dlls for an .exe file only include the filenames, the source path windeployqt uses for the copying seems to be Qt's bin directory only. So, in order for your Qt5Pdf.dl to be successfully copied by windeployqt, did you first copy Qt5Pdf.dl into Qt's bin directory? Yep, both Qt5Pdf.dll and qca-qt5.dll are inside C:\Qt\5.12.3\msvc2017_64\bin (same folder as windeploy). They were automatically copied with their post-build installation
  • 0 Votes
    22 Posts
    8k Views
    K
    @FluxDice Hi and welcome to devnet forum Here is a link to the Qt documentation for cross compiling. https://doc.qt.io/qt-5/embedded-linux.html For raspberry specifically there is also https://www.raspberrypi.org/forums/viewtopic.php?t=204778