Coder Social home page Coder Social logo

make -j error about dense_flow HOT 22 CLOSED

wanglimin avatar wanglimin commented on September 24, 2024 1
make -j error

from dense_flow.

Comments (22)

zhipeng-fan avatar zhipeng-fan commented on September 24, 2024 2

@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.

zhipeng-fan avatar zhipeng-fan commented on September 24, 2024 2

Got it work, we need to download all the dependencies.

from dense_flow.

Tylerjoe avatar Tylerjoe commented on September 24, 2024 1

@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.

cyy53589 avatar cyy53589 commented on September 24, 2024 1

@patrolli Hi, I works it out by :

  1. clone easyloggingpp
  2. copy easyloggingpp/src/* into dense_flow/include/easylogging/src
  3. copy easyloggingpp/src/*.cc into dense_flow/src
  4. 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.

wanglimin avatar wanglimin commented on September 24, 2024

I test this code with OpenCV 2.4.12.

from dense_flow.

shuangshuangguo avatar shuangshuangguo commented on September 24, 2024

@wanglimin @yjxiong
so does it adapt to OpenCV 3.2.0??

from dense_flow.

wanglimin avatar wanglimin commented on September 24, 2024

We did not test on OpenCV 3.2.0.

from dense_flow.

yjxiong avatar yjxiong commented on September 24, 2024

@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.

shuangshuangguo avatar shuangshuangguo commented on September 24, 2024

@yjxiong yes, I have compiled it successfully on OpenCV 3.2.0.
Thanks for your work!

from dense_flow.

duygusar avatar duygusar commented on September 24, 2024

@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.

zhipeng-fan avatar zhipeng-fan commented on September 24, 2024

@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.

shuangshuangguo avatar shuangshuangguo commented on September 24, 2024

@zhipeng-fan for OpenCV 3.x, you can follow this, https://github.com/gss-ucas/dense_flow

from dense_flow.

duygusar avatar duygusar commented on September 24, 2024

@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.

duygusar avatar duygusar commented on September 24, 2024

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.

Tylerjoe avatar Tylerjoe commented on September 24, 2024

@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.

Tylerjoe avatar Tylerjoe commented on September 24, 2024

have you solved this problem about easylogging @duygusar

from dense_flow.

wanglimin avatar wanglimin commented on September 24, 2024

from dense_flow.

yjxiong avatar yjxiong commented on September 24, 2024

You should use git clone —recursive, otherwise easylogging won’t be in the folder.

from dense_flow.

Tylerjoe avatar Tylerjoe commented on September 24, 2024

@yjxiong Thanks for your reply and help

from dense_flow.

LuDu2020 avatar LuDu2020 commented on September 24, 2024

@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.

IvanFei avatar IvanFei commented on September 24, 2024

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 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.

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.

patrolli avatar patrolli commented on September 24, 2024

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 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.

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.