Open krime opened 9 years ago
I don't think this would cause the error you are seeing, but I recommend using jdk1.7.
I found the problem where it located. It seems like the build script didn't handle the Compilation Environment perfectly.
For my situation, I've got the System Environment Variables CPATH
and LD_LIBRARY_PATH
preset. They both point to the system compiler path, which cause the strange problems occurred above.
In this time, I recommended patch the build script $WEBRTC_SCRIPT_GIT/android/build.sh
with
@@ -224,7 +223,18 @@ execute_build() {
ARCH_OUT="out_android_${ARCH}"
REVISION_NUM=`get_webrtc_revision`
+}
+
+# Builds the apprtc demo
+execute_build() {
+ prepare_path
echo "Build ${WEBRTC_TARGET} in $BUILD_TYPE (arch: ${WEBRTC_ARCH:-arm})"
+
+ export CPATH_OLD=$CPATH
+ export LD_LIBRARY_PATH_OLD=$LD_LIBRARY_PATH
+ unset CPATH
+ unset LD_LIBRARY_PATH
+
exec_ninja "$ARCH_OUT/$BUILD_TYPE"
# Verify the build actually worked
@@ -261,8 +271,10 @@ execute_build() {
else
echo "$BUILD_TYPE build for apprtc failed for revision $REVISION_NUM"
exit 1
fi
+ export CPATH=$CPATH_OLD
+ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH_OLD
+ unset CPATH_OLD
+ unset LD_LIBRARY_PATH_OLD
}
First of all, thanks for the building scripts. After I've done setup all the environment (source build.sh, install dependencies, use jdk 1.8), I tried to build apprtc (arch=x64, debug=true). But I got errors after all:
Seems like the -Werror turns on, so I remove it, and tried again, then I got:
Can anyone tells me what's the problem of my build? P.S. My compiler's gcc 4.8, OS is Ubuntu 14.10
Thanks.