Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find asm/page.h in boost/thread/pthread/thread_data.hpp #66

Open
hamalMarino opened this issue Feb 23, 2018 · 0 comments
Open

Cannot find asm/page.h in boost/thread/pthread/thread_data.hpp #66

hamalMarino opened this issue Feb 23, 2018 · 0 comments

Comments

@hamalMarino
Copy link

Using a compiled version of roscpp_android it's possible to link to apps which are built with newer versions of the NDK (I've used 16 recently - didn't test all libraries though).
The only problem I found is that I needed to manually patch the file <ROSCPP_ANDROID_NDK_INCLUDE>/boost/thread/pthread/thread_data.hpp changing

#if defined(__ANDROID__)
#include <asm/page.h> // http://code.google.com/p/android/issues/detail?id=39983
#endif

to

#if defined(__ANDROID__)
# ifndef PAGE_SIZE
#  define PAGE_SIZE 4096
# endif
#endif

as is the latest implementation of boost/thread.
Could this patch be applied at roscpp_android build time directly?

jubeira pushed a commit to jubeira/roscpp_android that referenced this issue Feb 1, 2019
…ty-libtiff-cmake

opencv: patch 3rdparty/libtiff/CMakeLists.txt to fix unknown CMake command error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant