Alexander Alekhin
5ef548a985
cmake: update initialization
5 years ago
Vlad Kraevskiy
90ba69a403
Fixed a typo in android toolchain documentation.
7 years ago
Alexander Alekhin
d01a2038ae
cmake(android): update CMAKE_FIND_ROOT_PATH_MODE_* handling
...
Avoids this error message with CMake 3.10:
CMake Error: CMake was unable to find a build program corresponding to "Ninja".
CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
Related changes is that pkg-config tool is found (/usr/bin/pkg-config).
7 years ago
Alexander Alekhin
bc6a355370
android(toolchain): fix find_path() behavior (zlib search problem)
7 years ago
Erik Man
37911e60d8
Allow compilation with unified include directory
...
This makes it possible to compile OpenCV with for instance ndk-r16
7 years ago
Alexander Alekhin
c92aa95726
android(toolchain): detailed error message
7 years ago
Alexander Alekhin
133b91a026
android: build fixes
...
- eliminate CMake 3.5+ warnings
- removed usage of dropped "OPENCV_CAMERA_MODULES" variable
- partial support for Android NDK 11+
8 years ago
Matthew Cook
e06a9e9009
Fix android libc++ build
8 years ago
Alexander Alekhin
3e649895e5
android: increase default native API level 8=>9
8 years ago
Anush Elangovan
3405a865c4
Add LLVM c++_static c++_shared STL targets
...
The Android NDK would be moving to Clang as its default compiler
in the future. This patch allows OpenCV to build with the default
c++_shared / c++_static
TEST=Builds OpenCV with -DANDROID_TOOLCHAIN_NAME=
aarch64-linux-android-clang3.6 -DANDROID_STL=c++_shared
9 years ago
Maksim Shabunin
eebd4cad66
Fix compilation problems with XCode 7.1.1 and cmake 3.3.2
9 years ago
Anush Elangovan
7bb3feff45
Add Android ARMEABI_V7A_HARD for Hardfp support
...
Add Android HardFP support. Expose the "armeabi-v7a-hard with NEON"
ANDROID_ABI.
TEST= Add -DANDROID_NATIVE_API_LEVEL=21
-DANDROID_ABI="armeabi-v7a-hard with NEON"
to compile with hardfp. Checked the output of make verbose to
confirm -lm_hard is being linked. There are known test
failures but that can be fixed once this is in.
9 years ago
Maksim Shabunin
48cc53bf2e
Updated android toolchain
10 years ago
Ilya Lavrenov
96adeb71ca
update android.toolchain.cmake
10 years ago
Ilya Lavrenov
ba612fc9bd
update android.toolchain.cmake
10 years ago
Jonas Vautherin
d83372a8dc
Patch for NDK r10
10 years ago
Alexander Smorkalov
48d9be70d5
Android toolchain file sync with original project.
...
Original project: https://github.com/taka-no-me/android-cmake/
Revision: 5db45cfb87fec180b74963d3680dd60d4d8d8c3a
(cherry picked from commit c815043607
)
11 years ago
Alexander Smorkalov
c815043607
Android toolchain file sync with original project.
...
Original project: https://github.com/taka-no-me/android-cmake/
Revision: 5db45cfb87fec180b74963d3680dd60d4d8d8c3a
11 years ago
StevenPuttemans
6f892b10ff
Applied feature #3375 and fix of pull 1842 to avoid merging problems later
11 years ago
Alexander Smorkalov
e08b075db0
Android NDK r9b support added.
11 years ago
Roman Donchenko
e1c8f5d723
Removed a stray comma in the Android toolchain file.
...
It was actually acting as an additional argument, breaking the error message.
11 years ago
Alexander Smorkalov
1aaeb52a4c
Android NDK r9 support. x64 NDK support fix for MacOS X.
11 years ago
Alexander Smorkalov
ccb48ddee0
Android NDK r9 support. x64 NDK support fix for MacOS X.
11 years ago
Alexander Smorkalov
80f6ede233
Fix build problems on MIPS and Linaro NDK.
...
Merged android.toolchain.cmake from project
https://github.com/taka-no-me/android-cmake
commit: fd1f7055f8b7338644d58d9a2015a784dfa3a5ca
12 years ago
Alexander Smorkalov
20fef00a77
android -> plarforms/android
12 years ago
Andrey Kamaev
e640985e22
Update Android toolchain to the latest version supporting NDK r8e
12 years ago
Andrey Kamaev
f22ee7f0df
Workaround "Segmentation fault" when built with gcc 4.7 from NDK r8d
12 years ago
Andrey Kamaev
b6efec5f8b
Add support for Android NDK r8d
12 years ago
Andrey Kamaev
8763ad6c99
Fix ccache search in Android CMake toolchain.
12 years ago
Andrey Kamaev
cbe22fb5d1
Android: always sort list of NDK toolchains
...
Order returned by CMake is unreliable but we need clang to go after gcc for
automatic toolchain selection.
12 years ago
Andrey Kamaev
ab9311947a
Update Android CMake toolchain for NDK r8c
12 years ago
Andrey Kamaev
c46affe63e
android.toolchain.cmake: restore implicit link with math library for C++ objects
...
Ticket #2426
12 years ago
Andrey Kamaev
1e69d47ba5
Remove -g from Android complier flags in release mode (used by NDK but inconvenient for CMake)
12 years ago
Andrey Kamaev
4bd2c6b50d
Android toolchain: added fixes/workarounds for NDK r8b and NDK r6 bugs
12 years ago
Andrey Kamaev
2cc262bce4
Fix Android CMake toolchain compiler and linker flags
12 years ago
Andrey Kamaev
d3501f1545
Android toolchain: restored explicit include_directories of system /usr/include
...
It is needed because of explicit STL include paths.
Otherwise some standard headers (like fenv.h) can not not be correctly found by the compiler.
12 years ago
Andrey Kamaev
b0c7280978
Android toolchain: protect from changes of NDK_CCACHE on subsequent cmake
12 years ago
Andrey Kamaev
53d219c857
Improved CMake warnings about known problems of Android NDKs
12 years ago
Andrey Kamaev
a3125c0b8d
Added C++ runtime search for standalone toolchain
12 years ago
Andrey Kamaev
ac808b51a5
Fixing STL support in case of standalone toolchain
12 years ago
Andrey Kamaev
c91850ec2e
Fix executable and C objects linking
12 years ago
Andrey Kamaev
e402bb496d
Add support for all NDK runtimes
12 years ago
Andrey Kamaev
21a536f999
Add NDK release detection into CMake toolchain
12 years ago
Andrey Kamaev
c9dbb0d314
Several small fixes in Android CMake toolchain
...
* fix formatting
* honor Windows-style paths
* suppress warnings inside try_compile
* correct caching of toolchain variables
12 years ago
Andrey Kamaev
e9392d1466
Fix Android build with cmake 2.6.3
12 years ago
Andrey Kamaev
0adbead654
Android toolchain: fix CCache program search
12 years ago
Andrey Kamaev
d421ec26e2
Android toolchain: fixed ccache search
12 years ago
Andrey Kamaev
bbbe77e05e
Fix Android build for mips platform
12 years ago
Andrey Kamaev
c0786e9d33
Support for the gold linker (NDK r8b is required)
12 years ago
Andrey Kamaev
bcf8dd510f
Added CCache support to Android build
...
To speed up rebuilds, define the NDK_CCACHE environment or CMake variable
to the path to your ccache binary. When declared, the android.cmake.toolchain
automatically uses CCache when compiling any C/C++ source file. For example:
export NDK_CCACHE=ccache
12 years ago