IOS & libstdc++



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


  • Lifetime Qt Champion

    Hi,

    Why are you linking to libstdc++ like that ?

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



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


  • Lifetime Qt Champion

    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.



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


Log in to reply
 

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