Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QProcess on installer provided Qt crashes.
Qt 6.11 is out! See what's new in the release blog

QProcess on installer provided Qt crashes.

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 481 Views 2 Watching
  • 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.
  • D Offline
    D Offline
    damianatorrpm
    wrote on last edited by aha_1980
    #1

    Hello Forum,

    I have a Qt version (from the installer) installed on Linux which is not the same as the system Qt libraries (different version).
    When I try to start a new process using QProcess::startDetached() but this segfaults due to Qt%systemversion% private headers.
    If I use the system Qt version all is good. How can I use the Qt version that comes with the installer and have QProcess launching the program?

    jsulmJ 1 Reply Last reply
    0
    • D damianatorrpm

      Hello Forum,

      I have a Qt version (from the installer) installed on Linux which is not the same as the system Qt libraries (different version).
      When I try to start a new process using QProcess::startDetached() but this segfaults due to Qt%systemversion% private headers.
      If I use the system Qt version all is good. How can I use the Qt version that comes with the installer and have QProcess launching the program?

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

      @damianatorrpm said in QProcess on installer provided Qt crashes.:

      but this segfaults due to Qt%systemversion% private headers.

      This sounds like you're mixing Qt libraries from different versions.
      How do you start your app?
      Which application is started via QProcess::startDetached()? Is it a Qt app? If so which Qt version was used to build it?

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

      1 Reply Last reply
      4
      • Kent-DorfmanK Offline
        Kent-DorfmanK Offline
        Kent-Dorfman
        wrote on last edited by Kent-Dorfman
        #3

        read up on how the link loader works in Linux, particularly the order that libraries are searched and how to override with LD_LIBRARY_PATH. No guarantees though, as mixing library version is always hit or miss.

        The dystopian literature that served as a warning in my youth has become an instruction manual in my elder years.

        1 Reply Last reply
        3
        • D Offline
          D Offline
          damianatorrpm
          wrote on last edited by damianatorrpm
          #4

          Thank you for the replies!
          I thought no one did reply (I subscribed - "Watching") but received no email... (not in spam as well)

          =>LD_LIBRARY_PATH
          thank you Kent I will do so

          1 Reply Last reply
          1

          • Login

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