Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Deploying qt creator project on linux - various problems

Deploying qt creator project on linux - various problems

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 359 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ahsan Niaz
    wrote on last edited by
    #1

    Hi, I am trying to deploy my qt application on Linux
    I have downloaded linuxdeployqt-7-x86_64 from github
    I have followed the following steps

    Created a new folder named (deploy-with-linuxdeployqt), placed my qt app(Process_Orders) inside this folder. Then, placed an image file for icon, and a .desktop file as well.
    Desktop file looks like this

    [Desktop Entry]
    Type=Application
    Name=myfirst
    Exec=ortb
    Icon=otbb
    Comment=Edit this default file
    Categories=Qt;Utility;Documentation;
    Terminal=false
    After all this, my downloads folder has github downloaded file
    I cd to Downloads and run the following command

    ./linuxdeployqt-7-x86_64.AppImage ~/Documents/cpp/deploy-with-linuxdeployqt/Process_Orders

    It gave me the error that system is too new
    .
    Then I added (-unsupported-allow-new-glibc) in the command, and it gave me this output

    linuxdeployqt 6 (commit d41e234), build 724 built on 2020-07-31 15:51:47 UTC
    WARNING: Not checking glibc on the host system.
    The resulting AppDir or AppImage may not run on older systems.
    This mode is unsupported and discouraged.
    For more information, please see
    https://github.com/probonopd/linuxdeployqt/issues/340
    Not using FHS-like mode
    app-binary: "/home/kaleem/Documents/cpp/deploy-with-linuxdeployqt/Process_Orders"
    appDirPath: "/home/kaleem/Documents/cpp/deploy-with-linuxdeployqt"
    relativeBinPath: "Process_Orders"
    WARNING: Plugin "/home/kaleem/anaconda3/plugins/platformthemes/libqgtk2.so" not found, skipping
    WARNING: Plugin "/home/kaleem/anaconda3/plugins/styles/libqgtk2style.so" not found, skipping

    I want to create an executable file , when I double click it, it should run just like it ran perfectly in qt creator
    .
    Can somebody help me out?

    jsulmJ 1 Reply Last reply
    0
    • A Ahsan Niaz

      Hi, I am trying to deploy my qt application on Linux
      I have downloaded linuxdeployqt-7-x86_64 from github
      I have followed the following steps

      Created a new folder named (deploy-with-linuxdeployqt), placed my qt app(Process_Orders) inside this folder. Then, placed an image file for icon, and a .desktop file as well.
      Desktop file looks like this

      [Desktop Entry]
      Type=Application
      Name=myfirst
      Exec=ortb
      Icon=otbb
      Comment=Edit this default file
      Categories=Qt;Utility;Documentation;
      Terminal=false
      After all this, my downloads folder has github downloaded file
      I cd to Downloads and run the following command

      ./linuxdeployqt-7-x86_64.AppImage ~/Documents/cpp/deploy-with-linuxdeployqt/Process_Orders

      It gave me the error that system is too new
      .
      Then I added (-unsupported-allow-new-glibc) in the command, and it gave me this output

      linuxdeployqt 6 (commit d41e234), build 724 built on 2020-07-31 15:51:47 UTC
      WARNING: Not checking glibc on the host system.
      The resulting AppDir or AppImage may not run on older systems.
      This mode is unsupported and discouraged.
      For more information, please see
      https://github.com/probonopd/linuxdeployqt/issues/340
      Not using FHS-like mode
      app-binary: "/home/kaleem/Documents/cpp/deploy-with-linuxdeployqt/Process_Orders"
      appDirPath: "/home/kaleem/Documents/cpp/deploy-with-linuxdeployqt"
      relativeBinPath: "Process_Orders"
      WARNING: Plugin "/home/kaleem/anaconda3/plugins/platformthemes/libqgtk2.so" not found, skipping
      WARNING: Plugin "/home/kaleem/anaconda3/plugins/styles/libqgtk2style.so" not found, skipping

      I want to create an executable file , when I double click it, it should run just like it ran perfectly in qt creator
      .
      Can somebody help me out?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Ahsan-Niaz said in Deploying qt creator project on linux - various problems:

      I want to create an executable file

      Executable file is created when you build your project, not when you deploy. If you deploy you get a directory containing your executable and all needed libraries. I don't see any errors in the output you posted. So, you should now have a directory with your executable and needed libs/plugins.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved