adding some small changes to support android build,

mainly cmake stuff, but in persistance the wcstombs
is not supported on android, and in
sift.cpp there was and ifdef that affected arm and this
causes undefined symbols on android.
This commit is contained in:
Ethan Rublee
2010-09-22 02:16:33 +00:00
parent a732082526
commit 8ee50c422b
5 changed files with 44 additions and 6 deletions

View File

@@ -114,7 +114,7 @@ cv::string cv::FileStorage::getDefaultObjectName(const string& _filename)
namespace cv
{
#ifndef ANDROID //unsuported wcstombs on android
string fromUtf16(const WString& str)
{
cv::AutoBuffer<char> _buf(str.size()*4 + 1);
@@ -138,7 +138,7 @@ WString toUtf16(const string& str)
buf[sz] = '\0';
return WString(buf);
}
#endif
}
typedef struct CvGenericHash