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. Build Qt 5.5 dev branch for ios
Qt 6.11 is out! See what's new in the release blog

Build Qt 5.5 dev branch for ios

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

    i'm trying to build the dev branch (Qt 5.5) from source for ios (on osx 10.10.1)
    so far i have collected the following steps:

    @git clone https://git.gitorious.org/qt/qt5.git qt5
    cd qt5
    git checkout dev
    ./init-repository
    ./configure -developer-build -opensource -nomake examples -nomake tests -skip qtwebkit
    make -j4@

    but i don't think this configure will give me a ios build, does it ? how can i check what architectures are supported by a particular build ( qmake --version only shows i'm using 5.5.0 )

    if i try
    @ ./configure -xplatform macx-ios-clang -release@

    it gives me an error like

    @...
    <srcbase> = /Users/bla/qt5/qtbase
    <outbase> = /Users/bla/qt5/qtbase
    Creating qmake...
    ..Done.
    Running configuration tests...

    Could not determine the target architecture!
    Turn on verbose messaging (-v) to see the final report.
    WARNING: Unable to find file .device.vars
    STL functionality check failed! Cannot build Qt with this STL library.
    Turn on verbose messaging (-v) to /Users/bla/qt5/qtbase/configure to see the final report.
    @

    any help appreciated.

    update: the -v verbose mode eventually gives up after many many messages that i'm not sure what they mean. i'll post them here when i get back home tonight.

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

      Hi,

      You should also add which version of Xcode you are running

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

        using XCode 6.1.1 i think this should be the latest version

        and the beginning of the (very) verbose errors:

        @
        luminum-2:qt5 bla$ ./configure -xplatform macx-ios-clang -release -v

        • cd qtbase
        • /Users/bla/qt5/qtbase/configure -top-level -xplatform macx-ios-clang -release -v
          .....
          Do you accept the terms of either license? yes

        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -fvisibility=hidden fvisibility.c
        clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
        Symbol visibility control enabled.
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -o libtest.so -shared -Wl,-Bsymbolic-functions -fPIC bsymbolic_functions.c
        clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
        ld: unknown option: -Bsymbolic-functions
        clang: error: linker command failed with exit code 1 (use -v to see invocation)
        Symbolic function binding disabled.
        DEFAULT_INCDIRS="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/c++/4.2.1
        /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/c++/4.2.1/backward
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
        /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include
        "
        DEFAULT_LIBDIRS="/lib
        /usr/lib"
        <srcbase> = /Users/bla/qt5/qtbase
        <outbase> = /Users/bla/qt5/qtbase
        Creating qmake...
        make: Nothing to be done for `first'.
        Running configuration tests...
        pkg-config support disabled.
        Determining architecture... ()
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -fvisibility=hidden -fpascal-strings -fmessage-length=0 -Wno-trigraphs -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wunused-variable -Wunused-value -Wno-shorten-64-to-32 -Wno-sign-conversion -fexceptions -fasm-blocks -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wformat -Wno-missing-braces -Wno-unused-function -Wno-unused-label -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-sign-compare -Wpointer-sign -Wno-newline-eof -Wdeprecated-declarations -Winvalid-offsetof -Wno-conversion -fvisibility-inlines-hidden -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -arch i386 -arch x86_64 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -miphoneos-version-min=5.1.1 -Wall -W -fPIE -DDARWIN_NO_CARBON -DQT_NO_PRINTER -DQT_NO_PRINTDIALOG -I. -I/Users/bla/qt5/qtbase/mkspecs/macx-ios-clang/ios -I../../mkspecs/macx-ios-clang -o arch.o arch.cpp
        In file included from arch.cpp:37:
        In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/stdio.h:64:
        /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/sys/cdefs.h:680:2: error: Unsupported architecture
        #error Unsupported architecture
        ^
        In file included from arch.cpp:37:
        In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/stdio.h:67:
        In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/_types.h:27:
        In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/sys/_types.h:33:
        /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
        #error architecture not supported
        ^
        In file included from arch.cpp:37:
        In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/stdio.h:67:
        In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/_types.h:27:
        /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
        typedef __int64_t __darwin_blkcnt_t; /* total blocks */
        ^
        @

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

          I had similar issue. Disabling Qt environment variables fixed it.

          clogwogC H 2 Replies Last reply
          0
          • S Sergiy

            I had similar issue. Disabling Qt environment variables fixed it.

            clogwogC Offline
            clogwogC Offline
            clogwog
            wrote on last edited by
            #5

            @Sergiy thanks ! next time i try i will.

            1 Reply Last reply
            0
            • S Sergiy

              I had similar issue. Disabling Qt environment variables fixed it.

              H Offline
              H Offline
              hamer
              wrote on last edited by
              #6

              @Sergiy How did you disable the Qt environment variables? When I look into the path there seems nothing related to Qt.

              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