C++Problem in cocos2dx/Android.mk

Hello,

I get an error if I try to debug my android app with eclipse on ubuntu. It says:

*** Android NDK: Aborting. .Stop.

This is happening in the file $COCOS2DX_ROOT/cocos2dx/Android.mk in Line 166 where the image modules are imported.

166 $(call import-module,libjpeg) 167 $(call import-module,libpng) 168 $(call import-module,libxml2) 169 $(call import-module,libtiff)

The environment variable NDK_MODULE_PATH contains the path to the modules (of course it contains other paths). COCOS2DX_ROOT also points to the right path.

NDK_MODULE_PATH=$COCOS2DX_ROOT/cocos2dx/platform/third_party/android/prebuilt

If I use ndk-build within my project folder (not using eclipse) I get some more informations:

Compile++ thumb : cocos2dx_static <= CCImage.cpp In file included from /cocos2dx/platform/android/CCImage.cpp:28:0: /cocos2dx/platform/CCImageCommon_cpp.h:35:20: fatal error: tiffio.h: No such file or directory compilation terminated. make: *** [/proj.android/obj/local/armeabi/objs-debug/cocos2dx_static/platform/android/CCImage.o] Error 1

Any ideas? :slight_smile: