Category : android

The library compiles perfectly in linux (Ubuntu 20.04.2 LTS 64), but it fails when trying to compile it for android. Used procedure: $ git https://github.com/ufz/iphreeqc $ cd iphreeqc $ mkdir output $ export ANDROID_NDK=$ANDROID_SDK_ROOT/ndk/22.1.7171670 $ PATH=$PATH:$ANDROID_NDK $ export TOOLCHAIN=$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64 $ export TARGET=armv7a-linux-androideabi $ export API=21 $ export AR=$TOOLCHAIN/bin/llvm-ar $ export CC=$TOOLCHAIN/bin/$TARGET$API-clang $ export AS=$CC $ ..

Read more

The setup: I am using CMake to build with Android Studio a static libarary "A" containing a header: #include <ostream> namespace myns { enum class MyEnum { // some vales } std::ostream& operator<<(std::ostream&, MyEnum); } in MyEnum.cpp #include "MyEnum.h" std::ostream& myns::operator<<(std::ostream& os, myns::MyEnum const value) { // print my enum return os; } And a ..

Read more

class dummy_classs : public android::IBinder::DeathRecipient { public: dummy_classs() { VFX_QLOGI("::FWD", "%s dummy_classs created at %p",__func__, this); } ~dummy_classs() { VFX_QLOGI("::FWD", "%s dummy_classs deleted at %p",__func__, this); } virtual void binderDied(const android::wp<android::IBinder> &who) override { VFX_QLOGI("::FWD", "%s status",__func__); } }; android::status_t InterfaceImplementation::myAPI(const android::sp<IMyListener> &Listener, int32_t *_aidl_return) { std::lock_guard<std::mutex> lock(_mutex); *_aidl_return = 0; auto x = new ..

Read more

I am trying to link to some static libraries that I’ve cross compiled for ARM based on Android instructions. I am able to load some variables, but am struggling with one of them: ld: error: undefined symbol: ACE_Time_Value::ACE_Time_Value(long, long) >>> referenced by VrCubeWorld_Framework.cpp:241 (jni/../../../Src/VrCubeWorld_Framework.cpp:241) >>> /home/smiller/Development/Vandy/Term3/VR/ovr_strip1/VrSamples/VrCubeWorld_Framework/Projects/Android/build/intermediates/ndkBuild/release/obj/local/arm64-v8a/objs/vrcubeworldfw/__/__/__/Src/VrCubeWorld_Framework.o:(OVRFW::VrCubeWorld::AppInit(OVRFW::ovrAppContext const*)) >>> did you mean: ACE_Time_Value::ACE_Time_Value(long, long) >>> defined ..

Read more

I’m starting on NDK android development and the problem that’s occuring in the project is the case of importing a file with the so extension and call it using System.loadLibrary("NdkJniDemo"). when I call the above-mentioned code, I don’t have to access to its functions and get an error. Thanks for helping Source: Windows Que..

Read more

When trying to create an Android Studio project and setting its location to WSL2 file system, the error is shown: Invalid File Similarly when opening a project stored in WSL2 file system (example, here: wsl$Ubuntuhometyloubuntusomeproject), the error is also related to File name: Gradle could not start your build. > Cannot create service of type ..

Read more