Juce/build/macosx/Juce.xcodeproj build fails, QTMovie.h


#1

Hey folks,

My computer is a MacBook Pro: with a 2.66 GHz Intel Core 2 Duo, 4 GB Memory, 1067 MHz DDR3
Xcode 3.2.3 Xcode IDE 1688.0, Xcode Core 1691, ToolSupport 1591
running Mac OSX 10.6.4

I just downloaded juce and tried building juce/build/macosx/Juce.xcodeproj
and I get a ton of errors, see below.

Build Juce of project Juce with configuration Debug

CompileC …/…/bin/Juce.build/Debug/Juce.build/Objects-normal/i386/juce_mac_NativeCode.o …/…/src/native/juce_mac_NativeCode.mm normal i386 objective-c++ com.apple.compilers.gcc.4_2
cd /Users/nick/Desktop/UA/juce/build/macosx
setenv LANG en_US.US-ASCII
/Developer/usr/bin/gcc-4.2 -x objective-c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wmissing-field-initializers -Wreturn-type -Wnon-virtual-dtor -Wmissing-braces -Wparentheses -Wswitch -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -D_DEBUG=1 -DDEBUG=1 -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-version-min=10.4 -gdwarf-2 -I/Users/nick/Desktop/UA/juce/build/macosx/…/…/bin/Juce.build/Debug/Juce.build/jucedebug.hmap -F/Users/nick/Desktop/UA/juce/build/macosx/…/…/bin -I/Users/nick/stuff/vstsdk2.4 -I/Users/nick/Desktop/UA/juce/build/macosx/…/…/bin/include -I/Users/nick/Desktop/UA/juce/build/macosx/…/…/bin/Juce.build/Debug/Juce.build/DerivedSources/i386 -I/Users/nick/Desktop/UA/juce/build/macosx/…/…/bin/Juce.build/Debug/Juce.build/DerivedSources -c /Users/nick/Desktop/UA/juce/build/macosx/…/…/src/native/juce_mac_NativeCode.mm -o /Users/nick/Desktop/UA/juce/build/macosx/…/…/bin/Juce.build/Debug/Juce.build/Objects-normal/i386/juce_mac_NativeCode.o

In file included from /System/Library/Frameworks/QTKit.framework/Headers/QTKit.h:14,
from /Users/nick/Desktop/UA/juce/build/macosx/…/…/src/native/mac/juce_mac_NativeIncludes.h:58,
from /Users/nick/Desktop/UA/juce/build/macosx/…/…/src/native/juce_mac_NativeCode.mm:37:
/System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:602: error: ‘movieProgressOpen’ was not declared in this scope
/System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:603: error: ‘movieProgressUpdatePercent’ was not declared in this scope
/System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:604: error: ‘movieProgressClose’ was not declared in this scope
/System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:696: error: expected ;' before '_movie' /System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:890: error: expected type-specifier before 'Movie' /System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:890: error: expected)’ before ‘Movie’
/System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:890: error: expected ;' before ')' token /System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:1006: error: expected type-specifier before 'Movie' /System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:1006: error: expected)’ before ‘Movie’
/System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:1006: error: expected ;' before ')' token /System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:1636: error: expected type-specifier before 'Movie' /System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:1636: error: expected)’ before ‘Movie’
/System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:1636: error: expected ;' before ')' token /System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:1645: error: expected type-specifier before 'MovieController' /System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:1645: error: expected)’ before ‘MovieController’
/System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:1645: error: expected ;' before ')' token /System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:1691: error: expected type-specifier before 'QTVisualContextRef' /System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:1691: error: expected)’ before ‘QTVisualContextRef’
/System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:1691: error: expected ;' before ')' token /System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:1699: error: expected type-specifier before 'QTVisualContextRef' /System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:1699: error: expected)’ before ‘QTVisualContextRef’
/System/Library/Frameworks/QTKit.framework/Headers/QTMovie.h:1699: error: expected ;' before ')' token In file included from /System/Library/Frameworks/QTKit.framework/Headers/QTKit.h:15, from /Users/nick/Desktop/UA/juce/build/macosx/../../src/native/mac/juce_mac_NativeIncludes.h:58, from /Users/nick/Desktop/UA/juce/build/macosx/../../src/native/juce_mac_NativeCode.mm:37: /System/Library/Frameworks/QTKit.framework/Headers/QTTrack.h:206: error: expected type-specifier before 'Track' /System/Library/Frameworks/QTKit.framework/Headers/QTTrack.h:206: error: expected)’ before ‘Track’
/System/Library/Frameworks/QTKit.framework/Headers/QTTrack.h:206: error: expected ;' before ')' token /System/Library/Frameworks/QTKit.framework/Headers/QTTrack.h:218: error: expected type-specifier before 'Track' /System/Library/Frameworks/QTKit.framework/Headers/QTTrack.h:218: error: expected)’ before ‘Track’
/System/Library/Frameworks/QTKit.framework/Headers/QTTrack.h:218: error: expected ;' before ')' token /System/Library/Frameworks/QTKit.framework/Headers/QTTrack.h:316: error: expected type-specifier before 'Track' /System/Library/Frameworks/QTKit.framework/Headers/QTTrack.h:316: error: expected)’ before ‘Track’
/System/Library/Frameworks/QTKit.framework/Headers/QTTrack.h:316: error: expected ;' before ')' token In file included from /System/Library/Frameworks/QTKit.framework/Headers/QTKit.h:16, from /Users/nick/Desktop/UA/juce/build/macosx/../../src/native/mac/juce_mac_NativeIncludes.h:58, from /Users/nick/Desktop/UA/juce/build/macosx/../../src/native/juce_mac_NativeCode.mm:37: /System/Library/Frameworks/QTKit.framework/Headers/QTMedia.h:275: error: expected;’ before ‘_quickTimeMedia’
/System/Library/Frameworks/QTKit.framework/Headers/QTMedia.h:296: error: expected type-specifier before ‘Media’
/System/Library/Frameworks/QTKit.framework/Headers/QTMedia.h:296: error: expected )' before 'Media' /System/Library/Frameworks/QTKit.framework/Headers/QTMedia.h:296: error: expected;’ before ‘)’ token
/System/Library/Frameworks/QTKit.framework/Headers/QTMedia.h:308: error: expected type-specifier before ‘Media’
/System/Library/Frameworks/QTKit.framework/Headers/QTMedia.h:308: error: expected )' before 'Media' /System/Library/Frameworks/QTKit.framework/Headers/QTMedia.h:308: error: expected;’ before ‘)’ token
/System/Library/Frameworks/QTKit.framework/Headers/QTMedia.h:377: error: expected type-specifier before ‘Media’
/System/Library/Frameworks/QTKit.framework/Headers/QTMedia.h:377: error: expected )' before 'Media' /System/Library/Frameworks/QTKit.framework/Headers/QTMedia.h:377: error: expected;’ before ‘)’ token
In file included from /System/Library/Frameworks/QTKit.framework/Headers/QTKit.h:32,
from /Users/nick/Desktop/UA/juce/build/macosx/…/…/src/native/mac/juce_mac_NativeIncludes.h:58,
from /Users/nick/Desktop/UA/juce/build/macosx/…/…/src/native/juce_mac_NativeCode.mm:37:
/System/Library/Frameworks/QTKit.framework/Headers/QTCaptureVideoPreviewOutput.h:36: error: expected type-specifier before ‘QTVisualContextRef’
/System/Library/Frameworks/QTKit.framework/Headers/QTCaptureVideoPreviewOutput.h:36: error: expected )' before 'QTVisualContextRef' /System/Library/Frameworks/QTKit.framework/Headers/QTCaptureVideoPreviewOutput.h:36: error: expected;’ before ‘)’ token
/System/Library/Frameworks/QTKit.framework/Headers/QTCaptureVideoPreviewOutput.h:37: error: expected type-specifier before ‘QTVisualContextRef’
/System/Library/Frameworks/QTKit.framework/Headers/QTCaptureVideoPreviewOutput.h:37: error: expected )' before 'QTVisualContextRef' /System/Library/Frameworks/QTKit.framework/Headers/QTCaptureVideoPreviewOutput.h:37: error: expected;’ before ‘)’ token


#2

Ok, well thanks for telling us the clock-speed of your memory, which obviously can make a huge difference to the errors that a compiler produces (!)

Perhaps a more relevant fact might be which version of juce this is? By the look of your path, it seems not to be the latest version, so please read this wise advice:
http://www.rawmaterialsoftware.com/viewtopic.php?f=2&t=4950


#3

Hi Jules,

I used the git command mentioned in your post:

git clone git://juce.git.sourceforge.net/gitroot/juce/juce

then when I tried building the juce/extras/example projects/Builds/MacOSX/HelloWorld.xcodeproj
and I still get a ton of compile errors. (like I had in the last post).
Again, I am on Mac OS X 10.6.4.

Ideas?

Thanks,

  • NIck

#4

The version: JUCE version 1.51

Also, the juce demo project:

juce/extras/juce demo/Builds/MacOSX/Juce Demo.xcodeproj

fails to build with similar compile errors

  • Nick

#5

Well, there must be something weird about your XCode setup, because I’ve never seen a build error like that before. It’s a compile error inside Apple’s own headers…

The only thing I can see that might be a clue is that the SDK path looks dodgy - it should be using an SDK from the dev directory, not the system one. Have you messed around with your include paths or something?


#6

Hi Jules,

Well I found the problem - xcode was looking at some include files first in /usr/local/include which
were causing problems. Merely renaming /usr/local/include to something else fixed the problem.

Perhaps you want to review the include paths in your xcode project to never take
anything from /usr/local/include

Whew…

  • NIck

#7

[quote]Perhaps you want to review the include paths in your xcode project to never take
anything from /usr/local/include[/quote]

The project doesn’t contain anything like that. If it did, everyone would get the same problem that you had!

Since this only ever happened on your machine, I think it’s a fair guess that you’ve got a screwed-up include path. Maybe some other piece of software has changed the header path environment variable, and XCode is picking it up from there.