chyh1990 / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

Compiling gtest files on Android using Android-ndk-r5b fails #368

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
OS: linux CENTOS release 5.5 (Final)

Using gtest 1.6

What steps will reproduce the problem?
1. Download and untar the android ndk r5b and android sdk r5b on linux CentOS 
machine
2. Add those to the path
3. Compile an Android.mk file that has the gtest files listed

Output:
/gtest_main.cc ../gtest.cc .... : Unsupported source file extensions 

If I try to rename the files to .cpp extension instead of .cc, I get error such 
as gtest_main.cpp: iostream not found, limits not found...

I tried to download the android ndk r5b crystax and use those libraries, and 
couldnt compile at all: version GLIBC_2.11 not found in <crsytax ndk 
path>/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-an
droideabi-g++

Original issue reported on code.google.com by raffi.sa...@gmail.com on 20 Apr 2011 at 9:51

Attachments:

GoogleCodeExporter commented 9 years ago
People are reporting success building and running Google Test tests with the 
NDK  r5b 
(https://groups.google.com/d/topic/android-ndk/wlYwOBLIjoM/discussion). Maybe 
the problem is in your build system or build setup?

Original comment by vladlosev on 7 May 2011 at 1:42

GoogleCodeExporter commented 9 years ago
LOCAL_CPP_EXTENSION := .cc

Original comment by sto...@gmail.com on 17 Jun 2011 at 2:05