ofxPoco compile problems

After I make a new project adding ofxPoco addon, without writing any additional code,it gives some errors during compile process:

J:\ndk\android-ndk-r15c\sources\cxx-stl\llvm-libc++\include\stdexcept
Error:(74, 32) error: unknown type name ‘string’; did you mean ‘jstring’?
Error:(91, 34) error: unknown type name ‘string’; did you mean ‘jstring’?

It actually gives “191 errors” and they look they are the same/similar errors.Maybe there is a conflict with Poco’s Exception.h header file and compiler’s “exception” header file, I don’t know.

I am using Openframeworks v0.11.0, Android Studio and Ndk-r15c, on Windows 7.

If someone could answer I would be glad :slight_smile:

I’ve the same issue while working on W10 with Android Studio 2.3.2 and the ndk r15c.
The others addons are working well but i’ve got exactly the same number of errors whit ofxPoco.

I’'m still looking after a workaround. So if you have any idea it’d be useful :slight_smile:

Issue fixed by adding this on the addon_config.mk file in the directory addons\ofxPoco :

android/arm64-v8a:
	ADDON_INCLUDES = libs/poco/include/%
	ADDON_INCLUDES += src
	ADDON_LIBS = libs/poco/lib/android/arm64-v8a/libPocoNetSSL.a
	ADDON_LIBS += libs/poco/lib/android/arm64-v8a/libPocoNet.a
	ADDON_LIBS += libs/poco/lib/android/arm64-v8a/libPocoCrypto.a
	ADDON_LIBS += libs/poco/lib/android/arm64-v8a/libPocoUtil.a
	ADDON_LIBS += libs/poco/lib/android/arm64-v8a/libPocoJSON.a
	ADDON_LIBS += libs/poco/lib/android/arm64-v8a/libPocoXML.a
	ADDON_LIBS += libs/poco/lib/android/arm64-v8a/libPocoFoundation.a

And then an other issue occured, solved by addind the lib libssl.a and libcrypto.a on the directory ofxPoco\libs\poco\lib\android\arm64-v8a. The final addon_config.mk file looks like this :

android/arm64-v8a:
	ADDON_INCLUDES = libs/poco/include/%
	ADDON_INCLUDES += src
	ADDON_LIBS = libs/poco/lib/android/arm64-v8a/libPocoNetSSL.a
	ADDON_LIBS += libs/poco/lib/android/arm64-v8a/libPocoNet.a
	ADDON_LIBS += libs/poco/lib/android/arm64-v8a/libPocoCrypto.a
	ADDON_LIBS += libs/poco/lib/android/arm64-v8a/libPocoUtil.a
	ADDON_LIBS += libs/poco/lib/android/arm64-v8a/libPocoJSON.a
	ADDON_LIBS += libs/poco/lib/android/arm64-v8a/libPocoXML.a
	ADDON_LIBS += libs/poco/lib/android/arm64-v8a/libPocoFoundation.a
	ADDON_LIBS += libs/poco/lib/android/arm64-v8a/libssl.a
	ADDON_LIBS += libs/poco/lib/android/arm64-v8a/libcrypto.a
1 Like

Thanks for the solution. If I remember right, I had solved the problem by compiling with Armv7a instead of Arm64-v8a. Your solution is more complete, it allows 64bit compilation too.

1 Like