Hi Thomas!

> Removing ${ORX_SYSLIB_PTTHREAD} in CMakeLists.txt helps a bit but instead
> of getting the error:
> *"cannot find -lpthread"*
>
As far as I can see, Android doesn't have libpthread, so your fix seems
reasonable

"error: use of undeclared identifier 'posix_spawn_file_actions_init'; did
> you mean 'posix_spawn_file_actions_t'?"
>
In spawn.h, where your compiler complains that there is a
posix_spawn_file_actions_t, but no posix_spawn_file_actions_init, I can see
that
posix_spawn_file_actions_init is actually declared in line 81 (see
https://android.googlesource.com/platform/bionic/+/master/libc/include/spawn.h
)
Can you check your actual spawn.h whether it declares it?
Regarding the "__INTRODUCED_IN(28)" declaration: maybe your compile is
restricted to a certain API level below 28
Does "android-ndk-r22b" mean your development toolkit is level 22?

if (ANDROID)
>     add_definitions(-DHAVE_PTHREAD_MUTEXATTR_SETTYPE)
>     add_definitions(-DHAVE_PTHREAD_MUTEX_RECURSIVE)
> endif ()
>
I don't think this makes sense.  When CMake runs, it checks for available
features (you can see found features in the CMake output) and then sets
those defines appropriately.
A typical run will show below CMake output.  What do you see?
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_mutexattr_settype
-- Looking for pthread_mutexattr_settype - found
-- Looking for pthread_mutex_timedlock
-- Looking for pthread_mutex_timedlock - found
-- Performing Test HAVE_PTHREAD_MUTEX_ERRORCHECK
-- Performing Test HAVE_PTHREAD_MUTEX_ERRORCHECK - Success
-- Performing Test HAVE_PTHREAD_MUTEX_RECURSIVE
-- Performing Test HAVE_PTHREAD_MUTEX_RECURSIVE - Success


What's the general setup here .. how did you set up your Android tool chain?
Which compiler is this? CLANG?
Is this a cross-compile - host Mac, target Android?

Regards,
E
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to