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. Problems building for iOS with Qt5 - missing qtcocoamain
Forum Updated to NodeBB v4.3 + New Features

Problems building for iOS with Qt5 - missing qtcocoamain

Scheduled Pinned Locked Moved Mobile and Embedded
3 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.
  • X Offline
    X Offline
    xris
    wrote on last edited by
    #1

    I have checked out the Qt5 source (git://gitorious.org/qt/qt5.git) and built it using the following configure options:

    @/configure -xplatform unsupported/macx-ios-clang -developer-build -nomake examples -nomake tests -release@

    I have successfully (with warnings) used qtbase/bin/qmake on my .pro file and when I open the resulting xcode project, I get a linker error:

    @ld: linker not found for -lqtcocoamain@

    I have tried to look for the source for the qtcocoamain project, but can't find it anywhere. Has anyone else seen this problem or have an idea how to build that library?

    Thanks.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      CuteiOS
      wrote on last edited by
      #2

      Not quite sure why you're getting this error, but the cause is that the build system is trying to link the 'cocoa' (Mac OSX) platform plugin, which can't and won't work on iOS. More recent versions of Qt require that the iOS SDK is specified on the command-line, so you may have more success adding '-sdk iphoneos' to your configure command-line.

      1 Reply Last reply
      0
      • X Offline
        X Offline
        xris
        wrote on last edited by
        #3

        Thank you for your reply.

        I will try to recompile.

        How do I determine that xcode is using the proper Qt? (ie. the one I just built, and not the one installed with 5.1.1 for Mac OSX)

        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