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
  • Qt-5.15.2 CROSS COMPILATION ERROR

    Unsolved
    4
    0 Votes
    4 Posts
    182 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
    299 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
    341 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
    135 Views
    SGaistS

    Hi,

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

  • 0 Votes
    1 Posts
    75 Views
    No one has replied
  • 0 Votes
    6 Posts
    171 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
    142 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
    616 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
    753 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
    53 Views
    No one has replied
  • Qt Application Fails to Load QML Modules in Docker Container

    Unsolved
    6
    0 Votes
    6 Posts
    228 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
    127 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
    96 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
    218 Views
    S

    yes I have built the source code completely.

  • Qt 6.7.2 - Could NOT find OpenGL

    Solved
    6
    0 Votes
    6 Posts
    497 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.