zoukankan      html  css  js  c++  java
  • 初识IOS

    编译环境: ssh cloud@10.0.4.148  mx-cloud

    1、关于ARM架构

      IPHONE上的ARM-CPU架构在不断的进化过程中,目前情况如下:

    ARMv8 / ARM64 = iPhone 5s
    ARMv7s = iPhone 5, iPhone 5c, iPad 4
    ARMv7  = iPhone 3GS, iPhone 4, iPhone 4S, iPod 3G/4G/5G, iPad, iPad 2, iPad 3, iPad Mini  
    ARMv6  = iPhone 2G/3G, iPod 1G/2G

    2、关于XCode版本问题

      1)先查看xcode位置:xcode-select --print-path

      2)然后在xcode的目录下面运行:/Developer/usr/bin/xcodebuild -version

    3、关于IOS中的交叉编译

      http://hi.baidu.com/yetao19860606/item/aa1eda0cc3b06276bee97e6c

      通过 --host 来指定,同时需要使用 -isysroot 来指定目标设备SDK的类库于头文件

    http://stackoverflow.com/questions/7850624/how-to-compile-fftw3-on-ios
    
    --build=BUILD     configure for building on BUILD [guessed]
    --host=HOST       cross-compile to build programs to run on HOST [BUILD]
    So the key is to pass --host=arm-apple-darwin10, and execute configure with the correct alterations to PATH, CFLAGS, LDFLAGS, etc.
    
    PATH=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:$PATH 
    ../configure --host=arm-apple-darwin10 CFLAGS="-I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/include -I/Library/iPhone/include -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk" 
    CC=arm-apple-darwin10-gcc-4.2.1 
    CPP=cpp 
    LDFLAGS="-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk" 
    --enable-single
  • 相关阅读:
    JZ2440开发板开发环境搭建
    20180730-宿主机开发环境搭建
    20180319-双网卡电脑同时上内外网
    嵌入式ARM板子起步
    20180127-服务器开发环境搭建
    Pool多进程示例
    Python基础-day01
    解释型语言与编译型语言
    C 编译过程浅析
    博客奇谭
  • 原文地址:https://www.cnblogs.com/chang290/p/3335108.html
Copyright © 2011-2022 走看看