Hello, Thank you for your answer. I decided to switch off thread support as you said. It compiles if i add #include <cstddef> inside gecode/support/thread.hpp and if, in the same file, i replace line 130 : #ifdef GECODE_THREADS_WINDOWS by #if defined(GECODE_THREADS_WINDOWS) || !defined(GECODE_THREADS_PTHREADS) in order to have FastMutex defined.
Cheers, Christine 2013/10/12 Guido Tack <t...@gecode.org> > Hi, > > we don't have plans to support the Android NDK (we simply don't have the > resources right now to adapt and test everything on every possible system). > But of course if you manage to create a patch that would make Gecode work > with the NDK, that would be very welcome and we may include it in the main > distribution. > > Technically I believe the pthread API in Android is a bit limited compared > to full posix threads, so I'm not even sure it can be done. Alternatively > you could switch off thread support altogether. Currently configure just > checks for the presence of pthread.h, but if you simply remove the call to > AC_GECODE_THREADS from configure.ac and run autoconf, configure, make, > this might work. Please let me know, if this solves the problem I'll add a > configure switch to disable thread support entirely. > > Cheers, > Guido > > On 12/10/2013, at 1:28 AM, christine bouzant <christine.bouz...@gmail.com> > wrote: > > Hello all, > > I'd like to know if it is planned to make a version compatible with the > android ndk ? > It seems that the case for the NDK's pthread.h is not implemented and so > an application cannot compile. Unless there is something wrong in my > configuration... > > Best regards, > > Christine > _______________________________________________ > Gecode users mailing list > users@gecode.org > https://www.gecode.org/mailman/listinfo/gecode-users > > > -- > Guido Tack, > http://www.csse.monash.edu/~guidot/ > > > >
_______________________________________________ Gecode users mailing list users@gecode.org https://www.gecode.org/mailman/listinfo/gecode-users