0

I am creating a hybrid iOS/android game using cocos2d-x as the game engine. in the iOS side the project doesn't have any problem loading the libxml2 library. but when i build the build_native.sh in the android side, the script return an error like this

error: libxml2/libxml/tree.h: No such file or directory 

I already tried to modify the android.mk file but it nothing good happened. how should i link the libxml2 library in android?

Fugogugo
  • 4,460
  • 10
  • 36
  • 50

1 Answers1

1

I think the correct folder is

libxml2/include/libxml/tree.h

Check the Original files in the

cocos2dx/platform/third_party/android/modules.

the version I am using is 0.12.0

m.ding
  • 3,172
  • 19
  • 27
  • ah found it.. but how to include it to the project? and which is the correct #include way? #include or #include "libxml2" ? – Fugogugo Aug 10 '12 at 09:12
  • if you just want to use that file, you can include the whole path, which is cocos2dx/platform/third_party/android/moduleslibxml2/include/libxml/tree.h . – m.ding Aug 12 '12 at 23:28