libnativehelper/JNIHelp.cpp:28:10: fatal error: 'string' file not found

945 views
Skip to first unread message

iwatchme

unread,
Jan 27, 2015, 2:28:10 AM1/27/15
to android-...@googlegroups.com
I build android Lolipop on Mac Yosemite using  xcode version 6.11 
and own the following error:

including ./system/extras/Android.mk ...
including ./system/keymaster/Android.mk ...
including ./system/media/audio_route/Android.mk ...
including ./system/media/audio_utils/Android.mk ...
including ./system/media/camera/src/Android.mk ...
including ./system/media/camera/tests/Android.mk ...
including ./system/netd/client/Android.mk ...
including ./system/netd/server/Android.mk ...
including ./system/security/keystore-engine/Android.mk ...
including ./system/security/keystore/Android.mk ...
including ./system/security/softkeymaster/Android.mk ...
including ./system/vold/Android.mk ...
including ./tools/external/fat32lib/Android.mk ...
host C++: libnativehelper_32 <= libnativehelper/JNIHelp.cpp
libnativehelper/JNIHelp.cpp:28:10: fatal error: 'string' file not found
#include <string>
         ^
1 error generated.
make: *** [out/host/darwin-x86/obj32/SHARED_LIBRARIES/libnativehelper_intermediates/JNIHelp.o] Error 1

#### make failed to build some targets (01:10 (mm:ss)) ####

it cannot find the <string> head ,does anyone how to solve this problem ??? thx!!!!!

Animesh Srivastava

unread,
Feb 4, 2015, 1:31:58 PM2/4/15
to android-...@googlegroups.com

丰存翰

unread,
Mar 4, 2015, 9:15:01 PM3/4/15
to android-...@googlegroups.com
Hi,have you ever solve this problem,can you tell me how to fix this?

在 2015年1月27日星期二 UTC+8下午3:28:10,iwatchme写道:

Lokesh Joshi

unread,
Mar 17, 2015, 1:42:54 PM3/17/15
to android-...@googlegroups.com
Were you able to fix this issue? I have Xcode 6.11 and I see this error right away. 

丰存翰

unread,
Mar 18, 2015, 9:53:52 AM3/18/15
to android-...@googlegroups.com
--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

---
You received this message because you are subscribed to a topic in the Google Groups "Android Building" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-building/tauCHs4QJJE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-buildi...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Liu Logan

unread,
Apr 20, 2015, 10:34:45 AM4/20/15
to android-...@googlegroups.com
libnativehelper/JNIHelp.cpp:28:10: fatal error: 'string' file not found
#include <string>
         
^
1 error generated.
make
: *** [out/host/darwin-x86/obj32/SHARED_LIBRARIES/libnativehelper_intermediates/JNIHelp.o] Error 1

#### make failed to build some targets (02:48 (mm:ss)) ####

How did you fix it?

I really appreciate any help you can provide.


在 2015年1月27日星期二 UTC+8下午3:28:10,iwatchme写道:
I build android Lolipop on Mac Yosemite using  xcode version 6.11 

O lee

unread,
Jul 15, 2015, 11:11:58 AM7/15/15
to android-...@googlegroups.com
cp 10.8 SDK into your Xcode sdks path,
then make changes on build/core/combo/HOST_darwin-x86_64.mk 

-DMACOSX_DEPLOYMENT_TARGET=10.8, 

then work well, 

btw my env MacOSX10.10.4, Xcode 4.6
Reply all
Reply to author
Forward
0 new messages