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. Unable to build QT 5.4 for iOS from source
QtWS25 Last Chance

Unable to build QT 5.4 for iOS from source

Scheduled Pinned Locked Moved Mobile and Embedded
iossource5.4.2
9 Posts 3 Posters 3.6k Views
  • 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.
  • P Offline
    P Offline
    phobos8
    wrote on 5 Jun 2015, 15:16 last edited by
    #1

    I'm unable to build Qt 5.4.2 for iOS nor iphonesimulator.

    Having errors during configure part, then having fatal errors while performing make step.

    New to building from source, my configure command is
    /configure -top-level -xplatform macx-ios-clang -sdk iphonesimulator -nomake tests -debug-and-release -confirm-license -v

    then getting errors and warnings, like

    clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
    Symbol visibility control enabled.
    clang: error: invalid linker name in argument '-fuse-ld=gold'
    /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.

    then

    Project ERROR: mtdev development package not found
    mtdev disabled.

    libjpeg.cpp:37:10: fatal error: 'jpeglib.h' file not found
    #include <jpeglib.h>
    ^
    1 error generated.
    make: *** [libjpeg.o] Error 1
    libjpeg disabled.

    and many more similar to this one

    As i said I'm new to building from source. I've checked my XCode version and sdk versions, everything should be ok, but regarding those errors I assume I'm having some troubles with linking or something like it.

    Thank you for any help ;)

    M 1 Reply Last reply 2 Jul 2015, 14:57
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 5 Jun 2015, 22:08 last edited by
      #2

      Hi,

      Do you have the same error if you use the line provided in the Building from source iOS ?

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

      P 2 Replies Last reply 6 Jun 2015, 08:42
      0
      • S SGaist
        5 Jun 2015, 22:08

        Hi,

        Do you have the same error if you use the line provided in the Building from source iOS ?

        P Offline
        P Offline
        phobos8
        wrote on 6 Jun 2015, 08:42 last edited by
        #3

        @SGaist I think is was the first thing i tried, but it didn't work, so i tried some different configure commands i found, like the one above. I can try it again and tell you.

        1 Reply Last reply
        0
        • S SGaist
          5 Jun 2015, 22:08

          Hi,

          Do you have the same error if you use the line provided in the Building from source iOS ?

          P Offline
          P Offline
          phobos8
          wrote on 11 Jun 2015, 08:39 last edited by
          #4

          @SGaist

          I tried again to build it with configure commant with that guide ./configure -xplatform macx-ios-clang -release and got the same error.

          Without -nomake argument it starts to make after same errors thrown, and while making it throws fatal errors like Unsupported architecture, then a lot of unknown type errors in types.h and everything ends in a few seconds by sentence too many errors emitted, stopping now. Then it says STL disabled.
          STL functionality check failed! Cannot build Qt with this STL library.

          Here is where i posted a whole report : http://pastebin.com/jSPp14Qz

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 12 Jun 2015, 19:44 last edited by
            #5

            What version of Xcode are you using ?

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

            P 2 Replies Last reply 13 Jun 2015, 15:16
            0
            • S SGaist
              12 Jun 2015, 19:44

              What version of Xcode are you using ?

              P Offline
              P Offline
              phobos8
              wrote on 13 Jun 2015, 15:16 last edited by
              #6

              @SGaist I'll let you know as i get to my mac, but i hope i'm using the latest one.

              1 Reply Last reply
              0
              • S SGaist
                12 Jun 2015, 19:44

                What version of Xcode are you using ?

                P Offline
                P Offline
                phobos8
                wrote on 15 Jun 2015, 15:03 last edited by
                #7

                @SGaist So I have the latest XCode, but errors are still the same. I really don't understanad where the problem is. When it starts the making step, it emmits an Unsupported architecture error. The full list of errors during config and make steps is 2 posts above. I'm starting to be desperate ..

                1 Reply Last reply
                0
                • P phobos8
                  5 Jun 2015, 15:16

                  I'm unable to build Qt 5.4.2 for iOS nor iphonesimulator.

                  Having errors during configure part, then having fatal errors while performing make step.

                  New to building from source, my configure command is
                  /configure -top-level -xplatform macx-ios-clang -sdk iphonesimulator -nomake tests -debug-and-release -confirm-license -v

                  then getting errors and warnings, like

                  clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated
                  Symbol visibility control enabled.
                  clang: error: invalid linker name in argument '-fuse-ld=gold'
                  /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.

                  then

                  Project ERROR: mtdev development package not found
                  mtdev disabled.

                  libjpeg.cpp:37:10: fatal error: 'jpeglib.h' file not found
                  #include <jpeglib.h>
                  ^
                  1 error generated.
                  make: *** [libjpeg.o] Error 1
                  libjpeg disabled.

                  and many more similar to this one

                  As i said I'm new to building from source. I've checked my XCode version and sdk versions, everything should be ok, but regarding those errors I assume I'm having some troubles with linking or something like it.

                  Thank you for any help ;)

                  M Offline
                  M Offline
                  Manfred
                  wrote on 2 Jul 2015, 14:57 last edited by
                  #8

                  @phobos8
                  Hi
                  I've got the exact same problem on my Mac with OSX Yosemite and XCode 6.1.
                  I cloned the source, checked out to version 5.4.2 and tried to configure but I get the same errors as you.

                  Do you have a solution yet?

                  thanks in advance,
                  best regards
                  Manfred

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    Manfred
                    wrote on 2 Jul 2015, 16:24 last edited by
                    #9

                    Oh well, I had a typo in my config path, sorry !
                    Configure and make work well now!

                    cheers
                    Manfred

                    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