Build Qt 5.5 dev branch for ios



  • 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.


  • Lifetime Qt Champion

    Hi,

    You should also add which version of Xcode you are running



  • 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 */
    ^
    @



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



  • @Sergiy thanks ! next time i try i will.



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.