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.5k Topics 49.7k Posts
QtWS25 Call for Papers
  • 18 Votes
    1 Posts
    20k Views
    No one has replied
  • Windows and mac development environment setup and sync?

    Unsolved
    6
    0 Votes
    6 Posts
    67 Views
    T

    @artwaw said in Windows and mac development environment setup and sync?:

    @Taytoo qmake is in maintenance mode, do yourself a favour and don't use it? cmake is the way.

    I didnt know that VS was using qmake. Is there a guide on how to switch VS QT project to cmake?

  • Installing Qt 6 on Github Runner

    Unsolved
    1
    0 Votes
    1 Posts
    7 Views
    No one has replied
  • Need help with adding Widget

    Unsolved
    7
    0 Votes
    7 Posts
    65 Views
    JonBJ

    @bobd
    Qt Creator supports Python development.
    https://doc.qt.io/qtcreator/creator-python-development.html
    https://doc.qt.io/qtforpython-6/tools/pyside-designer.html#pyside6-designer
    https://www.pythonguis.com/tutorials/pyside6-first-steps-qt-designer/

    How any of this relates to your use of "Thonny" I do not know.

  • 0 Votes
    17 Posts
    181 Views
    artwawA

    @DiBosco said in Application on MacOS not producing a .app gile so I can create a shippable executable:

    I can click on the executable from the build directory

    So doesn't produce the .app but does produce executable? Just plain binary?

  • 0 Votes
    1 Posts
    21 Views
    No one has replied
  • 0 Votes
    6 Posts
    58 Views
    jsulmJ

    @bishal said in libgssapi_krb5.so file not found while using Multimedia and MultimediaWidget even though it is present in /usr/lib64:

    i installed Qt from its online installer,

    You mean you installed Qt using Qt Online Installer?
    If so please try with Qt provided by Fedore like @SGaist suggested.

  • Problem building Qt 6.8 for android with openssl

    Unsolved
    2
    0 Votes
    2 Posts
    25 Views
    C

    Additional errors just after the above

    Call Stack (most recent call first):
    qtbase/cmake/QtFeature.cmake:322 (qt_configure_add_report_error)
    qtbase/cmake/QtFeature.cmake:442 (qt_feature_check_and_save_internal_value)
    qtbase/cmake/QtFeature.cmake:141 (qt_evaluate_feature)
    qtbase/cmake/QtFeature.cmake:180 (qt_internal_evaluate_config_expression)
    qtbase/cmake/QtFeature.cmake:396 (qt_evaluate_config_expression)
    qtbase/cmake/QtFeature.cmake:711 (qt_evaluate_feature)
    qtbase/cmake/QtBaseGlobalTargets.cmake:109 (qt_feature_module_end)
    qtbase/cmake/QtBaseHelpers.cmake:186 (include)
    qtbase/CMakeLists.txt:32 (qt_internal_qtbase_build_repo)

    CMake Error at qtbase/cmake/QtTargetHelpers.cmake:1483 (message):
    WrapOpenSSLHeaders::WrapOpenSSLHeaders is not a valid target.
    Call Stack (most recent call first):
    qtbase/src/plugins/tls/openssl/CMakeLists.txt:61 (qt_internal_add_target_include_dirs)

  • License check failed under Qt5 but not Qt6

    Moved Unsolved
    3
    0 Votes
    3 Posts
    41 Views
    jsulmJ

    @dknx-8888 Maybe the license is only valid for Qt6? You should clarify this with Qt Company like @ChrisW67 wrote.

  • Qt Installation Error On Windows System

    Unsolved
    18
    0 Votes
    18 Posts
    235 Views
    S

    Hello all, Six days ago, I posted that this issue was solved, but I encountered one more issue while building Qt-SourceCode on Windows.
    imgpsh_fullsize_anim (8).jpeg

    Could you help me to resolve this issue.

  • 0 Votes
    3 Posts
    650 Views
    D

    Hi @svcguy were you able to resolve it ?

  • 0 Votes
    5 Posts
    769 Views
    F

    Thanks for the hint, I did sudo apt remove qt5* libqt5* and that solved my problem. The system QT5 was too old.

  • 0 Votes
    5 Posts
    2k Views
    P

    I ended up creating a class to handle this kind of shortcut:

    // QT IFW seems to have a bug. If you use AllUsersStartMenuProgramsPath, it won't then set the icon for the shortcut. // This wouldn't be a problem if the target exe had an icon builtin. // Also, it ignores the StartMenuDir setting in config.xml. // This class just does something like this: // component.addElevatedOperation("CreateShortcut", `@TargetDir@/${itemName}`, // `@AllUsersStartMenuProgramsPath@/${linkName}.lnk`, // `iconPath=${iconPath}`); class AllUserShortcut { // Constructor method constructor(companyName, productName) { this.companyName = companyName; this.productName = productName; } static createFolder(folderPath) { // Create a folder if it doesn't exist and remove it on uninstall if it's empty. var psCreateFolder = ` if (-Not (Test-Path -Path "${folderPath}")) { New-Item -ItemType Directory -Path "${folderPath}" }`; var psDeleteEmptyFolder = ` if ((Test-Path -Path "${folderPath}") -and (Get-ChildItem -Path "${folderPath}").Count -eq 0) { Remove-Item -Path "${folderPath}" }`; component.addElevatedOperation("Execute", [ "powershell.exe", "-ExecutionPolicy", "Bypass", "-Command", psCreateFolder ], "UNDOEXECUTE", [ "powershell.exe", "-ExecutionPolicy", "Bypass", "-Command", psDeleteEmptyFolder ]); } createShortcut(itemName, linkName, iconPath) { console.log(`Creating shortcut: ${this.companyName}\\${this.productName}\\${linkName} -> @TargetDir\\${itemName}`); var commonStartMenuDir = installer.environmentVariable("ALLUSERSPROFILE") + "\\Microsoft\\Windows\\Start Menu\\Programs"; // Create company folder. var companyPath = commonStartMenuDir + `\\${this.companyName}`; AllUserShortcut.createFolder(companyPath); // Create product folder. var productPath = companyPath + `\\${this.productName}`; AllUserShortcut.createFolder(productPath); // Use a PowerShell script to create the shortcut with the icon var shortcutPath = productPath + `\\${linkName}.lnk`; var targetPath = installer.value("TargetDir") + `\\${itemName}`;; var psScriptContent = ` $WScriptShell = New-Object -ComObject WScript.Shell $Shortcut = $WScriptShell.CreateShortcut("${shortcutPath}") $Shortcut.TargetPath = "${targetPath}"` if (iconPath) { psScriptContent += ` $Shortcut.IconLocation = "${iconPath}"` } psScriptContent += ` $Shortcut.Save() `; component.addElevatedOperation("Execute", [ "powershell.exe", "-ExecutionPolicy", "Bypass", "-Command", psScriptContent ], "UNDOEXECUTE", [ "powershell.exe", "-ExecutionPolicy", "Bypass", "-Command", `Remove-Item -Path "${shortcutPath}" -Force` ]); } }
  • macdeployqt, windeployqt: deploying Qt.labs.qmlmodels

    Unsolved
    1
    0 Votes
    1 Posts
    27 Views
    No one has replied
  • Qt Application Fails to Load QML Modules in Docker Container

    Unsolved
    6
    0 Votes
    6 Posts
    81 Views
    JonBJ

    @Rakesh-U Did you/could you try running xterm in exactly same environment?

  • Qt Documentation Build Cmake Error

    Unsolved
    4
    0 Votes
    4 Posts
    74 Views
    S

    @Christian-Ehrlicher

    I am not creating the another account and posting the same error, we are trying resolve the documentation bug we both were getting the same error so we psoted the error.

    So the thing is I am trying to resolve the doucumentation bug when i try to configure the particular command i am not getting any errors.../configure -prefix /home/hp-lap/R_QtDoc_Build/qt-doc-bugfix -nomake tests -nomake examples -no-openssl -xcb -xcb-xlib -bundled-xcb-xinput -developer-build -- -DQT_BUILD_TESTS_BY_DEFAULT=OFF

    When I try to go for the furthe step using the below given command we are getting the cmake error.
    cmake /home/hp-lap/R_QtDoc_Build/qt6 -GNinja -DQT_HOST_PATH=/home/hp-lap/Qt_New/6.7.2/gcc_64/bin -DQT_NO_PACKAGE_VERSION_CHECK=TRUE -DQT_NO_PACKAGE_VERSION_INCOMPATIBLE_WARNING=TRUE

    For this I am referring this link https://wiki.qt.io/Building_Qt_Documentation
    In this link i referring only this section "Documentation only build using a Qt host build".

  • Building Qt Documentation Issue

    Locked Unsolved
    2
    0 Votes
    2 Posts
    36 Views
    Christian EhrlicherC

    Do you really think creating another account and asking the same questions really helps?
    https://forum.qt.io/topic/158663/qt-documentation-build-cmake-error

    --> Locked!

  • Qt Documentation Build Error

    Unsolved
    5
    0 Votes
    5 Posts
    111 Views
    S

    yes I have built the source code completely.

  • Qt 6.7.2 - Could NOT find OpenGL

    Solved
    6
    0 Votes
    6 Posts
    128 Views
    SGaistS

    From the looks of it that package is the Qt opengl module development files which is not the same as the OpenGL librairies that were missing. That package may have the latter as dependency though.

  • Qt 6 cmake lupdate update_translations hangs forever

    Unsolved
    6
    0 Votes
    6 Posts
    152 Views
    R

    I have the same problem. I have a project that used to run lupdate with Qt 5.15 real quick, with no problems. After the migration to CMAKE to use Qt 6.7.0, lupdate never ends. The project is a big with a few 3rdParty libraries.
    I tried to specify just main.qml in the SOURCES for qt_add_translations, hoping to get rid of all the rest of the files. Only for test purposes. But I had no luck with that.
    Has anyone been able to solve this?