在使用Docker编译android的paddle-mobile库的时候报错
Created by: yeyupiaoling
我使用的是Docker,在make的时候报一下错误:
root@0976bda5e67d:/paddle-mobile# make
/usr/bin/cmake -H/paddle-mobile -B/paddle-mobile --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /paddle-mobile/CMakeFiles /paddle-mobile/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/paddle-mobile'
make -f CMakeFiles/paddle-mobile.dir/build.make CMakeFiles/paddle-mobile.dir/depend
make[2]: Entering directory '/paddle-mobile'
cd /paddle-mobile && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /paddle-mobile /paddle-mobile /paddle-mobile /paddle-mobile /paddle-mobile/CMakeFiles/paddle-mobile.dir/DependInfo.cmake --color=
Scanning dependencies of target paddle-mobile
make[2]: Leaving directory '/paddle-mobile'
make -f CMakeFiles/paddle-mobile.dir/build.make CMakeFiles/paddle-mobile.dir/build
make[2]: Entering directory '/paddle-mobile'
[ 1%] Building CXX object CMakeFiles/paddle-mobile.dir/src/framework/operator.cpp.o
/opt/android-ndk-r17b/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=armv7-none-linux-androideabi --gcc-toolchain=/opt/android-ndk-r17b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/opt/android-ndk-r17b/sysroot -DARMV7 -DCONCAT_OP -DCONV_OP -DELEMENTWISEADD_OP -DENABLE_EXCEPTION -DFUSION_CONVADD_OP -DFUSION_CONVADD_RELU_OP -DFUSION_FC_OP -DLRN_OP -DMUL_OP -DPADDLE_MOBILE_CPU -DPADDLE_MOBILE_DEBUG -DPADDLE_MOBILE_PROFILE -DPADDLE_MOBILE_USE_OPENMP -DPOOL_OP -DRELU_OP -Dpaddle_mobile_EXPORTS -I/paddle-mobile/src -std=c++14 -O3 -s -isystem /opt/android-ndk-r17b/sysroot/usr/include/arm-linux-androideabi -D__ANDROID_API__=14 -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb -mfpu=neon -Wa,--noexecstack -Wformat -Werror=format-security -fopenmp -llog -g -DNDEBUG -fPIC -fexceptions -o CMakeFiles/paddle-mobile.dir/src/framework/operator.cpp.o -c /paddle-mobile/src/framework/operator.cpp
clang++: warning: -llog: 'linker' input unused [-Wunused-command-line-argument]
clang++: warning: argument unused during compilation: '-s' [-Wunused-command-line-argument]
In file included from /paddle-mobile/src/framework/operator.cpp:15:
/paddle-mobile/src/framework/operator.h:17:10: fatal error: 'map' file not found
#include <map>
^~~~~
1 error generated.
CMakeFiles/paddle-mobile.dir/build.make:65: recipe for target 'CMakeFiles/paddle-mobile.dir/src/framework/operator.cpp.o' failed
make[2]: *** [CMakeFiles/paddle-mobile.dir/src/framework/operator.cpp.o] Error 1
make[2]: Leaving directory '/paddle-mobile'
CMakeFiles/Makefile2:70: recipe for target 'CMakeFiles/paddle-mobile.dir/all' failed
make[1]: *** [CMakeFiles/paddle-mobile.dir/all] Error 2
make[1]: Leaving directory '/paddle-mobile'
Makefile:86: recipe for target 'all' failed
make: *** [all] Error 2
root@0976bda5e67d:/paddle-mobile#
不知道是不是我进入镜像的方式的问题,我使用的命令如下,因为官方的命令我执行不了,有错:
docker run -it -v $PWD:/paddle-mobile paddle-mobile:dev