Search code examples
xcodemacosinstallationmacos-sierraallegro

Fatal error: 'QuickTime/QuickTime.h' file not found


I updated my macOS to Sierra, and some of my files vanished. The most important were Allegro's library. I am trying to install it again like the video (https://www.youtube.com/watch?v=UJtmJfWNTJY) which I saw the first time which I installed, but the follow error message has been showing:

'$Users/macbookpro/Downloads/allegro/include/allegro5/platform/alosx.h:43:12: fatal error: 
      'QuickTime/QuickTime.h' file not found'
  #import <QuickTime/QuickTime.h>

I searched for it and I discovered that is just change parameters in Xcode, however, I am not using Xcode to compile my code, although terminal. Any hint?


Solution

  • There are a lot of projects out there experiencing this problem, due to Apple's habit of deprecating commonly used libraries. You are not the only one having this issue. See links below. You could copy paste the deprecated SDK's into Xcode as a workaround. Or edit your code to use AVFoundation.framework instead. See Apple's table on deprecated frameworks.

    Xcode 8/macOS 10.12 removed QtKit support

    QuickTime/QuickTime.h: file not found

    Here is a workaround explained:

    Solved: macOS Sierra, Xcode 8, missing quicktime.h