Open mojca opened 1 year ago
I don't know about RT but select Posix as target platform on Linux (my case ubuntu) CMake. I am working on Unreal Engine plugin and it works.
What do you mean by "select Posix as target platform"?
The relevant code that is causing some problems comes from "if posix" and it starts working for me if I delete ua_architecture_append_to_library(rt)
:
https://github.com/open62541/open62541/blob/c0298a9a6bfcc20cadaf54af640d82cabadfb64e/arch/posix/CMakeLists.txt#L12-L31
Should I try to come up with a github action building for Android that tries to reproduce the build failure?
I am working on an UE5 client plugin and we use Android NDK for package.
In order to build open62 for Android I built it from Ubuntu and selected target platform as POSIX on CMAKE.
I used Posix because it is similiar with Android and I used Ubuntu because there is no cross compile support.
My branch was 21 november master branch and I didn't got any error about ua_architecture_append_to_library(rt)
But I disabled some features from CMake because master branch has additional options which 1.3.3 doesn't have. Maybe I could disabled that RT feature, too.
My only error was this and I got it when I tried to package my project as apk. https://github.com/open62541/open62541/issues/5462
We solved it and right now we have no problem about Android and packaging.
Description
I'm not able to build the library for Android due to the
-rt
flag. The compiler reportsThe code says:
but apparently excluding only OpenBSD from the list is not sufficient. Could you perhaps add at least Android to the exclusion list as well?
I tried to check the history, but while the code was touched at several occasions like #1595, it hasn't been significantly changed for quite a while.
Background Information / Reproduction Steps
First extract https://dl.google.com/android/repository/android-ndk-r25b-linux.zip on Ubuntu and then try to build the project.
Used CMake options:
Checklist
Please provide the following information:
UA_LOGLEVEL
set as low as necessary) attached