I have a JUCE project I'm trying to compile for Android using ant debug
I am using std::shared_ptr as well as C++11 iterators in some parts of the project.
Its coming up with errors like jni/../../../Source/SharedObjects.h:32:5: error: 'shared_ptr' in namespace 'std' does not name a type std::shared_ptr<PropertiesFile> settings; ^
I managed to get the JUCE demo compiling for Android without problems and tested on my device.
In my Introjucer project I have set the C++ flag, set the toolchain to 4.8 and also added the following to 'External libraries to link': <my user home>/dev/SDKs/android-ndk/sources/cxx-stl/gnu-libstdc++/4.8/include
It'd be a shame to have to take out the C++11 stuff to get it working on Android. JUCE has an alternative to std::shared_ptr in SharedResourcePointer
0 comments:
Post a Comment