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. Compiling for iOS failed - Memory ?
Forum Updated to NodeBB v4.3 + New Features

Compiling for iOS failed - Memory ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 2 Posters 1.2k 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.
  • LordfulL Offline
    LordfulL Offline
    Lordful
    wrote on last edited by
    #1

    Hello, I'm writing an iPhone app that uses QNetworkAccessManager && QSvgRenderer.

    My code works like a charm on the desktop but on my iPad, I have this errors at compiling :

    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2701:35: error: expected expression
            {return __ptr_.first() != ;}
                                      ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:2892:35: error: expected expression
            {return __ptr_.first() != ;}
                                      ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3035:35: error: expected expression
        return less<_P1>()(__x.get(), );
                                      ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3044:24: error: expected expression
        return less<_P1>()(, __x.get());
                           ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3052:13: error: expected expression
        return  < __x;
                ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3060:18: error: expected expression
        return __x < ;
                     ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3068:15: error: expected expression
        return !( < __x);
                  ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3076:20: error: expected expression
        return !(__x < );
                       ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3084:20: error: expected expression
        return !(__x < );
                       ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3092:15: error: expected expression
        return !( < __x);
                  ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4918:36: error: expected expression
        return less<_Tp*>()(__x.get(), );
                                       ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4926:25: error: expected expression
        return less<_Tp*>()(, __x.get());
                            ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4934:13: error: expected expression
        return  < __x;
                ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4942:18: error: expected expression
        return __x < ;
                     ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4950:15: error: expected expression
        return !( < __x);
                  ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4958:20: error: expected expression
        return !(__x < );
                       ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4966:20: error: expected expression
        return !(__x < );
                       ^
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:4974:15: error: expected expression
        return !( < __x);
                  ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    

    And many more.

    Is this a problem of memory in my application ? Maybe there is too much dynamic allocation or something ?

    Thanks for your answer.

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

      Hi,

      How big is your application ? Do you have assets in it ?

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

      LordfulL 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        How big is your application ? Do you have assets in it ?

        LordfulL Offline
        LordfulL Offline
        Lordful
        wrote on last edited by Lordful
        #3

        @SGaist It's not a big application but there is some kind of these :

        #ifdef TARGET_TYPE_XXX
        #include <xxxx.h>
        #else
        ...
        ...
        

        Is it a problem on iOS ?

        I also tried to add different type of c++11 to the pro file but anyway, that changes nothing.

        CONFIG += c++11
        QMAKE_CXXFLAGS += -std=c++11
        

        It's strange

        EDIT 1 : After working on an other project, It looks like it's not a problem with my project but with the environment. Even with a new project, I can't launch it on iOS, same errors.

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

          What version of Qt are you using ? On what version of OS X ? Which 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

          LordfulL 1 Reply Last reply
          0
          • SGaistS SGaist

            What version of Qt are you using ? On what version of OS X ? Which Xcode are you using ?

            LordfulL Offline
            LordfulL Offline
            Lordful
            wrote on last edited by
            #5

            @SGaist Qt Version : 5.5 - OS X version : 10.11.5 - Xcode version : 7.3

            Everything is up-to-date and it was working on monday and then errors. The project is still running on an other Mac..

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

              That's strange, did you have any update in between from your system ?

              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