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

@@ -48,7 +48,15 @@
#include "precomp.hpp"
#ifndef __arm__
#ifdef __arm__
#define ARM_NO_SIFT
#endif
#ifdef ANDROID
#undef ARM_NO_SIFT
#endif //ANDROID
#ifndef ARM_NO_SIFT
#include <iostream>
#include <limits>
@@ -175,6 +183,7 @@ public:
typedef Keypoints::iterator KeypointsIter ; ///< Keypoint list iter datatype
typedef Keypoints::const_iterator KeypointsConstIter ; ///< Keypoint list const iter datatype
#undef _S
/** @brief Constructors and destructors */
/*@{*/
Sift(const pixel_t* _im_pt, int _width, int _height,