Comments (12)
BTW, I'm refining CMake building system with onnc main repository.
Boost and zlib will be checked and configured then, you may be interested to try it in the future.
from onnc-umbrella.
I have pushed this patch. Please help me to check if the problem has been resolved or not.
ONNC/onnc@c593b07
from onnc-umbrella.
You need install libgoogle-glog-dev
and libboost-dev
to avoid following issues.
But after installing above-mentioned pkgs, you may see following error message.
/home/skymizer/onnc-umbrella/build-normal/lib/libonnc.a(BM188xCodeEmitter.o): In function `boost::system::error_category::std_category::equivalent(std::error_code const&, int) const':
/usr/include/boost/system/error_code.hpp:686: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:689: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:701: undefined reference to `boost::system::generic_category()'
/home/skymizer/onnc-umbrella/build-normal/lib/libonnc.a(BM188xCodeEmitter.o): In function `boost::system::error_category::std_category::equivalent(int, std::error_condition const&) const':
/usr/include/boost/system/error_code.hpp:656: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:659: undefined reference to `boost::system::generic_category()'
/home/skymizer/onnc-umbrella/build-normal/lib/libonnc.a(BM188xCodeEmitter.o):/usr/include/boost/system/error_code.hpp:206: more undefined references to `boost::system::generic_category()' follow
/home/skymizer/onnc-umbrella/build-normal/lib/libonnc.a(BM188xCodeEmitter.o): In function `_GLOBAL__sub_I__ZN4onnc17BM188xCodeEmitterC2EPNS_13BM1880BackendERSt6vectorISt10unique_ptrINS_16ComputeOperator2ESt14default_deleteIS5_EESaIS8_EE':
/usr/include/boost/system/error_code.hpp:210: undefined reference to `boost::system::system_category()'
/home/skymizer/onnc-umbrella/build-normal/lib/libonnc.a(Weight.o): In function `_GLOBAL__sub_I__ZN4onnc6BM188X6Weight10append8bitERSt6vectorIaSaIaEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE':
/usr/include/boost/system/error_code.hpp:206: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:208: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:210: undefined reference to `boost::system::system_category()'
/home/skymizer/onnc-umbrella/build-normal/lib/libonnc.a(io.o): In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:206: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:208: undefined reference to `boost::system::generic_category()'
/usr/include/boost/system/error_code.hpp:210: undefined reference to `boost::system::system_category()'
collect2: error: ld returned 1 exit status
Makefile:457: recipe for target 'onnc' failed
make[2]: *** [onnc] Error 1
make[2]: Leaving directory '/home/skymizer/onnc-umbrella/build-normal/tools/onnc'
Makefile:408: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory '/home/skymizer/onnc-umbrella/build-normal/tools'
Makefile:532: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
[/home/skymizer/onnc-umbrella/build-normal] Make onnc failed.
Failed to execute command: 'make DESTDIR=/home/skymizer/onnc-umbrella/install-normal install'
I am still finding what the required package is to solve this issue.
from onnc-umbrella.
You can try install flex and bison. JsonScanner.cpp
is generated with them.
This information will be updated to README soon.
from onnc-umbrella.
This issue is due to lack of flex
. You can install flex in your platform to solve this issue.
from onnc-umbrella.
Great, it works!
But I got the other one as following:
/workspace/onnc-umbrella/src/lib/Target/Sophon/io.cpp:15:10: fatal error: glog/logging.h: No such file or directory
#include <glog/logging.h>
^~~~~~~~~~~~~~~~
compilation terminated.
Makefile:2277: recipe for target 'Target/Sophon/io.o' failed
make[1]: *** [Target/Sophon/io.o] Error 1
make[1]: Leaving directory '/workspace/onnc-umbrella/build-normal/lib'
Makefile:532: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1
[/workspace/onnc-umbrella/build-normal] Make onnc failed.
Failed to execute command: 'make DESTDIR=/workspace/onnc-umbrella/install-normal install'
Because I'm compiling it in a container (ubuntu:latest), I need to install a lot of packages.
Here's the packages I installed:
apt install -y \
git curl cmake automake \
pkg-config bison byacc flex\
libtool protobuf-compiler libprotoc-dev \
python2.7 python2.7-dev python-pip
Please check what's missing, thanks!
from onnc-umbrella.
It seems that we need to link it by -lboost_system
or -lboost_system-mt
?
But I have no idea where to configure it because it is generated automatically.
from onnc-umbrella.
I found a temporary solution by adding LIBS="-lz -lboost_system"
to line 181 and 183 of build.sh.
from onnc-umbrella.
I think that is a right way to solve this issue. You may create a pull request to commit your code into ONNC umbrella repository.
from onnc-umbrella.
Really?
Is there a way to make auto-generated Makefile use this enviroment variables, LIBS="-lz -lboost_system"
?
from onnc-umbrella.
I'll remove the boost including. It looks like boost and z library are never used.
from onnc-umbrella.
After removing boost including, libboost-filesystem-dev
is not necessary, and the problem is resolve.
from onnc-umbrella.
Related Issues (19)
- onnc not submodule and don't mention step in README.md HOT 2
- Make onnc failed HOT 10
- Example HOT 2
- How to setup and build ONNC HOT 3
- All onnc::onnx::Reader parse failed, even with the built-in model HOT 1
- Vanilla backend can't be found w/ build.cmake.sh
- onnc compilation is not parallelized HOT 1
- How can i run or build onnc from the umbrella
- [Bug][Doc] Missing dependency glog in `macOS - with Homebrew` section
- Addition Prerequisites not mentioned in introduction HOT 1
- Command to run onnc
- build llvm fail
- Make onnc failed. make[1]: *** [JSON/JsonParser.cpp] Error 1 HOT 2
- Build onnc fail with error "collect2: error: ld returned 1 exit status tools/onnc/CMakeFiles/onnc.dir/build.make:150: recipe for target 'tools/onnc/onnc' failed" HOT 1
- Build fails with Make llvmm failed
- onnx v4 support?
- make j4, is building the libraries everytime Even though no source modifications. done.
- curl is not listed on prerequisites HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onnc-umbrella.