-
-
Notifications
You must be signed in to change notification settings - Fork 256
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
Fixed Android missing pthread_setcancelstate and pthread_cancel #4986
base: develop
Are you sure you want to change the base?
Conversation
I'd be happy to approve this, but since we have no Android testing, it'd immediately become dead code. Can you add a GitHub action to build/test on Android? |
Hi, @sheldonrobinson ! Thank you so much for your patch to support bthread on Android! However, I think your PR doesn't work if bthread is not present on system:
Would you please improve your PR to fix the above issue? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For CMake users, this PR requires
https://github.com/sheldonrobinson/libbthread
Once libbthread
is installed properly with either autotools or cmake,
NDK can build HDF5 successfully.
I looked at hdf5 Github workflows and it seems we are not currently building/testing for Android. We can proceed in either of the following ways:
|
Without testing, this code will quickly break as we move things around. We had this problem with MinGW and Cygwin before we integrated them into our CI. People would submit patches, everything would be fine for a version or two, we'd make changes, and then everything would be broken again. |
Using SomeDevHere/libbthread to add missing pthread_setcancelstate and pthread_cancel.