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 50.0k Posts
  • 0 Votes
    18 Posts
    3k Views
    SGaistS

    Hi,

    If you are not returning anything from a function that has a return type then you enter undefined behaviour territory. You were just lucky it worked until now.
    This also means that you ignored your compiler warnings which is usually the best way to have strange things such as this crash happening.

  • 0 Votes
    4 Posts
    161 Views
    I

    Hi @DJaq, technically you can not use the same Qt Account for both commercial and opensource installations. If the used Qt Account has any licenses (even eval ones) it will switch to commercial version. So it means that you need to have a second Qt Account in order to do opensource installations with the online installer

  • License check failed under Qt5 but not Qt6

    Moved Unsolved
    4
    0 Votes
    4 Posts
    167 Views
    I

    Hi @dknx-8888 , you should be able to create a ticket for Qt support in the customer portal (login to your Qt Account). -> Support Center

  • 0 Votes
    10 Posts
    320 Views
    artwawA

    Like @ankou29666 said.

    I have a separate question though: you really have a free floating mysql on the internet with root access enabled?

  • Qt-5.15.2 CROSS COMPILATION ERROR

    Unsolved
    4
    0 Votes
    4 Posts
    192 Views
    jsulmJ

    @Vijaykarthikeyan said in Qt-5.15.2 CROSS COMPILATION ERROR:

    This is the only error message that I have got

    I'm sure there is more. What you posted is what make prints at the end if there were any compiler/linker errors. So, please look above these lines or post whole build log here.

  • Qt6.2 for Jetson TX2NX - EGLFS configuration problems

    Unsolved
    3
    0 Votes
    3 Posts
    1k Views
    M

    Hello, I'm trying to compile Qt6 for cross compile for my jetson orin nano and i'm having some trouble doing it even if Qt5.15 worked perfectly fine.
    I xould like to know which toolchain did you used ? What have you put in your toolchain.cmake ? Atucally I follow the wiki qt for cross compiling for raspPI but my compilation was donc on a wrong architecture (x86). Thank you for your help

  • 0 Votes
    21 Posts
    1k Views
    artwawA

    Ah, sorry, written from scratch - I misunderstood that.

    Might be weird and it's been ages since I tried, but: what about two-step approach? You can ask qmake to prepare build files for the Xcode with qmake -spec macx-xcode project.pro or qmake ~/src/myapp -spec macx-xcode - the open the result in Xcode and try to build there?

    I am running out of ideas...

  • Failed to load include path to android.jar

    Unsolved
    2
    1 Votes
    2 Posts
    1k Views
    N

    Same. Looks like API 35 remains unready for our purposes. Try switching your project to API 34, which works for me.

  • Windows and mac development environment setup and sync?

    Unsolved
    7
    0 Votes
    7 Posts
    309 Views
    artwawA

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

    I didnt know that VS was using qmake.

    I don't know what VS is using - not my toolset. But you mentioned .pro files previously, those are for qmake and that's what I was referring to.

    https://cmake.org/cmake/help/book/mastering-cmake/chapter/Converting Existing Systems To CMake.html#converting-windows-based-workspaces

  • Need help with adding Widget

    Unsolved
    10
    0 Votes
    10 Posts
    347 Views
    B

    Yes to all, except loadUi() loads the .ui file not a .py.
    I will look again at the qscale stuff when/if I get a chance.
    Thanks again.

  • Installing Qt 6 on Github Runner

    Unsolved
    2
    0 Votes
    2 Posts
    143 Views
    SGaistS

    Hi,

    AFAIK, one of the aqtinstall project goal is exactly the use case you have at hand.

  • 0 Votes
    1 Posts
    78 Views
    No one has replied
  • 0 Votes
    6 Posts
    178 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
    175 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)

  • Qt Installation Error On Windows System

    Unsolved
    18
    0 Votes
    18 Posts
    633 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
    770 Views
    D

    Hi @svcguy were you able to resolve it ?

  • 0 Votes
    5 Posts
    1k 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
    57 Views
    No one has replied
  • Qt Application Fails to Load QML Modules in Docker Container

    Unsolved
    6
    0 Votes
    6 Posts
    250 Views
    JonBJ

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