Search code examples
xcodeopenframeworks

Xcode - 'openssl/opensslconf.h' file not found


I want to run the openFrameworks's examples following this tutorial (http://www.openframeworks.cc/setup/xcode/), but I have the following issue:

'openssl/opensslconf.h' file not found [enter image description here

Anyone knows how to solve it?

Thanks!


Solution

  • Coped from http://forum.openframeworks.cc/t/fix-for-xcode-7-and-of-0-8-4-opensslconf-h-not-found/20800

    When building an OF 0.8.4 project with Xcode 7, you may see the following error:

    'openssl/opensslconf.h' file not found

    To fix this, open the file CoreOF.xcconfig in libs/openFrameworksCompiled/project/osx/ and add the following line at the bottom:

    USER_HEADER_SEARCH_PATHS = "$(OF_PATH)/libs/openssl/include"
    

    If you understand the .xcconfig format, a cleaner fix would be to define a HEADER_OPENSSL variable at the top of the file, and add it to the OF_CORE_HEADERS list. The above fix should work fine, though.