romainguy / pathway

A set of APIs to manipulate graphics paths on Android.
Apache License 2.0
200 stars 4 forks source link

Recompiling your library arm64 problem #5

Closed lillogoal closed 1 year ago

lillogoal commented 1 year ago

Hi,

thanks for your job. I need to use your library and i decided to download and import this library like a gradle project. When i decide to recompile the library i reiceive this error:

no type named 'byte' in namespace 'std' [arm64-v8a]

Can you help me ? Thanks

lillogoal commented 1 year ago

Solved:

externalNativeBuild { cmake { cppFlags.addAll(rootProject.ext.cppFlags) } }

And in rootProject build gradle i have added:

cppFlags = [ "-std=c++17", "-Wno-unused-command-line-argument", "-Wl,--hash-style=both", // Required to support API levels below 23 "-fno-stack-protector", "-fno-exceptions", "-fno-unwind-tables", "-fno-asynchronous-unwind-tables", "-fno-rtti", "-ffast-math", "-ffp-contract=fast", "-fvisibility-inlines-hidden", "-fvisibility=hidden", "-fomit-frame-pointer", "-ffunction-sections", "-fdata-sections", "-Wl,--gc-sections", "-Wl,-Bsymbolic-functions", ]

Sorry