Comments (7)
Hi, and thanks for the report!
It would be interesting to support Linaro's NDK. The toolchain file from apitrace is older than master of android-cmake and your patch can't be directly applied so I have created an alternative one: 62bcf2b
Currently two options are needed to use a git cloned NDK:
-DANDROID_NDK=$(TOPDIR)/prebuilt/ndk/android-ndk-r8 -DANDROID_NDK_LAYOUT=LINARO
I think I will do few more tweaks in this branch and then merge it to master.
from android-cmake.
Hi,
I tested the new version of the toolchain. It works, but I had to add -DANDROID_NO_UNDEFINED=OFF to the cmake command line, otherwise I get:
...
prebuilt/ndk/android-ndk-r8/../../linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: CMakeFiles/egltrace.dir/egltrace.cpp.o: in function __static_initialization_and_destruction_0(int, int):egltrace.cpp(.text._Z41__static_initialization_and_destruction_0ii+0x5fc): error: undefined reference to '__dso_handle'
Thanks!
from android-cmake.
"undefined __dso_handle" message usually means some problem with crt linkage..
Could you post full CMake command you used?
from android-cmake.
Here are all the commands to repro:
cd /tmp
git clone git://android.git.linaro.org/platform/prebuilt # huuuge
git clone git://github.com/apitrace/apitrace.git
cd apitrace
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain/android.toolchain.cmake -DANDROID_NDK=/tmp/prebuilt/ndk/android-ndk-r8 -DANDROID_NDK_LAYOUT=LINARO -DANDROID_API_LEVEL=9 -H. -B/tmp/0
make -C /tmp/0
(cmake/toolchain/android.toolchain.cmake inside apitrace directory was just recently pulled from 62bcf2b)
One way to make that undefined reference to '__dso_handle' go away is to add -DANDROID_NO_UNDEFINED=OFF to cmake command line, another one is to include crt_whatever.o on the ld command line. A quick googling shows that this err was caused by some recent changes in Android.
from android-cmake.
Thanks, I'll look at it.
from android-cmake.
Hi, I've committed fixes for remaining problems. 07dc8e7 works for me without extra CMake flags.
from android-cmake.
Thank you!
from android-cmake.
Related Issues (20)
- how to build dynamic libs of OpenCV under android system
- Add support for NDK r16b HOT 6
- How to complie to a library.so file ?
- adept to new ndk releases HOT 4
- CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. HOT 3
- how to generate executable file
- -fsigned-char breaks binary compatibility on ARM HOT 1
- Update for libc++
- Add support for C++11 HOT 1
- Problem building with Crystax 10.1.0 and add-rendermanager branch HOT 2
- NDK r11 does not work due to toolchain restructure HOT 25
- CLANG prefered over GCC as of r11b
- LIBRARY_OUTPUT_PATH is too oldschool way of doing things
- how to compile source for android using CMake HOT 1
- Add support for NDK r12 HOT 2
- cmake 3.6.0 not compatible with android-cmake with Ninja on Windows HOT 4
- *find_path* and *find_library* doesn't seem to work HOT 2
- A missing sysroot in ANDROID_LINKER_FLAGS
- how to load(render) 3d models .ply files from urls in my android app using this library?
- ndk r10e, ANROID_ABI=arm64-v8a HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-cmake.