Thank you xunxun! Placing #define into .h file helped.
I think that proper gcc compiler is being used, as I point to the latest ndk in the mozconfig, Now I returned back to the initial issue that I've been trying to resolve for the last two weeks, I described it here: https://groups.google.com/forum/#!topic/mozilla.dev.builds/_0wgOnle6HI On Thursday, August 21, 2014 6:15:49 AM UTC-7, xunxun wrote: > 于 2014/8/21 14:55, [email protected] 写道: > I'm trying to compile sources from > http://hg.mozilla.org/releases/mozilla-release/ and get the error below. > > I was able to compile the nightly sources, however release doesn't work. > > > 22:33.66 In file included from > /Users/yu/Documents/projects/mozilla/Fennec/release/media/webrtc/trunk/webrtc/modules/video_capture/android/device_info_android.cc:16: > 22:33.67 > /Users/yu/Documents/projects/mozilla/Fennec/release/media/webrtc/trunk/webrtc/modules/../../webrtc/modules/video_capture/android/video_capture_android.h: > In member function 'JNIEnv* > webrtc::videocapturemodule::AutoLocalJNIFrame::InitJNIEnv()': > 22:33.67 > /Users/yu/Documents/projects/mozilla/Fennec/release/media/webrtc/trunk/webrtc/modules/../../webrtc/modules/video_capture/android/video_capture_android.h:132: > error: 'nullptr' was not declared in this scopeI think your compiler > toolchain doesn't support C++0x, which is supported since GCC4.6 > Or try to define nullptr __null22:33.69 audio_device_buffer.o > 22:33.69 In the directory > /Users/yu/Documents/projects/mozilla/Fennec/release/objdir-droid/media/webrtc/trunk/webrtc/modules/modules_video_capture_module > 22:33.69 The following command failed to execute properly: > 22:33.69 /usr/local/bin/ccache > /Users/yu/Development/android-ndk-r8e/toolchains/arm-linux-androideabi-4.4.3/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-g++ > -o device_info_android.o -c -fvisibility=hidden > -DWEBRTC_SVNREVISION="Unavailable_issue687" -D_FILE_OFFSET_BITS=64 > -DNO_TCMALLOC -DDISABLE_NACL -DCHROMIUM_BUILD -DUSE_LIBJPEG_TURBO=1 > -DUSE_PROPRIETARY_CODECS -DENABLE_GPU=1 -DUSE_OPENSSL=1 -DENABLE_EGLIMAGE=1 > -DUSE_SKIA=1 -DWEBRTC_LOGGING -DWEBRTC_MOZILLA_BUILD -DWEBRTC_ARCH_ARM > -DWEBRTC_ARCH_ARM_V7 -DWEBRTC_BUILD_NEON_LIBS -DWEBRTC_DETECT_ARM_NEON > -DWEBRTC_ANDROID_OPENSLES -DWEBRTC_LINUX -DWEBRTC_ANDROID > -D__STDC_FORMAT_MACROS -DANDROID -D__GNU_SOURCE=1 -DUSE_STLPORT=1 > -D_STLP_USE_PTR_SPECIALIZATIONS=1 -DCHROME_SYMBOLS_ID="" -DNDEBUG -DNVALGRIND > -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DMOZILLA_INTERNAL_API -DIMPL_LIBXUL > -DSTATIC_EXPORTABLE_JS_API -DNO_NSPR_10_SUPPORT -I. > > ............. > > > > /Users/yu/Documents/projects/mozilla/Fennec/release/media/webrtc/trunk/webrtc/modules/video_capture/android/device_info_android.cc > 22:33.69 make[5]: *** [device_info_android.o] Error 1 > 22:33.69 make[4]: *** > [media/webrtc/trunk/webrtc/modules/modules_video_capture_module/compile] > Error 2 > 22:33.69 make[4]: *** Waiting for unfinished jobs.... > > ........... > > > > > My mozconfig file looks like this: > ac_add_options --with-android-ndk="$HOME/Development/android-ndk-r8e" > ac_add_options > --with-android-sdk="$HOME/Development/sdk/platforms/android-17" > > ac_add_options --enable-application=mobile/android > ac_add_options --target=arm-linux-androideabi > > ac_add_options --disable-tests > > > Actually, I started getting this error only today, after I pulled recent > changes. Before that I was getting a different error, on a later stage. > > > > > > -- > Best Regards, > xunxun _______________________________________________ dev-builds mailing list [email protected] https://lists.mozilla.org/listinfo/dev-builds

