Should I drop XCode 4.1? my conf? or .. me?


#1

Hi mates,

I read a lot of post about XCode here & there.
I didn’t even test XCode 3.x because I’m on mac since 1 week and I installed the latest XCode version.

I tried, first, to build introjucer.
SUCCESS. I was happy, thinking all other demo & extras would build like this one.

I copied a couple of folders from Extras folder in order to test and build them.
I used to edit .jucer file in introjucer… checking but very often I don’t change anything excepted path to vst & juce folder (using absolute to be sure)

JuceDemo, Ok !
3 little warnings, no problem.

the example Hello World
Ok too
same little warnings about JuceMacFileChooser.mm something

then, I tried to build audio plugin & JuceDemoPlugin
failed!

At some point I succeeded but inconsistantly… I mean, it sounds like sometimes it works, sometimes not.

any tips ?


#2

Salut

A compile log would be helpful. Did you include the vst sdk for the audio plugin?


#3

I included it.
My path to juce lib & vst sdk are ok.

here is the errors only logs.
I also tested to build with GCC 4.2 same…

[code]Build target JuceDemoPlugin

CompileC /Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/Objects-normal/i386/PluginEditor.o …/…/Source/PluginEditor.cpp normal i386 c++ com.apple.compilers.llvmgcc42
cd /Users/julien/DATA/DEV/VST-PLUGINS/demo/Builds/MacOSX
setenv LANG en_US.US-ASCII
/Developer/usr/bin/llvm-gcc-4.2 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wnon-virtual-dtor -Wparentheses -Wswitch -Wunused-variable -D_DEBUG=1 -DDEBUG=1 -DJUCE_ObjCExtraSuffix=JuceDemo -DJUCER_XCODE_MAC_F6D2F4CF=1 -fasm-blocks -gdwarf-2 -fvisibility-inlines-hidden -iquote /Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/JuceDemoPlugin-generated-files.hmap -I/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/JuceDemoPlugin-own-target-headers.hmap -I/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/JuceDemoPlugin-all-target-headers.hmap -iquote /Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/JuceDemoPlugin-project-headers.hmap -I/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Products/Debug/include -I/Users/julien/DATA/DEV/libsVST/vstsdk2.4 -I/Developer/Extras/CoreAudio/PublicUtility -I/Developer/Extras/CoreAudio/AudioUnits/AUPublic/Utility -I/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/DerivedSources/i386 -I/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/DerivedSources -Wreorder -F/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Products/Debug -c /Users/julien/DATA/DEV/VST-PLUGINS/demo/Builds/MacOSX/…/…/Source/PluginEditor.cpp -o /Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/Objects-normal/i386/PluginEditor.o

/Users/julien/DATA/DEV/VST-PLUGINS/demo/Builds/MacOSX/…/…/Source/PluginEditor.h: In constructor ‘JuceDemoPluginAudioProcessorEditor::JuceDemoPluginAudioProcessorEditor(JuceDemoPluginAudioProcessor*)’:
/Users/julien/DATA/DEV/VST-PLUGINS/demo/Builds/MacOSX/…/…/Source/PluginEditor.h:40: warning: ‘JuceDemoPluginAudioProcessorEditor::delaySlider’ will be initialized after
/Users/julien/DATA/DEV/VST-PLUGINS/demo/Builds/MacOSX/…/…/Source/PluginEditor.h:38: warning: ‘juce::Label JuceDemoPluginAudioProcessorEditor::testLabel’
/Users/julien/DATA/DEV/VST-PLUGINS/demo/Builds/MacOSX/…/…/Source/PluginEditor.cpp:15: warning: when initialized here

CompileC /Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/Objects-normal/i386/juce_VST_Wrapper-A60EE809842A4500.o …/…/…/…/libsVST/Juce/src/audio/plugin_client/VST/juce_VST_Wrapper.cpp normal i386 c++ com.apple.compilers.llvmgcc42
cd /Users/julien/DATA/DEV/VST-PLUGINS/demo/Builds/MacOSX
setenv LANG en_US.US-ASCII
/Developer/usr/bin/llvm-gcc-4.2 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wnon-virtual-dtor -Wparentheses -Wswitch -Wunused-variable -D_DEBUG=1 -DDEBUG=1 -DJUCE_ObjCExtraSuffix=JuceDemo -DJUCER_XCODE_MAC_F6D2F4CF=1 -fasm-blocks -gdwarf-2 -fvisibility-inlines-hidden -iquote /Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/JuceDemoPlugin-generated-files.hmap -I/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/JuceDemoPlugin-own-target-headers.hmap -I/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/JuceDemoPlugin-all-target-headers.hmap -iquote /Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/JuceDemoPlugin-project-headers.hmap -I/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Products/Debug/include -I/Users/julien/DATA/DEV/libsVST/vstsdk2.4 -I/Developer/Extras/CoreAudio/PublicUtility -I/Developer/Extras/CoreAudio/AudioUnits/AUPublic/Utility -I/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/DerivedSources/i386 -I/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/DerivedSources -Wreorder -F/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Products/Debug -c /Users/julien/DATA/DEV/VST-PLUGINS/demo/Builds/MacOSX/…/…/…/…/libsVST/Juce/src/audio/plugin_client/VST/juce_VST_Wrapper.cpp -o /Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/Objects-normal/i386/juce_VST_Wrapper-A60EE809842A4500.o

In file included from /Users/julien/DATA/DEV/VST-PLUGINS/demo/Builds/MacOSX/…/…/…/…/libsVST/Juce/src/audio/plugin_client/VST/juce_VST_Wrapper.cpp:72:
/Users/julien/DATA/DEV/libsVST/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp: In member function ‘virtual void AudioEffectX::resume()’:
/Users/julien/DATA/DEV/libsVST/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.cpp:307: warning: deprecated conversion from string constant to ‘char*’

CompileC /Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/Objects-normal/i386/AUDebugDispatcher.o /Developer/Extras/CoreAudio/AudioUnits/AUPublic/Utility/AUDebugDispatcher.cpp normal i386 c++ com.apple.compilers.llvmgcc42
cd /Users/julien/DATA/DEV/VST-PLUGINS/demo/Builds/MacOSX
setenv LANG en_US.US-ASCII
/Developer/usr/bin/llvm-gcc-4.2 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wnon-virtual-dtor -Wparentheses -Wswitch -Wunused-variable -D_DEBUG=1 -DDEBUG=1 -DJUCE_ObjCExtraSuffix=JuceDemo -DJUCER_XCODE_MAC_F6D2F4CF=1 -fasm-blocks -gdwarf-2 -fvisibility-inlines-hidden -iquote /Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/JuceDemoPlugin-generated-files.hmap -I/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/JuceDemoPlugin-own-target-headers.hmap -I/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/JuceDemoPlugin-all-target-headers.hmap -iquote /Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/JuceDemoPlugin-project-headers.hmap -I/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Products/Debug/include -I/Users/julien/DATA/DEV/libsVST/vstsdk2.4 -I/Developer/Extras/CoreAudio/PublicUtility -I/Developer/Extras/CoreAudio/AudioUnits/AUPublic/Utility -I/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/DerivedSources/i386 -I/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/DerivedSources -Wreorder -F/Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Products/Debug -w -c /Developer/Extras/CoreAudio/AudioUnits/AUPublic/Utility/AUDebugDispatcher.cpp -o /Users/julien/Library/Developer/Xcode/DerivedData/JuceDemoPlugin-bvvbembmextleearyknqitsgtggs/Build/Intermediates/JuceDemoPlugin.build/Debug/JuceDemoPlugin.build/Objects-normal/i386/AUDebugDispatcher.o

Command /Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1[/code]