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. IOS & libstdc++
Forum Updated to NodeBB v4.3 + New Features

IOS & libstdc++

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 2 Posters 1.3k Views 2 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.
  • V Offline
    V Offline
    VeNToR
    wrote on 28 Mar 2017, 20:46 last edited by
    #1

    make gives error while compile for IOS with following configuration;

    error : ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/libstdc++.6.dylib, missing required architecture armv7 in file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/libstdc++.6.dylib

    .pro is;

    	ios {
    		CONFIG				+=	shared
    		CONFIG				+= c++11
    		LIBS				+= /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/libstdc++.6.dylib
    		}
    

    ... but when "shared" changed to "app" is Ok !...

    I have already tried several configuration to solve it...

    Thanks...

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 28 Mar 2017, 20:57 last edited by
      #2

      Hi,

      Why are you linking to libstdc++ like that ?

      Qt already links to the correct version of the C++ library needed.

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

      V 1 Reply Last reply 28 Mar 2017, 21:06
      0
      • S SGaist
        28 Mar 2017, 20:57

        Hi,

        Why are you linking to libstdc++ like that ?

        Qt already links to the correct version of the C++ library needed.

        V Offline
        V Offline
        VeNToR
        wrote on 28 Mar 2017, 21:06 last edited by
        #3

        @SGaist Good point ! But I am using 3rd framework for IOS, and it needs. I don't know why ? Problem is when I changed to app from shared lib then it is compile without error.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 28 Mar 2017, 21:08 last edited by
          #4

          I don't either.

          However it still looks fishy to link to a library for the simulator while it looks like you are building an application for a device.

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

          V 1 Reply Last reply 28 Mar 2017, 21:12
          0
          • S SGaist
            28 Mar 2017, 21:08

            I don't either.

            However it still looks fishy to link to a library for the simulator while it looks like you are building an application for a device.

            V Offline
            V Offline
            VeNToR
            wrote on 28 Mar 2017, 21:12 last edited by
            #5

            @SGaist Thanks... I am still working on it...

            1 Reply Last reply
            0

            1/5

            28 Mar 2017, 20:46

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved