Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
11 views

CMake targeting Android: how to specify targeting API?

I have a CMake project, where CMakeLists.txt has: target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -target aarch64-linux-android10000 ) When I run cmake as: cmake -S xxx -B yyy \ ...
pmor's user avatar
  • 5,951
0 votes
1 answer
32 views

How to deploy files along with the current application in a portable way with Qt CMake build?

I have two big files I want to pack/deploy with my application. On desktop, that would be as easy as copying them to deployment archive, but I am also targeting Android. I don't want to make these ...
Tomáš Zato's user avatar
  • 52.1k
0 votes
1 answer
58 views

Compiling OpenCV for Android on Windows with CMake - make still tries to link "dll" files

This is how I set up the cmake, in the root of OpenCV 4.9.0. repository: cmake -DCMAKE_ANDROID_NDK=D:\...\lib\AndroidSDK\ndk\25.1.8937393 \ -DCMAKE_SYSTEM_NAME=Android \ -B..\OpenCV_4.9.0_builds\...
Tomáš Zato's user avatar
  • 52.1k
0 votes
0 answers
51 views

Build static zlib for Android

I'm using the following script. It should produce static lib. However, it produces both libz.a and libz.so. (I have -DBUILD_SHARED_LIBS=OFF specified.) How can I set it to produce static libs only? #!/...
Alexander Dyagilev's user avatar
0 votes
1 answer
24 views

Linking an external shared object in Android Studio

I'm writing an app in C++, that is using SDL2. I've added the headers to the app/cpp/include directory of the project. I've also downloaded the source code from Github and compiled it into an Android ...
roeegg's user avatar
  • 304
0 votes
0 answers
34 views

How to build the jpeg library libjpeg.so as a shared library for android

I am trying to build the jpeg library as a .so file to use it on Android. This is the jpeg library I want to use. If you look at that git, there is a .so file, but the architecture I need is arm64-v8a,...
Jungwon's user avatar
  • 940
0 votes
1 answer
59 views

CMake '3.28.1' is not showing in sdk tools Android Studio Jellyfish

I got this error in my c++ based android project: [CXX1300] CMake '3.28.1' was not found in SDK, PATH, or by cmake.dir property. when I tried to install through SDK Tools section of SDK manager I can'...
zivz's user avatar
  • 71
1 vote
2 answers
97 views

How to add external library to C/C++ JNI project via CMake

I have an Android-C library project that I am working on in Android Studio. I need to add external libraries like C directly to my project (not via Android Studio Gradle Dependency). I have installed ...
Lilvinco's user avatar
  • 157
0 votes
0 answers
25 views

Cannot access/find file supplied with build

Im build a QT mobile app, and for test of search function I want to supply txt file. And as Title follows - I cant access it. here is cmakelists.txt file: ... qt_add_executable(appTest src/main....
VoiceShifter's user avatar
0 votes
0 answers
91 views

Error when compiling libaom-sys when targeting aarch64-linux-android

I'm writing an Android application using rust and I need to open avif files. So I use the crate avif-decode which itself uses libaom-sys crate. When I target windows (x86_64-pc-windows-msvc), I can ...
Alex's user avatar
  • 65
1 vote
2 answers
2k views

I got Execution failed for task ':app:configureCMakeDebug[arm64-v8a]' while building my react native app

The app was working fine yesterday, but now it gives me this error : Execution failed for task ':app:configureCMakeDebug[arm64-v8a]'. > [CXX1429] error when building with cmake using C:\{my path}\...
Wiem Ben yahia's user avatar
0 votes
0 answers
61 views

Integrating OpenCV in an Android project: Android only supports versionless libraries ending with the .so suffix

I have just built OpenCV from source and adjusted my CMake configuration as so: set(OpenCV_DIR "/home/ivelin/opencv/release") find_package( OpenCV REQUIRED ) include_directories( ${...
Ивелин Иванов's user avatar
0 votes
0 answers
72 views

Adding external .rcc files into Android assets in CMake Qt6

I'm trying to put some image files in an external .rcc binary file, adding this resource file in the app using QResource::registerResource() to be able to access the images. The .rcc file is correctly ...
Ben Pyton's user avatar
  • 326
1 vote
0 answers
48 views

How to import precompiled c++ (.so) headers in android jni ndk

I'm currently working on an Android project and need to integrate precompiled C++ (.so) headers using JNI and NDK. Can someone guide me on how to import these precompiled headers into my Android ...
cyber wolf's user avatar
0 votes
1 answer
82 views

How Gradle works with CMake ? There is no native code source files navigation in Android Studio

I've a Android Kotlin app with significant native code part. Everything builds with the Gradle and CMake; it was fine about building, source code navigation (including C/C++ part) and debugging. I've ...
Dmytro's user avatar
  • 540

15 30 50 per page
1
2 3 4 5
58