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. Porting from Windows to OSX and iOS
Qt 6.11 is out! See what's new in the release blog

Porting from Windows to OSX and iOS

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 2 Posters 1.1k 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.
  • A Offline
    A Offline
    abuv
    wrote on last edited by
    #1

    I have made a previous build on Windows and I am trying to port everything to OSX and iOS. I am following the directions given here:

    https://qt-project.org/doc/qt-5-snapshot/porting-to-ios.html

    The problem I am having is I have a file being copied to the build from an external source. So what I did in the Windows build is something like this in the .pro:

    QMAKE_POST_LINK = copy $${SRCDIR}\file.h $${DESTDIR}
    message(POST: $${QMAKE_POST_LINK})

    This worked on windows, but on OS X, I am getting an error saying “copy” is not a file or directory. It is acting as if it is part of the source directory in the code above. Is there a different syntax or something I am missing?

    Also, when I am trying to port to iOS, I am getting an error saying:

    Project ERROR: Unknown module(s) in QT: serialport

    is this module not supported on iOS?

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

      Hi,

      copy is a windows command, you should use:

      @$(COPY)@

      Which will be replaced by the right command.

      As for the QtSerialPort module, from the top of my head, i'd say no.

      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
      • A Offline
        A Offline
        abuv
        wrote on last edited by
        #3

        Yes! I got it SGaist. What actually worked was as follows:

        @$(cp $${SRCDIR}/file.h $${DESTDIR})@

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

          It should rather be:

          @$(COPY) $${SRCDIR}/file.h $${DESTDIR}@

          So you don't have to have a similar line for each platform

          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

          • Login

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