Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Problem with QProcess on embedded system
Qt 6.11 is out! See what's new in the release blog

Problem with QProcess on embedded system

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 3 Posters 2.8k Views 1 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.
  • G Offline
    G Offline
    goli
    wrote on last edited by
    #1

    i create a project that can run a exe file. i tried to run the program on linux(Ubuntu), and it works OK.
    when i run this on embedded it doesn't work.

    this is the code for the class that run the exe:

    @void ProcessControllerItem::startProcess(const QString& _path, const QString& _args)
    {
    QProcess* process = new QProcess;
    process->start(_path, _args.split(" "));
    }
    @

    when i run this function i pass the appropriate arguments to the function:

    1. the path - where the exe is (on the embedded - the path from the root)
    2. the arguments for the exe

    for example :
    @startProcess("/root/path/to/the/exe/myExeFile","1 2");@

    Does anyone have an idea why it does not work?

    tnx

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fluca1978
      wrote on last edited by
      #2

      I don't have any experience on embedded qt, but the first thing I would check is that the program exist and is executable, then that it is really not executed and maybe not executed and terminated immediately (wrong input?).

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #3

        You should check the return value of QProcess' error() method.

        http://www.catb.org/~esr/faqs/smart-questions.html

        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