Let me also thank for this, this makes Gecode even more usable as a library in a project where you do not use the thread support of gecode (always problems with linking to pthread)
Best, Max On 10/15/2013 12:47 AM, Guido Tack wrote: > Great, thanks for the patch! I added it to the svn trunk and also > made thread support configurable (with the --disable-thread switch). > > Cheers, > Guido > > On 15/10/2013, at 12:15 AM, christine bouzant > <christine.bouz...@gmail.com <mailto:christine.bouz...@gmail.com>> wrote: > >> 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 <mailto: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 <http://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 >> <mailto: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 <mailto:users@gecode.org> >>> https://www.gecode.org/mailman/listinfo/gecode-users >> >> -- >> Guido Tack, >> http://www.csse.monash.edu/~guidot/ >> <http://www.csse.monash.edu/%7Eguidot/> >> >> >> >> >> _______________________________________________ >> Gecode users mailing list >> users@gecode.org <mailto:users@gecode.org> >> https://www.gecode.org/mailman/listinfo/gecode-users > > > > _______________________________________________ > Gecode users mailing list > users@gecode.org > https://www.gecode.org/mailman/listinfo/gecode-users
_______________________________________________ Gecode users mailing list users@gecode.org https://www.gecode.org/mailman/listinfo/gecode-users