Where to get macos SDK 10.6 for Xcode?

后端 未结 5 1697
迷失自我
迷失自我 2020-12-23 12:17

I am having Xcode 4.4 on OS X Lion. I\'d like to install the Mac 10.6 SDK - also known as macosx10.7 SDK - because I need to compile openFrameworks.

I f

5条回答
  •  旧时难觅i
    2020-12-23 13:00

    Somewhat off topic, but I hit a very similar problem trying to install Erlang using kerl.

    Everything worked for me until the "kerl build ..." step. The build log showed the following error:

    odbcserver.c:117:10: fatal error: 'sql.h' file not found #include "sql.h"
    

    The problem is that the ODBC is no longer part of the Mavericks installation(i.e., MacOS 10.6 SDK isn't installed). Piecing together advice from a variety of sites, none of which worked by themselves, the following set of steps fixed the issue:

    1. brew install unixodbc - installs the missing ODBC libraries and include files (e.g., sql.h).
    2. Set CFLAGS to point to the include directory for the unixodbc installation as part of the kerl build command (e.g.,):

      CFLAGS="-I/usr/local/Cellar/unixodbc/2.3.2/include" ./kerl build R15B R15B

    This points the build to the ODBC include files.

    My environment is Mavericks, the xcode command line tools, and xcode v5.1.1.

提交回复
热议问题