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
  • How to compile and run qwt-6.1-multiaxes for Mac using Qt5.14.2 Translate to English

    Unsolved mac
    6
    0 Votes
    6 Posts
    845 Views
    SGaistS
    Run it on the binary of your application.
  • QT cross compile for RPI

    Unsolved
    1
    0 Votes
    1 Posts
    208 Views
    No one has replied
  • GitHub actions and QtMQTT

    Unsolved
    1
    0 Votes
    1 Posts
    291 Views
    No one has replied
  • You have macOS 11.3.1. The application requires macOS 13.0 or later.

    Solved
    5
    0 Votes
    5 Posts
    2k Views
    W
    @SimonSchroeder @jsulm Thank you all! I built the project in macOS 13.4 and set CMAKE_OSX_DEPLOYMENT_TARGET to 11.0, and the problem was resolved. Although I am not yet sure what the specific reason for this issue is, it does not seem to be a problem with the QT library, as I am confident that there is only one version (latest version) of the library on my computer. Perhaps when double clicking on the app folder, macOS made some judgment action
  • How to link against QSvgIconEnginePlugin?

    Unsolved
    4
    0 Votes
    4 Posts
    577 Views
    S
    Okay. If I understand correctly: That plugin is available though the svg module So it is useful to link against the Qt::Svg module. On Linux and FreeBSD, this will force the distribution’s package manager to add Qt::Svg as dependency, and the Qt::Svg package which will very likely at the same time provide QSvgIconEngine. On Windows, there is no package management. However, it will do no harm to link against Qt::Svg, as the Qt::Svg module has to be deployed anyway to provide QSvgIconEngine. so you have to deploy it along your application. wrap the plugin with your app like a so file and set the path properly as plugin I do not provide binaries. Currently, I document the build-time dependencies. So here the point would be to document QSvgIconEngine as an additional run-time dependency for deployment.
  • 0 Votes
    2 Posts
    311 Views
    jsulmJ
    @SirBillyBobJoe Please don't double post! You asked same question here already: https://forum.qt.io/topic/146056/camera-example-from-multimedia-after-cross-compiling-to-raspberry-pi-4-isnt-working-using-qt6-4-3 Closing this one.
  • Qt6 Static Building (Windows, MinGW)

    Unsolved
    20
    0 Votes
    20 Posts
    7k Views
    mzimmersM
    @SteveStage I've been struggling on and off with this for years. I currently have a couple open bug reports on this topic, so TQC at least is aware of the problem(s). I don't have an answer for you, but a couple things: don't use git bash for your build. A command terminal is best, but PowerShell should work, too. when you initialize the repository (prior to your configure command), disable qtwebengine: perl init-repository --module-subset=default,-qtwebengine This will speed up your builds, plus you can't build QtWebEngine statically (probably because it would result in enormous executables). this is the command that most recently worked for me, though it doesn't now: configure.bat -opensource -confirm-license -static -static-runtime -release -platform win32-g++ -opengl desktop -skip qtwebengine -nomake examples -nomake tests -Wno-dev -prefix c:\qt\6.5.1_static Good luck...
  • Deployment in Android devices by using QtCreator on MacBook Host

    Solved
    8
    0 Votes
    8 Posts
    1k Views
    C
    To deploy your Qt-based application on Android devices using Qt Creator on a MacBook host, you can follow these general steps: Set up Android SDK and NDK: Install the Android SDK (Software Development Kit) and NDK (Native Development Kit) on your MacBook. You can download them from the official Android Developer website. Configure Qt Creator: Open Qt Creator and go to Preferences (Qt Creator -> Preferences). Under Devices > Android, add the paths to your Android SDK and NDK installations. Make sure the necessary Android versions and tools are installed via the SDK Maintenance tool in Qt Creator. Create a Deployment Kit: In Qt Creator, go to Projects (left sidebar) and select your project. Under the Build Settings tab, select Add Kit and choose Android as the type. Provide a name for the kit and select the Android device you want to deploy to.
  • 0 Votes
    5 Posts
    2k Views
    bibasmallB
    @sierdzio You are absolutely right, thank you. I didn't know about the nmake install command :)
  • Building Qt-6.5.1 source 'ERROR: x86 intrinsics support missing.'

    Unsolved
    1
    1 Votes
    1 Posts
    798 Views
    No one has replied
  • QT6 cross compile for raspberry pi

    Unsolved
    10
    0 Votes
    10 Posts
    3k Views
    M
    @jsulm said in QT6 cross compile for raspberry pi: /configure -release -opengl es2 -nomake examples -nomake tests -qt-host-path $HOME/qt-host -extprefix $HOME/qt-raspi -prefix /usr/local/qt6 -device linux-rasp-pi4-aarch64 -device-option CROSS_COMPILE=aarch64-linux-gnu- -- -DCMAKE_TOOLCHAIN_FILE=$HOME/toolchain.cmake -DQT_FEATURE_xcb=ON -DFEATURE_xcb_xlib=ON -DQT_FEATURE_xlib=ON -v Config command dose not support -v option. Here is the output of above command: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ../qt5/configure -release -opengl es2 -nomake examples -nomake tests -qt-host-path $HOME/qt-host -extprefix $HOME/qt-raspi -prefix /usr/local/qt6 -device linux-rasp-pi4-aarch64 -device-option CROSS_COMPILE=aarch64-linux-gnu- -- -DCMAKE_TOOLCHAIN_FILE=$HOME/toolchain.cmake -DQT_FEATURE_xcb=ON -DFEATURE_xcb_xlib=ON -DQT_FEATURE_xlib=ON -v mkdir -p qtbase cd qtbase exec /home/vt/qt5/qtbase/configure -top-level -release -opengl es2 -nomake examples -nomake tests -qt-host-path /home/vt/qt-host -extprefix /home/vt/qt-raspi -prefix /usr/local/qt6 -device linux-rasp-pi4-aarch64 -device-option CROSS_COMPILE=aarch64-linux-gnu- -- -DCMAKE_TOOLCHAIN_FILE=/home/vt/toolchain.cmake -DQT_FEATURE_xcb=ON -DFEATURE_xcb_xlib=ON -DQT_FEATURE_xlib=ON -v '/usr/bin/cmake' '-DQT_HOST_PATH=/home/vt/qt-host' '-DCMAKE_TOOLCHAIN_FILE=/home/vt/toolchain.cmake' '-DQT_FEATURE_xcb=ON' '-DFEATURE_xcb_xlib=ON' '-DQT_FEATURE_xlib=ON' '-v' '-DCMAKE_INSTALL_PREFIX=/usr/local/qt6' '-DCMAKE_STAGING_PREFIX=/home/vt/qt-raspi' '-DQT_QMAKE_TARGET_MKSPEC=devices/linux-rasp-pi4-aarch64' '-DQT_BUILD_EXAMPLES=FALSE' '-DQT_BUILD_TESTS=FALSE' '-DCMAKE_BUILD_TYPE=Release' '-DQT_QMAKE_DEVICE_OPTIONS=CROSS_COMPILE=aarch64-linux-gnu-' '-DINPUT_opengl=es2' '-G' 'Ninja' '/home/vt/qt5' CMake Error: Unknown argument -v CMake Error: Run 'cmake --help' for all supported options. CMake Error at /home/vt/qt5/qtbase/cmake/QtProcessConfigureArgs.cmake:965 (message): CMake exited with code 1. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  • My Qt application has "segmentation fault" when I try to type keyboard

    Unsolved
    4
    0 Votes
    4 Posts
    756 Views
    Z
    @zhzhy I tried to gdb it. Thread 1 "hello" received signal SIGSEGV, Segmentation fault. get_entry_for_key_state (group=group@entry=0, key=<optimized out>, state=<optimized out>) at src/state.c:132 132 if (type->entries[i].mods.mods != 0 && type->entries[i].mods.mask == 0) (gdb) bt #0 get_entry_for_key_state (group=group@entry=0, key=<optimized out>, state=<optimized out>) at src/state.c:132 #1 0x00007ffff615220c in xkb_state_key_get_level (state=state@entry=0x5555555c78f0, kc=kc@entry=65, layout=layout@entry=0) at src/state.c:157 #2 0x00007ffff6152aef in xkb_state_key_get_syms (state=state@entry=0x5555555c78f0, kc=kc@entry=65, syms_out=syms_out@entry=0x7fffffffd680) at src/state.c:845 #3 0x00007ffff61530de in xkb_state_key_get_one_sym (state=0x5555555c78f0, kc=65) at src/state.c:914 #4 0x00007ffff2ab2535 in ?? () from /media/zhzhy/software/qqt/6.5.1/gcc_64/plugins/platforms/../../lib/libQt6XcbQpa.so.6 #5 0x00007ffff2ab28e9 in ?? () from /media/zhzhy/software/qqt/6.5.1/gcc_64/plugins/platforms/../../lib/libQt6XcbQpa.so.6 #6 0x00007ffff2a8b37d in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () from /media/zhzhy/software/qqt/6.5.1/gcc_64/plugins/platforms/../../lib/libQt6XcbQpa.so.6 #7 0x00007ffff2a8bdf6 in QXcbConnection::processXcbEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /media/zhzhy/software/qqt/6.5.1/gcc_64/plugins/platforms/../../lib/libQt6XcbQpa.so.6 #8 0x00007ffff2aaa2a3 in ?? () from /media/zhzhy/software/qqt/6.5.1/gcc_64/plugins/platforms/../../lib/libQt6XcbQpa.so.6 #9 0x00007ffff3cd817d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #10 0x00007ffff3cd8400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #11 0x00007ffff3cd84a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0 #12 0x00007ffff73c2caa in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /media/zhzhy/software/qqt/6.5.1/gcc_64/lib/libQt6Core.so.6 #13 0x00007ffff7123d7b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /media/zhzhy/software/qqt/6.5.1/gcc_64/lib/libQt6Core.so.6 #14 0x00007ffff71205ae in QCoreApplication::exec() () from /media/zhzhy/software/qqt/6.5.1/gcc_64/lib/libQt6Core.so.6 #15 0x0000555555557342 in main () I get it,I accidently do some thing wrong with libxkbcommon,and I reinstall it "sudo apt-get install --reinstall libxkbcommon0",everything is fine now.thank your help.
  • qt_generate_deploy_qml_app_script not working for static Qt 6.4

    Solved deploying qml c qtquick qt6
    3
    0 Votes
    3 Posts
    822 Views
    2
    Thanks for the information. I did not realize that all dependencies are build into the application on static builds and therefore the deploy-script is not needed anymore. I got the script to run with my normal (dynamically linked) version of Qt and now I get my deployable this way. Thanks again for the help.
  • Qt6 installation

    Unsolved
    4
    0 Votes
    4 Posts
    409 Views
    SGaistS
    I don't have a specific one to give you. There is a list here pick one that is close to you.
  • This topic is deleted!

    Unsolved
    1
    0 Votes
    1 Posts
    24 Views
    No one has replied
  • Which version of QT Creator to install for using MinGW 4.9.1

    Solved
    9
    0 Votes
    9 Posts
    1k Views
    JonBJ
    @beautifulcloud said in Which version of QT Creator to install for using MinGW 4.9.1: @JonB As I said, my program was written with this version and cannot support newer versions, I need that MinGW 4.9.1 version to implement it into QT :) I think you made the wise decision!
  • Qt 5.14+ on ubunut 20.04

    Unsolved
    6
    0 Votes
    6 Posts
    817 Views
    X
    @JoeCFD thanks that's good to know. The qgis nightly builds are using 22.04 so I copied that https://github.com/qgis/QGIS/blob/659a1366927bbefa64c95f982427f2a21e9be4d8/.docker/qgis3-qt5-build-deps.dockerfile#L2
  • C++ Backend with Design Studio | CMakeProject

    Unsolved designstudio cmake c++ qt6.5 qtquick
    3
    0 Votes
    3 Posts
    2k Views
    B
    It's the same with me...
  • Unable to install QT 5.15.12 on windows 10

    Unsolved
    3
    0 Votes
    3 Posts
    519 Views
    F
    @jobor Actually I have installed the older version of QT 5.15.6 on my old laptop and now I received a new laptop and I trying to install the newer version which is QT 5.15.12. my colleague also faced the same problem but he deleted the cahce files and it worked for him but in my case it is not working even if I deleted the cahce files.
  • Errors building Qt from sources under Linux.

    Unsolved qt6 compile source code
    1
    0 Votes
    1 Posts
    322 Views
    No one has replied