JDAI-CV / DNNLibrary

Daquexian's NNAPI Library. ONNX + Android NNAPI
Apache License 2.0
346 stars 59 forks source link

Build error (flatbuffers.h file not found) #14

Closed SungMinCho closed 5 years ago

SungMinCho commented 5 years ago

I'm getting a build error while donig cmake --build .

[ 93%] Building CXX object tools/onnx2daq/CMakeFiles/onnx2daq.dir/onnx2daq.cpp.o
In file included from /Users/sungmincho/C/temp/DNNLibrary/tools/onnx2daq/onnx2daq.cpp:8:
In file included from /Users/sungmincho/C/temp/DNNLibrary/tools/onnx2daq/OnnxConverter.h:3:
/Users/sungmincho/C/temp/DNNLibrary/common/daq_generated.h:7:10: fatal error: 'flatbuffers/flatbuffers.h' file not found

I followed everything correctly such as git cloning recursively and cmake .. in the build directory

could you please suggest what i can do to fix this?

(i'm worried that this might be a newbie question... sorry if it is)

daquexian commented 5 years ago

Thanks for your interest in DNNLibrary! It's strange that you met this trouble. Is it a flatbuffers.h in dnnlibrary/include/flatbuffers?

SungMinCho commented 5 years ago

yes it is!

 ~/C/temp/DNNLibrary   master  ls dnnlibrary/include/flatbuffers
base.h                 flatbuffers.h          flexbuffers.h          hash.h                 minireflect.h          reflection_generated.h stl_emulation.h
code_generators.h      flatc.h                grpc.h                 idl.h                  reflection.h           registry.h             util.h
daquexian commented 5 years ago

It is so strange. Could you please remove all files in build folder, rerun the same procedure but replace cmake .. with cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..(it will generate a compile_commands.json, which contains compile commands for all files) and post the generated compile_commands.json?

SungMinCho commented 5 years ago

Here it is! (It's a bit long though)

[
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DGOOGLE_GLOG_DLL_DECL=\"\" -I/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog  -O3 -DNDEBUG -fPIC -fvisibility=default -fvisibility-inlines-hidden   -Wno-unnamed-type-template-args -std=gnu++1z -o CMakeFiles/glog.dir/src/demangle.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src/demangle.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src/demangle.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DGOOGLE_GLOG_DLL_DECL=\"\" -I/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog  -O3 -DNDEBUG -fPIC -fvisibility=default -fvisibility-inlines-hidden   -Wno-unnamed-type-template-args -std=gnu++1z -o CMakeFiles/glog.dir/src/logging.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src/logging.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src/logging.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DGOOGLE_GLOG_DLL_DECL=\"\" -I/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog  -O3 -DNDEBUG -fPIC -fvisibility=default -fvisibility-inlines-hidden   -Wno-unnamed-type-template-args -std=gnu++1z -o CMakeFiles/glog.dir/src/raw_logging.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src/raw_logging.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src/raw_logging.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DGOOGLE_GLOG_DLL_DECL=\"\" -I/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog  -O3 -DNDEBUG -fPIC -fvisibility=default -fvisibility-inlines-hidden   -Wno-unnamed-type-template-args -std=gnu++1z -o CMakeFiles/glog.dir/src/symbolize.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src/symbolize.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src/symbolize.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DGOOGLE_GLOG_DLL_DECL=\"\" -I/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog  -O3 -DNDEBUG -fPIC -fvisibility=default -fvisibility-inlines-hidden   -Wno-unnamed-type-template-args -std=gnu++1z -o CMakeFiles/glog.dir/src/utilities.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src/utilities.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src/utilities.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DGOOGLE_GLOG_DLL_DECL=\"\" -I/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog  -O3 -DNDEBUG -fPIC -fvisibility=default -fvisibility-inlines-hidden   -Wno-unnamed-type-template-args -std=gnu++1z -o CMakeFiles/glog.dir/src/vlog_is_on.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src/vlog_is_on.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src/vlog_is_on.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DGOOGLE_GLOG_DLL_DECL=\"\" -I/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog  -O3 -DNDEBUG -fPIC -fvisibility=default -fvisibility-inlines-hidden   -Wno-unnamed-type-template-args -std=gnu++1z -o CMakeFiles/glog.dir/src/signalhandler.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src/signalhandler.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src/signalhandler.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/cc -Donnxifi_wrapper_EXPORTS -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx  -O3 -DNDEBUG -fPIC   -std=c99 -o CMakeFiles/onnxifi_wrapper.dir/onnx/onnxifi_wrapper.c.o   -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/onnxifi_wrapper.c",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/onnxifi_wrapper.c"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/cc  -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx  -O3 -DNDEBUG -fPIC   -std=c90 -o CMakeFiles/onnxifi_loader.dir/onnx/onnxifi_loader.c.o   -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/onnxifi_loader.c",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/onnxifi_loader.c"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/checker.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/checker.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/checker.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/common/assertions.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/common/assertions.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/common/assertions.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/common/interned_strings.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/common/interned_strings.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/common/interned_strings.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/common/ir_pb_converter.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/common/ir_pb_converter.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/common/ir_pb_converter.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/common/model_helpers.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/common/model_helpers.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/common/status.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/common/status.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/common/status.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/controlflow/defs.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/controlflow/defs.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/data_type_utils.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/data_type_utils.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/data_type_utils.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/experiments/defs.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/experiments/defs.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/experiments/defs.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/experiments/experiments_functions.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/experiments/experiments_functions.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/experiments/experiments_functions.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/function.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/function.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/function.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/generator/defs.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/generator/defs.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/generator/defs.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/logical/defs.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/logical/defs.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/logical/defs.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/logical/old.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/logical/old.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/logical/old.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/math/defs.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/math/defs.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/math/defs.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/math/old.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/math/old.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/math/old.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/nn/defs.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/nn/defs.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/nn/defs.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/nn/old.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/nn/old.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/nn/old.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/reduction/defs.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/reduction/defs.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/reduction/defs.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/rnn/defs.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/rnn/defs.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/rnn/defs.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/rnn/old.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/rnn/old.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/rnn/old.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/schema.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/schema.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/schema.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/tensor/defs.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/tensor/defs.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/tensor/defs.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/tensor/old.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/tensor/old.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/tensor/old.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/defs/traditionalml/defs.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/traditionalml/defs.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/defs/traditionalml/defs.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/optimizer/optimize.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/optimizer/optimize.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/optimizer/optimize.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/shape_inference/implementation.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/shape_inference/implementation.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/shape_inference/implementation.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/version_converter/convert.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/version_converter/convert.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/version_converter/convert.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx.dir/onnx/version_converter/helper.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/version_converter/helper.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/version_converter/helper.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx_proto.dir/onnx/onnx_onnx_daq.pb.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx/onnx/onnx_onnx_daq.pb.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx/onnx/onnx_onnx_daq.pb.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/onnx_proto.dir/onnx/onnx-operators_onnx_daq.pb.cc.o -c /Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx/onnx/onnx-operators_onnx_daq.pb.cc",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx/onnx/onnx-operators_onnx_daq.pb.cc"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx",
  "command": "/Library/Developer/CommandLineTools/usr/bin/cc -DONNXIFI_BUILD_LIBRARY=TRUE -Donnxifi_dummy_EXPORTS -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx  -O3 -DNDEBUG -fPIC   -o CMakeFiles/onnxifi_dummy.dir/onnx/onnxifi_dummy.c.o   -c /Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/onnxifi_dummy.c",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx/onnx/onnxifi_dummy.c"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/tools/onnx2daq",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DGOOGLE_GLOG_DLL_DECL=\"\" -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary -I/Users/sungmincho/C/temp/DNNLibrary/build/tools/onnx2daq -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog -I/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG   -std=gnu++1z -o CMakeFiles/onnx2daq.dir/onnx2daq.cpp.o -c /Users/sungmincho/C/temp/DNNLibrary/tools/onnx2daq/onnx2daq.cpp",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/tools/onnx2daq/onnx2daq.cpp"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/tools/onnx2daq",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DGOOGLE_GLOG_DLL_DECL=\"\" -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary -I/Users/sungmincho/C/temp/DNNLibrary/build/tools/onnx2daq -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog -I/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG   -std=gnu++1z -o CMakeFiles/onnx2daq.dir/OnnxConverter.cpp.o -c /Users/sungmincho/C/temp/DNNLibrary/tools/onnx2daq/OnnxConverter.cpp",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/tools/onnx2daq/OnnxConverter.cpp"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/tools/onnx2daq",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DGOOGLE_GLOG_DLL_DECL=\"\" -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary -I/Users/sungmincho/C/temp/DNNLibrary/build/tools/onnx2daq -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog -I/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG   -std=gnu++1z -o CMakeFiles/onnx2daq.dir/NodeAttrHelper.cpp.o -c /Users/sungmincho/C/temp/DNNLibrary/tools/onnx2daq/NodeAttrHelper.cpp",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/tools/onnx2daq/NodeAttrHelper.cpp"
},
{
  "directory": "/Users/sungmincho/C/temp/DNNLibrary/build/tools/onnx2daq",
  "command": "/Library/Developer/CommandLineTools/usr/bin/c++  -DGOOGLE_GLOG_DLL_DECL=\"\" -DONNX_NAMESPACE=onnx_daq -I/Users/sungmincho/C/temp/DNNLibrary -I/Users/sungmincho/C/temp/DNNLibrary/build/tools/onnx2daq -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/glog -I/Users/sungmincho/C/temp/DNNLibrary/third_party/glog/src -I/Users/sungmincho/C/temp/DNNLibrary/third_party/onnx -I/Users/sungmincho/C/temp/DNNLibrary/build/third_party/onnx -isystem /usr/local/include  -O3 -DNDEBUG   -std=gnu++1z -o CMakeFiles/onnx2daq.dir/__/__/common/Shaper.cpp.o -c /Users/sungmincho/C/temp/DNNLibrary/common/Shaper.cpp",
  "file": "/Users/sungmincho/C/temp/DNNLibrary/common/Shaper.cpp"
}
]
daquexian commented 5 years ago

Thanks, it turns out my fault!

I have updated the code and fixed the bug. Please git pull and try again :) Thanks very much. Please feel free to reopen this issue if the trouble is not solved. Thanks!