Comments (22)
@gss-ucas @yjxiong @wanglimin How did you solve it? I am using OpenCV 3.3.0 and came across the same issue using the 3.x branch of the dense-flow
from dense_flow.
Got it work, we need to download all the dependencies.
from dense_flow.
@wanglimin Thanks for your so quick reply,but there is the other link for opencv3 in README.md.
Please see the opencv-3.1 branch. Many thanks to @victorhcm for the contributions!
I downloaded the project for the link and complied it.
from dense_flow.
@patrolli Hi, I works it out by :
- clone easyloggingpp
- copy easyloggingpp/src/* into dense_flow/include/easylogging/src
- copy easyloggingpp/src/*.cc into dense_flow/src
- change line 33 in CMakeList.txt
add_library(denseflow src/common.cpp src/dense_flow.cpp src/dense_flow_gpu.cpp src/dense_warp_flow_gpu.cpp src/zip_utils.cpp src/easylogging++.cc)
from dense_flow.
I test this code with OpenCV 2.4.12.
from dense_flow.
@wanglimin @yjxiong
so does it adapt to OpenCV 3.2.0??
from dense_flow.
We did not test on OpenCV 3.2.0.
from dense_flow.
@gss-ucas
If you do need OpenCV 3.x, you can refer to
https://github.com/yjxiong/dense_flow/tree/opencv-3.1
However, we did not test it.
from dense_flow.
@yjxiong yes, I have compiled it successfully on OpenCV 3.2.0.
Thanks for your work!
from dense_flow.
@zhipeng-fan what other dependencies are needed besides libzip-dev? I have 3.3.0 and I tried to compile but got pages and pages of errors. Thanks.
from dense_flow.
@duygusar Hi, I am not sure since it was a long time ago. Just a wild guess, did you also install the easylogging?
from dense_flow.
@zhipeng-fan for OpenCV 3.x, you can follow this, https://github.com/gss-ucas/dense_flow
from dense_flow.
@gss-ucas and @zhipeng-fan Thank you both, Using @zhipeng-fan 's git and installing easylogging, I was able to get to a point where at least the errors make more sense. I also figured out I needed the opencv contrib modules. However I still have a problem while "make" (no problem with cmake part):
[ 57%] Linking CXX executable extract_cpu
CMakeFiles/extract_cpu.dir/tools/extract_flow.cpp.o: In function __static_initialization_and_destruction_0(int, int)': extract_flow.cpp:(.text+0xbaa): undefined reference to
el::base::Storage::Storage(std::shared_ptrel::LogBuilder const&)'
CMakeFiles/extract_cpu.dir/tools/extract_flow.cpp.o: In function el::LogBuilder::LogBuilder()': extract_flow.cpp:(.text._ZN2el10LogBuilderC2Ev[_ZN2el10LogBuilderC5Ev]+0x2b): undefined reference to
el::base::utils::OS::termSupportsColor()'
CMakeFiles/extract_cpu.dir/tools/extract_flow.cpp.o: In function el::base::DefaultLogBuilder::DefaultLogBuilder()': extract_flow.cpp:(.text._ZN2el4base17DefaultLogBuilderC2Ev[_ZN2el4base17DefaultLogBuilderC5Ev]+0x1b): undefined reference to
vtable for el::base::DefaultLogBuilder'
libdenseflow.a(dense_flow.cpp.o): In function calcDenseFlow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int, std::vector<std::vector<unsigned char, std::allocator<unsigned char> >, std::allocator<std::vector<unsigned char, std::allocator<unsigned char> > > >&, std::vector<std::vector<unsigned char, std::allocator<unsigned char> >, std::allocator<std::vector<unsigned char, std::allocator<unsigned char> > > >&, std::vector<std::vector<unsigned char, std::allocator<unsigned char> >, std::allocator<std::vector<unsigned char, std::allocator<unsigned char> > > >&)': dense_flow.cpp:(.text+0x100): undefined reference to
el::base::Writer::construct(int, char const*, ...)'
dense_flow.cpp:(.text+0x6e6): undefined reference to el::base::Writer::construct(int, char const*, ...)' libdenseflow.a(dense_flow.cpp.o): In function
el::base::Writer::~Writer()':
dense_flow.cpp:(.text._ZN2el4base6WriterD2Ev[_ZN2el4base6WriterD5Ev]+0x26): undefined reference to el::base::Writer::processDispatch()' libdenseflow.a(zip_utils.cpp.o): In function
writeZipFile(std::vector<std::vector<unsigned char, std::allocator >, std::allocator<std::vector<unsigned char, std::allocator > > >&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)':
zip_utils.cpp:(.text+0xce): undefined reference to el::base::Writer::construct(int, char const*, ...)' zip_utils.cpp:(.text+0x2c0): undefined reference to
el::base::Writer::construct(int, char const*, ...)'
collect2: error: ld returned 1 exit status
CMakeFiles/extract_cpu.dir/build.make:156: recipe for target 'extract_cpu' failed
make[2]: *** [extract_cpu] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/extract_cpu.dir/all' failed
make[1]: *** [CMakeFiles/extract_cpu.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
and I am stuck here. any recommendations? It links to the code rather than dependencies and I am out of ideas. I am not familiar with cpp either. Thanks.
from dense_flow.
Seems like it might be due to easyloggingpp, during make test I receive:
Test project /home/duygu/Desktop/CONDOR/easyloggingpp-9.96.4/build
Start 1: easyloggingppUnitTests
1/1 Test #1: easyloggingppUnitTests ...........***Exception: Other 18.74 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 18.74 sec
The following tests FAILED:
1 - easyloggingppUnitTests (OTHER_FAULT)
Errors while running CTest
Makefile:127: recipe for target 'test' failed
make: *** [test] Error 8
from dense_flow.
@shuangshuangguo @yjxiong I still have the same problem with opencv-3.2.0 :
dense_flow/src/zip_utils.cpp:7:27: fatal error: easylogging++.h: No such file or directory
my environment is centos 7.2
could you please give me some advices, Thanks!
from dense_flow.
have you solved this problem about easylogging @duygusar
from dense_flow.
from dense_flow.
You should use git clone —recursive, otherwise easylogging won’t be in the folder.
from dense_flow.
@yjxiong Thanks for your reply and help
from dense_flow.
@yjxiong Thanks for your reply and help
@Tylerjoe hello,Hello, I would like to ask whether you have encountered this problem in the compilation process of opencv3.1:
make j:
Error:
In file included from /data/user21/dense_flow/src/dense_warp_flow_gpu.cpp:2:0:
/data/user21/dense_flow/include/dense_flow.h:9:27: fatal error: easylogging++.h: No such file or directory
compilation terminated.
CMakeFiles/denseflow.dir/build.make:134: recipe for target 'CMakeFiles/denseflow.dir/src/dense_warp_flow_gpu.cpp.o' failed
make[2]: *** [CMakeFiles/denseflow.dir/src/dense_warp_flow_gpu.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/data/user21/dense_flow/src/dense_flow_gpu.cpp:8:27: fatal error: easylogging++.h: No such file or directory
compilation terminated.
CMakeFiles/denseflow.dir/build.make:110: recipe for target 'CMakeFiles/denseflow.dir/src/dense_flow_gpu.cpp.o' failed
make[2]: *** [CMakeFiles/denseflow.dir/src/dense_flow_gpu.cpp.o] Error 1
In file included from /data/user21/dense_flow/src/dense_flow.cpp:5:0:
/data/user21/dense_flow/include/dense_flow.h:9:27: fatal error: easylogging++.h: No such file or directory
compilation terminated.
/data/user21/dense_flow/src/zip_utils.cpp:7:27: fatal error: easylogging++.h: No such file or directory
compilation terminated.
CMakeFiles/denseflow.dir/build.make:158: recipe for target 'CMakeFiles/denseflow.dir/src/zip_utils.cpp.o' failed
make[2]: *** [CMakeFiles/denseflow.dir/src/zip_utils.cpp.o] Error 1
CMakeFiles/denseflow.dir/build.make:86: recipe for target 'CMakeFiles/denseflow.dir/src/dense_flow.cpp.o' failed
make[2]: *** [CMakeFiles/denseflow.dir/src/dense_flow.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/denseflow.dir/all' failed
make[1]: *** [CMakeFiles/denseflow.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
from dense_flow.
Seems like it might be due to easyloggingpp, during make test I receive:
Test project /home/duygu/Desktop/CONDOR/easyloggingpp-9.96.4/build
Start 1: easyloggingppUnitTests
1/1 Test #1: easyloggingppUnitTests ...........***Exception: Other 18.74 sec0% tests passed, 1 tests failed out of 1
Total Test time (real) = 18.74 sec
The following tests FAILED:
1 - easyloggingppUnitTests (OTHER_FAULT)
Errors while running CTest
Makefile:127: recipe for target 'test' failed
make: *** [test] Error 8
@gss-ucas and @zhipeng-fan Thank you both, Using @zhipeng-fan 's git and installing easylogging, I was able to get to a point where at least the errors make more sense. I also figured out I needed the opencv contrib modules. However I still have a problem while "make" (no problem with cmake part):
[ 57%] Linking CXX executable extract_cpu
CMakeFiles/extract_cpu.dir/tools/extract_flow.cpp.o: In function__static_initialization_and_destruction_0(int, int)': extract_flow.cpp:(.text+0xbaa): undefined reference to
el::base::Storage::Storage(std::shared_ptrel::LogBuilder const&)'
CMakeFiles/extract_cpu.dir/tools/extract_flow.cpp.o: In functionel::LogBuilder::LogBuilder()': extract_flow.cpp:(.text._ZN2el10LogBuilderC2Ev[_ZN2el10LogBuilderC5Ev]+0x2b): undefined reference to
el::base::utils::OS::termSupportsColor()'
CMakeFiles/extract_cpu.dir/tools/extract_flow.cpp.o: In functionel::base::DefaultLogBuilder::DefaultLogBuilder()': extract_flow.cpp:(.text._ZN2el4base17DefaultLogBuilderC2Ev[_ZN2el4base17DefaultLogBuilderC5Ev]+0x1b): undefined reference to
vtable for el::base::DefaultLogBuilder'
libdenseflow.a(dense_flow.cpp.o): In functioncalcDenseFlow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int, std::vector<std::vector<unsigned char, std::allocator<unsigned char> >, std::allocator<std::vector<unsigned char, std::allocator<unsigned char> > > >&, std::vector<std::vector<unsigned char, std::allocator<unsigned char> >, std::allocator<std::vector<unsigned char, std::allocator<unsigned char> > > >&, std::vector<std::vector<unsigned char, std::allocator<unsigned char> >, std::allocator<std::vector<unsigned char, std::allocator<unsigned char> > > >&)': dense_flow.cpp:(.text+0x100): undefined reference to
el::base::Writer::construct(int, char const*, ...)'
dense_flow.cpp:(.text+0x6e6): undefined reference toel::base::Writer::construct(int, char const*, ...)' libdenseflow.a(dense_flow.cpp.o): In function
el::base::Writer::~Writer()':
dense_flow.cpp:(.text._ZN2el4base6WriterD2Ev[_ZN2el4base6WriterD5Ev]+0x26): undefined reference toel::base::Writer::processDispatch()' libdenseflow.a(zip_utils.cpp.o): In function
writeZipFile(std::vector<std::vector<unsigned char, std::allocator >, std::allocator<std::vector<unsigned char, std::allocator > > >&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)':
zip_utils.cpp:(.text+0xce): undefined reference toel::base::Writer::construct(int, char const*, ...)' zip_utils.cpp:(.text+0x2c0): undefined reference to
el::base::Writer::construct(int, char const*, ...)'
collect2: error: ld returned 1 exit status
CMakeFiles/extract_cpu.dir/build.make:156: recipe for target 'extract_cpu' failed
make[2]: *** [extract_cpu] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/extract_cpu.dir/all' failed
make[1]: *** [CMakeFiles/extract_cpu.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2and I am stuck here. any recommendations? It links to the code rather than dependencies and I am out of ideas. I am not familiar with cpp either. Thanks.
Excuse me, have you solved this problem? I have the same problem. Would you please tell me the solution, if you have any ideas...
from dense_flow.
Seems like it might be due to easyloggingpp, during make test I receive:
Test project /home/duygu/Desktop/CONDOR/easyloggingpp-9.96.4/build
Start 1: easyloggingppUnitTests
1/1 Test #1: easyloggingppUnitTests ...........***Exception: Other 18.74 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 18.74 sec
The following tests FAILED:
1 - easyloggingppUnitTests (OTHER_FAULT)
Errors while running CTest
Makefile:127: recipe for target 'test' failed
make: *** [test] Error 8@gss-ucas and @zhipeng-fan Thank you both, Using @zhipeng-fan 's git and installing easylogging, I was able to get to a point where at least the errors make more sense. I also figured out I needed the opencv contrib modules. However I still have a problem while "make" (no problem with cmake part):
[ 57%] Linking CXX executable extract_cpu
CMakeFiles/extract_cpu.dir/tools/extract_flow.cpp.o: In function__static_initialization_and_destruction_0(int, int)': extract_flow.cpp:(.text+0xbaa): undefined reference to
el::base::Storage::Storage(std::shared_ptrel::LogBuilder const&)'
CMakeFiles/extract_cpu.dir/tools/extract_flow.cpp.o: In functionel::LogBuilder::LogBuilder()': extract_flow.cpp:(.text._ZN2el10LogBuilderC2Ev[_ZN2el10LogBuilderC5Ev]+0x2b): undefined reference to
el::base::utils::OS::termSupportsColor()'
CMakeFiles/extract_cpu.dir/tools/extract_flow.cpp.o: In functionel::base::DefaultLogBuilder::DefaultLogBuilder()': extract_flow.cpp:(.text._ZN2el4base17DefaultLogBuilderC2Ev[_ZN2el4base17DefaultLogBuilderC5Ev]+0x1b): undefined reference to
vtable for el::base::DefaultLogBuilder'
libdenseflow.a(dense_flow.cpp.o): In functioncalcDenseFlow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int, std::vector<std::vector<unsigned char, std::allocator<unsigned char> >, std::allocator<std::vector<unsigned char, std::allocator<unsigned char> > > >&, std::vector<std::vector<unsigned char, std::allocator<unsigned char> >, std::allocator<std::vector<unsigned char, std::allocator<unsigned char> > > >&, std::vector<std::vector<unsigned char, std::allocator<unsigned char> >, std::allocator<std::vector<unsigned char, std::allocator<unsigned char> > > >&)': dense_flow.cpp:(.text+0x100): undefined reference to
el::base::Writer::construct(int, char const*, ...)'
dense_flow.cpp:(.text+0x6e6): undefined reference toel::base::Writer::construct(int, char const*, ...)' libdenseflow.a(dense_flow.cpp.o): In function
el::base::Writer::~Writer()':
dense_flow.cpp:(.text._ZN2el4base6WriterD2Ev[_ZN2el4base6WriterD5Ev]+0x26): undefined reference toel::base::Writer::processDispatch()' libdenseflow.a(zip_utils.cpp.o): In function
writeZipFile(std::vector<std::vector<unsigned char, std::allocator >, std::allocator<std::vector<unsigned char, std::allocator > > >&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >, std::__cxx11::basic_string<char, std::char_traits, std::allocator >)':
zip_utils.cpp:(.text+0xce): undefined reference toel::base::Writer::construct(int, char const*, ...)' zip_utils.cpp:(.text+0x2c0): undefined reference to
el::base::Writer::construct(int, char const*, ...)'
collect2: error: ld returned 1 exit status
CMakeFiles/extract_cpu.dir/build.make:156: recipe for target 'extract_cpu' failed
make[2]: *** [extract_cpu] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/extract_cpu.dir/all' failed
make[1]: *** [CMakeFiles/extract_cpu.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
and I am stuck here. any recommendations? It links to the code rather than dependencies and I am out of ideas. I am not familiar with cpp either. Thanks.Excuse me, have you solved this problem? I have the same problem. Would you please tell me the solution, if you have any ideas...
i also got the same problem, have you solve it? Could u pls tell me the solution as well...
from dense_flow.
Related Issues (20)
- Gpu API call (unknown error) in mallocPitch HOT 1
- fatal error: opencv2/gpu/gpu.hpp: No such file or directory HOT 1
- Different frame num with original video HOT 1
- CMakeFiles/extract_cpu.dir/build.make:120: recipe for target 'extract_cpu' failed HOT 1
- can I extract rgb and optical images use fps=25? HOT 2
- why is the TVL1 with GPU so slow? HOT 1
- /usr/bin/ld: cannot find -lopencv_dep_cudart HOT 1
- I don't know how to make the file
- does this support cuda-9.0 HOT 1
- run error HOT 4
- How to extract the optical flow of multiple videos at once,Instead of a video
- Code for OpenCV >= 3
- Not work for some videos
- How can I use these codes on sequence of images? HOT 2
- Could NOT find LIBZIP
- 'easylogging++.h' file not found HOT 1
- dense_flow_gpu.cpp error HOT 2
- denseFlow_GPU with OpenCV 3.4.6 HOT 1
- camke and make -j are completed,but when i test the command like this,some mistake happened HOT 1
- make error?
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 dense_flow.