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. [ SOLVED] [iOS] use of undeclared identifier QProcess
Forum Updated to NodeBB v4.3 + New Features

[ SOLVED] [iOS] use of undeclared identifier QProcess

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 3 Posters 3.7k 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.
  • M Offline
    M Offline
    MaxL
    wrote on last edited by MaxL
    #1

    Hi all,

    I am using Qt5.5 and I have a lib that does not compile anymore for iOS.
    It uses QProcess ( my class inherits from it ) and all includes are there ( it was working with 5.4.2 ).

    With Qt5.5, I now get the following error: use of undeclared identifier 'QProcess'. I tried to directly include the right header ( QtCore/qprocess.h ) but it does not change a thing.

    I used Qt5.5 installer ( it is not a custom build ).

    Thanks for your help :)

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Here you have the reason why.
      Short version: iOS doesn't allow fork/exec

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        MaxL
        wrote on last edited by
        #3

        Hi,

        Thank you for your quick answer :)
        So it was not supposed to build before I guess.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Sourcerrer
          wrote on last edited by Sourcerrer
          #4

          I have an idea. We could use qemu-user-static as a library to make QProcess implementation to launch virtual processes inside the process for iOS.

          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