[quote=“proppy”]I’ve compiled juce with the packaged version of external libraries:
Here are the changes applied to juce 1.45:
http://juce.aminche.com/hg/juce_with_cmake_without_extern/[/quote]
I’m probably doing something wrong, but i can’t compile that.
I’ve downloaded your CMakeLists.txt file, copied it to the juce source directory, ran cmake .
and ccmake .
generated a makefile and finally ran make
And i’ve got such a compile error:
Building CXX object CMakeFiles/juce.dir/build/linux/platform_specific_code/juce_linux_Audio.o
/home/ph/juce/build/linux/platform_specific_code/juce_linux_Audio.cpp: In function ‘void juce::getDeviceSampleRates(snd_pcm_t*, juce::Array<int, juce::DummyCriticalSection>&)’:
/home/ph/juce/build/linux/platform_specific_code/juce_linux_Audio.cpp:74: error: ‘assert’ was not declared in this scope
/home/ph/juce/build/linux/platform_specific_code/juce_linux_Audio.cpp: In function ‘void juce::getDeviceNumChannels(snd_pcm_t*, unsigned int*, unsigned int*)’:
/home/ph/juce/build/linux/platform_specific_code/juce_linux_Audio.cpp:89: error: ‘assert’ was not declared in this scope
/home/ph/juce/build/linux/platform_specific_code/juce_linux_Audio.cpp: In function ‘void juce::getDeviceProperties(const juce::String&, unsigned int&, unsigned int&, unsigned int&, unsigned int&, juce::Array<int, juce::DummyCriticalSection>&)’:
/home/ph/juce/build/linux/platform_specific_code/juce_linux_Audio.cpp:110: error: ‘assert’ was not declared in this scope
/home/ph/juce/build/linux/platform_specific_code/juce_linux_Audio.cpp: In member function ‘bool juce::ALSADevice::setParameters(unsigned int, int, int)’:
/home/ph/juce/build/linux/platform_specific_code/juce_linux_Audio.cpp:177: error: ‘assert’ was not declared in this scope
/home/ph/juce/build/linux/platform_specific_code/juce_linux_Audio.cpp:233: error: ‘assert’ was not declared in this scope
/home/ph/juce/build/linux/platform_specific_code/juce_linux_Audio.cpp: In member function ‘virtual void juce::ALSAAudioIODeviceType::scanForDevices()’:
/home/ph/juce/build/linux/platform_specific_code/juce_linux_Audio.cpp:874: error: ‘assert’ was not declared in this scope
make[2]: *** [CMakeFiles/juce.dir/build/linux/platform_specific_code/juce_linux_Audio.o] Error 1
make[1]: *** [CMakeFiles/juce.dir/all] Error 2
make: *** [all] Error 2
When I disable alsa support in juce_Config.h it compiles just well – but i guess juce without sound is a kind of nonsence…