Project cannot be built with ofxSVG because of error: undefined reference to 'svgtiny_create'

I am trying to load a simple svg to my android project using ofxSVG addon. But I cannot build the project when ofxSVG addon is added. It shows multiple errors.

addons/ofxSvg/src/ofxSvg.cpp:24: error: undefined reference to 'svgtiny_create'
addons/ofxSvg/src/ofxSvg.cpp:25: error: undefined reference to 'svgtiny_parse'
addons/ofxSvg/src/ofxSvg.cpp:55: error: undefined reference to 'svgtiny_free'

I am using OF version 0.10.1 for android.

Here is my ofApp.cpp code

void ofApp::setup(){
    svg.load("example.svg");
	ofBackground(255,255,255);
	ofSetColor(255,255,255);
}

void ofApp::draw(){
	svg.draw();
}

Sorry for resurrecting this old thread. I just was dealing with this same issue and wanted to post the solution for anyone encountering this issue in the future, as it is still present in the current android release.

You get this error because the ofxSvg addon does not have its addon_config.mk file configured to link the static libraries compiled for android (which must have just been an oversight, seeing as the android libraries are included with the addon).

Just add the following into the addon_config.mk:

android/arm64-v8a:
	ADDON_LIBS = libs/svgtiny/lib/android/arm64-v8a/libsvgtiny.a
	ADDON_LIBS += libs/libxml2/lib/android/arm64-v8a/libxml2.a

android/armeabi-v7a:
	ADDON_LIBS = libs/svgtiny/lib/android/armeabi-v7a/libsvgtiny.a
	ADDON_LIBS += libs/libxml2/lib/android/armeabi-v7a/libxml2.a

android/x86:
	ADDON_LIBS = libs/svgtiny/lib/android/x86/libsvgtiny.a
	ADDON_LIBS += libs/libxml2/lib/android/x86/libxml2.a

Then you can drop whatever svg files you want to access into {projectfolder}/bin/data (you’ll have to create this directory if starting from an empty project). If you place them there, they can be accessed by just their filename.