XiaoMi/mace

make问题

fxy080209200 opened this issue · 1 comments

(fangxiangyang) [fangxiangyang@ai-7 /ai-cephfs/Share/fangxiangang_share/mace-master]make
[ 4%] Built target opencl_headers
[ 8%] Built target protobuf
[ 12%] Built target gflags_gflags
[ 16%] Built target half
[ 19%] Built target opencl_clhpp
[ 23%] Built target gemmlowp
[ 26%] Built target protoc_bin
[ 30%] Built target tflite
[ 34%] Built target eigen3
[ 34%] Built target caffe_proto_src
[ 34%] Checking if re-generation is required
[ 35%] Built target version_src
[ 36%] Built target generated_version
[ 37%] Checking if re-generation is required
[ 37%] Built target opencl_kernel_src
[ 38%] Built target generated_opencl_kernel
[ 41%] Built target utils
[ 43%] Built target port_base
[ 43%] Built target port_posix
[ 44%] Built target port_linux_base
[ 45%] Built target port_linux
[ 46%] Generating mace_proto_files from mace.proto
[ 46%] Checking if re-generation is required
[ 46%] Built target mace_proto_cpp
Scanning dependencies of target proto
[ 47%] Building CXX object mace/proto/CMakeFiles/proto.dir/mace.pb.cc.o
[ 47%] Linking CXX static library libproto.a
[ 47%] Built target proto
Scanning dependencies of target core
[ 47%] Building CXX object mace/core/CMakeFiles/core.dir/allocator.cc.o
[ 48%] Building CXX object mace/core/CMakeFiles/core.dir/arg_helper.cc.o
[ 48%] Building CXX object mace/core/CMakeFiles/core.dir/device.cc.o
[ 49%] Building CXX object mace/core/CMakeFiles/core.dir/memory_optimizer.cc.o
[ 49%] Building CXX object mace/core/CMakeFiles/core.dir/net.cc.o
[ 49%] Building CXX object mace/core/CMakeFiles/core.dir/net_def_adapter.cc.o
[ 50%] Building CXX object mace/core/CMakeFiles/core.dir/net_optimizer.cc.o
[ 50%] Building CXX object mace/core/CMakeFiles/core.dir/ops/op_condition_builder.cc.o
[ 51%] Building CXX object mace/core/CMakeFiles/core.dir/ops/op_condition_context.cc.o
[ 51%] Building CXX object mace/core/CMakeFiles/core.dir/ops/op_construct_context.cc.o
[ 52%] Building CXX object mace/core/CMakeFiles/core.dir/ops/op_context.cc.o
[ 52%] Building CXX object mace/core/CMakeFiles/core.dir/ops/operator.cc.o
[ 52%] Building CXX object mace/core/CMakeFiles/core.dir/quantize.cc.o
[ 52%] Building CXX object mace/core/CMakeFiles/core.dir/registry/op_delegator_registry.cc.o
[ 53%] Building CXX object mace/core/CMakeFiles/core.dir/registry/op_registration_info.cc.o
[ 53%] Building CXX object mace/core/CMakeFiles/core.dir/registry/ops_registry.cc.o
[ 53%] Building CXX object mace/core/CMakeFiles/core.dir/types.cc.o
[ 54%] Building CXX object mace/core/CMakeFiles/core.dir/workspace.cc.o
[ 55%] Linking CXX static library libcore.a
[ 58%] Built target core
make[2]: *** No rule to make target third_party/install/protobuf/lib/libprotobuf-lite.a', needed by mace/codegen/libmodel_shared.so'. Stop.
make[1]: *** [mace/codegen/CMakeFiles/model_shared.dir/all] Error 2
make: *** [all] Error 2

lu229 commented

@fxy080209200 我们不支持直接make哈,可以参考cmake文档进行编译, 不过目前cmake编译方式不支持静态库。如果你需要使用静态库,可以使用bazel的编译方式,可参考Bazel编译文档