Introjucer fails to build


#1

Hi,

Building ‘The Introjucer’ (tip) on Mac OS X 10.6.8 with Xcode 3.2 i get error below ( “juce_mac_File.mm” / 422 ):

‘NSWorkspaceLaunchConfigurationArguments’ was not declared in this scope

CompileC "build/The Introjucer.build/Release/The Introjucer.build/Objects-normal/ppc/juce_core.o" ../../../../modules/juce_core/juce_core.mm normal ppc objective-c++ com.apple.compilers.llvmgcc42
cd /Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX
setenv LANG en_US.US-ASCII
/Developer/usr/bin/llvm-gcc-4.2 -x objective-c++ -arch ppc -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -O3 -mdynamic-no-pic -Wreturn-type -Wnon-virtual-dtor -Wparentheses -Wswitch -Wunused-variable -D_NDEBUG=1 -DNDEBUG=1 -DJUCER_XCODE_MAC_F6D2F4CF=1 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mtune=G5 -fvisibility=hidden -fvisibility-inlines-hidden -mmacosx-version-min=10.4 -iquote "/Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/build/The Introjucer.build/Release/The Introjucer.build/Introjucer-generated-files.hmap" "-I/Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/build/The Introjucer.build/Release/The Introjucer.build/Introjucer-own-target-headers.hmap" "-I/Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/build/The Introjucer.build/Release/The Introjucer.build/Introjucer-all-target-headers.hmap" -iquote "/Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/build/The Introjucer.build/Release/The Introjucer.build/Introjucer-project-headers.hmap" -Wreorder -F/Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/build/Release -I/Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/build/Release/include -I../../JuceLibraryCode "-I/Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/build/The Introjucer.build/Release/The Introjucer.build/DerivedSources/ppc" "-I/Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/build/The Introjucer.build/Release/The Introjucer.build/DerivedSources" -Wall -Wshadow -Wno-missing-field-initializers -Wshadow -Wshorten-64-to-32 -Wstrict-aliasing -isysroot /Developer/SDKs/MacOSX10.5.sdk -c /Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/../../../../modules/juce_core/juce_core.mm -o "/Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/build/The Introjucer.build/Release/The Introjucer.build/Objects-normal/ppc/juce_core.o"

In file included from /Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/../../../../modules/juce_core/juce_core.cpp:184,
                 from /Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/../../../../modules/juce_core/juce_core.mm:29:
/Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/../../../../modules/juce_core/native/juce_mac_Files.mm: In static member function 'static bool juce::Process::openDocument(const juce::String&, const juce::String&)':
/Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/../../../../modules/juce_core/native/juce_mac_Files.mm:422: error: 'NSWorkspaceLaunchConfigurationArguments' was not declared in this scope
/Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/../../../../modules/juce_core/native/juce_mac_Files.mm:427: warning: 'NSWorkspace' may not respond to '-launchApplicationAtURL:options:configuration:error:'
/Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/../../../../modules/juce_core/native/juce_mac_Files.mm:427: warning: (Messages without a matching method signature
/Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/../../../../modules/juce_core/native/juce_mac_Files.mm:427: warning: will be assumed to return 'id' and accept
/Users/nicolas/Work/JUCE/extras/Introjucer/Builds/MacOSX/../../../../modules/juce_core/native/juce_mac_Files.mm:427: warning: '...' as arguments.)

#2

Does it work if you replace it with a literal:

forKey: nsStringLiteral ("NSWorkspaceLaunchConfigurationArguments")];

?


#3

Yes, the Introjucer compiles fine now :wink: