It seems that many sample code that has to do with OpenGL do not compile on Xcode 3+.
I downloaded from ADC sample code:
List of some errors:
Building target “QTCoreVideo201” of project “QTCoreVideo201” with configuration “Debug”
Checking Dependencies
Processing /Users/jessecarpenter/Desktop/QTCoreVideo201/build/Debug/QTCoreVideo201.app/Contents/Info.plist Info.plist mkdir /Users/jessecarpenter/Desktop/QTCoreVideo201/build/Debug/QTCoreVideo201.app/Contents cd /Users/jessecarpenter/Desktop/QTCoreVideo201 <com.apple.tools.info-plist-utility> Info.plist -genpkginfo /Users/jessecarpenter/Desktop/QTCoreVideo201/build/Debug/QTCoreVideo201.app/Contents/PkgInfo -expandbuildsettings -o /Users/jessecarpenter/Desktop/QTCoreVideo201/build/Debug/QTCoreVideo201.app/Contents/Info.plist
CopyStringsFile /Users/jessecarpenter/Desktop/QTCoreVideo201/build/Debug/QTCoreVideo201.app/Contents/Resources/English.lproj/InfoPlist.strings English.lproj/InfoPlist.strings mkdir /Users/jessecarpenter/Desktop/QTCoreVideo201/build/Debug/QTCoreVideo201.app/Contents/Resources/English.lproj cd /Users/jessecarpenter/Desktop/QTCoreVideo201 setenv ICONV /usr/bin/iconv /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings --validate --inputencoding UTF-16 --outputencoding UTF-16 English.lproj/InfoPlist.strings --outdir /Users/jessecarpenter/Desktop/QTCoreVideo201/build/Debug/QTCoreVideo201.app/Contents/Resources/English.lproj
CpResource build/Debug/QTCoreVideo201.app/Contents/Resources/icon.icns icon.icns cd /Users/jessecarpenter/Desktop/QTCoreVideo201 /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-src-symlinks /Users/jessecarpenter/Desktop/QTCoreVideo201/icon.icns /Users/jessecarpenter/Desktop/QTCoreVideo201/build/Debug/QTCoreVideo201.app/Contents/Resources
CpResource build/Debug/QTCoreVideo201.app/Contents/Resources/ReadMe.rtfd ReadMe.rtfd cd /Users/jessecarpenter/Desktop/QTCoreVideo201 /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-src-symlinks /Users/jessecarpenter/Desktop/QTCoreVideo201/ReadMe.rtfd /Users/jessecarpenter/Desktop/QTCoreVideo201/build/Debug/QTCoreVideo201.app/Contents/Resources
CpResource build/Debug/QTCoreVideo201.app/Contents/Resources/English.lproj/Credits.rtf English.lproj/Credits.rtf cd /Users/jessecarpenter/Desktop/QTCoreVideo201 /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-src-symlinks /Users/jessecarpenter/Desktop/QTCoreVideo201/English.lproj/Credits.rtf /Users/jessecarpenter/Desktop/QTCoreVideo201/build/Debug/QTCoreVideo201.app/Contents/Resources/English.lproj
CompileXIB /Users/jessecarpenter/Desktop/QTCoreVideo201/English.lproj/MainMenu.xib cd /Users/jessecarpenter/Desktop/QTCoreVideo201 /Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text --compile /Users/jessecarpenter/Desktop/QTCoreVideo201/build/Debug/QTCoreVideo201.app/Contents/Resources/English.lproj/MainMenu.nib /Users/jessecarpenter/Desktop/QTCoreVideo201/English.lproj/MainMenu.xib
CpResource build/Debug/QTCoreVideo201.app/Contents/Resources/PixelFormat.plist "Sources/Classes/Application/Model/OpenGL/Pixels/Property List/PixelFormat.plist" cd /Users/jessecarpenter/Desktop/QTCoreVideo201 /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-src-symlinks "/Users/jessecarpenter/Desktop/QTCoreVideo201/Sources/Classes/Application/Model/OpenGL/Pixels/Property List/PixelFormat.plist" /Users/jessecarpenter/Desktop/QTCoreVideo201/build/Debug/QTCoreVideo201.app/Contents/Resources
CpResource build/Debug/QTCoreVideo201.app/Contents/Resources/Teapot.plist "Sources/Classes/Application/Model/OpenGL/Teapot/Property List/Teapot.plist" cd /Users/jessecarpenter/Desktop/QTCoreVideo201 /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp -exclude .DS_Store -exclude CVS -exclude .svn -resolve-src-symlinks "/Users/jessecarpenter/Desktop/QTCoreVideo201/Sources/Classes/Application/Model/OpenGL/Teapot/Property List/Teapot.plist" /Users/jessecarpenter/Desktop/QTCoreVideo201/build/Debug/QTCoreVideo201.app/Contents/Resources
ProcessPCH /var/folders/Zt/ZtQM-OTQEQ4rsQMv1q-j-k+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/QTCoreVideo201_Prefix-etnyqlgjtbuhgpedcntczallmkfo/QTCoreVideo201_Prefix.pch.gch "./Sources/Precompiled Headers/QTCoreVideo201_Prefix.pch" normal i386 objective-c com.apple.compilers.gcc.4_0 cd /Users/jessecarpenter/Desktop/QTCoreVideo201 /Developer/usr/bin/gcc-4.0 -x objective-c-header -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -mfix-and-continue -gdwarf-2 -iquote /Users/jessecarpenter/Desktop/QTCoreVideo201/build/QTCoreVideo201.build/Debug/QTCoreVideo201.build/QTCoreVideo201-generated-files.hmap -I/Users/jessecarpenter/Desktop/QTCoreVideo201/build/QTCoreVideo201.build/Debug/QTCoreVideo201.build/QTCoreVideo201-own-target-headers.hmap -I/Users/jessecarpenter/Desktop/QTCoreVideo201/build/QTCoreVideo201.build/Debug/QTCoreVideo201.build/QTCoreVideo201-all-target-headers.hmap -iquote /Users/jessecarpenter/Desktop/QTCoreVideo201/build/QTCoreVideo201.build/Debug/QTCoreVideo201.build/QTCoreVideo201-project-headers.hmap -F/Users/jessecarpenter/Desktop/QTCoreVideo201/build/Debug -I/Users/jessecarpenter/Desktop/QTCoreVideo201/build/Debug/include -I/Users/jessecarpenter/Desktop/QTCoreVideo201/build/QTCoreVideo201.build/Debug/QTCoreVideo201.build/DerivedSources/i386 -I/Users/jessecarpenter/Desktop/QTCoreVideo201/build/QTCoreVideo201.build/Debug/QTCoreVideo201.build/DerivedSources -c "/Users/jessecarpenter/Desktop/QTCoreVideo201/./Sources/Precompiled Headers/QTCoreVideo201_Prefix.pch" -o /var/folders/Zt/ZtQM-OTQEQ4rsQMv1q-j-k+++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/QTCoreVideo201_Prefix-etnyqlgjtbuhgpedcntczallmkfo/QTCoreVideo201_Prefix.pch.gch /Users/jessecarpenter/Desktop/QTCoreVideo201/./Sources/Precompiled Headers/QTCoreVideo201_Prefix.pch:6:28: error: Cocoa/Cocoa.h: No such file or directory /Users/jessecarpenter/Desktop/QTCoreVideo201/./Sources/Precompiled Headers/QTCoreVideo201_Prefix.pch:7:25: error: QTKit/QTKit.h: No such file or directory /Users/jessecarpenter/Desktop/QTCoreVideo201/./Sources/Precompiled Headers/QTCoreVideo201_Prefix.pch:10:32: error: QuickTime/QuickTime.h: No such file or directory /Users/jessecarpenter/Desktop/QTCoreVideo201/./Sources/Precompiled Headers/QTCoreVideo201_Prefix.pch:11:26: error: OpenGL/OpenGL.h: No such file or directory /Users/jessecarpenter/Desktop/QTCoreVideo201/./Sources/Precompiled Headers/QTCoreVideo201_Prefix.pch:12:22: error: OpenGL/gl.h: No such file or directory /Users/jessecarpenter/Desktop/QTCoreVideo201/./Sources/Precompiled Headers/QTCoreVideo201_Prefix.pch:13:23: error: OpenGL/glu.h: No such file or directory |