stephanecharette / DarkMark

Marking up images for use with Darknet.
https://www.ccoderun.ca/darkmark/Summary.html
Other
160 stars 21 forks source link

make failed #7

Closed robotaiguy closed 2 years ago

robotaiguy commented 3 years ago

After following these steps: sudo apt-get install build-essential cmake libopencv-dev libx11-dev libfreetype6-dev libxrandr-dev libxinerama-dev libxcursor-dev libmagic-dev cd ~/src git clone https://github.com/stephanecharette/DarkMark.git cd DarkMark mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release .. make

I get the following error: src-launcher/CMakeFiles/dm_launcher.dir/build.make:107: recipe for target 'src-launcher/CMakeFiles/dm_launcher.dir/VideoImportWindow.cpp.o' failed make[2]: [src-launcher/CMakeFiles/dm_launcher.dir/VideoImportWindow.cpp.o] Error 1 CMakeFiles/Makefile2:388: recipe for target 'src-launcher/CMakeFiles/dm_launcher.dir/all' failed make[1]: [src-launcher/CMakeFiles/dm_launcher.dir/all] Error 2 Makefile:170: recipe for target 'all' failed make: *** [all] Error 2 skynet@smash:~/DarkMark/build$

Any ideas what's goign on here?

stephanecharette commented 3 years ago

You copied the message that says that make failed, but you failed to copy the error message that must have been printed before that. What is the actual error you are getting?

robotaiguy commented 3 years ago

My apologies...this is the error that occurred: /home/skynet/DarkMark/src-launcher/VideoImportWindow.cpp: In constructor ‘dm::VideoImportWindow::VideoImportWindow(const string&, const VStr&)’: /home/skynet/DarkMark/src-launcher/VideoImportWindow.cpp:150:65: error: ‘CAP_PROP_CODEC_PIXEL_FORMAT’ is not a member of ‘cv::VideoCaptureProperties’ const uint32_t format = cap.get(cv::VideoCaptureProperties::CAP_PROP_CODEC_PIXEL_FORMAT ); ^~~~~~~ /home/skynet/DarkMark/src-launcher/VideoImportWindow.cpp:172:25: error: ‘class cv::VideoCapture’ has no member named ‘getBackendName’ ss << "Using " << cap.getBackendName() << " to read the video file \"" << shortname << "\"." << std::endl ^~~~~~

ohlr commented 3 years ago

Just guessing: have you installed darkhelp and darknet prior to the installation of darkmark? https://github.com/stephanecharette/DarkHelp/#building-darknet

robotaiguy commented 3 years ago

I have both darkhelp and darknet installed.

stephanecharette commented 3 years ago

The error you report is from something that is part of OpenCV, not something in DarkMark. So you must not have installed OpenCV correctly, or you must be using a different operating system. Please share the exact installation steps you are using, including the version number, how it was installed, as well as the operating system including the version number.

robotaiguy commented 3 years ago

For C++: pkg-config --modversion opencv 3.2.0 For python: >>> cv2.version '4.4.0' I'm using Ubuntu 18.04. I have DarkHelp installed, because I used it with my own application for yolo detection. And I have Darknet installed (Alexey's latest Yolo V4)

Should I try to update my opencv-dev for the system?

stephanecharette commented 3 years ago

Something is not right. Did you build OpenCV by hand, or with the sudo apt-get install libopencv-dev command?

robotaiguy commented 3 years ago

Originally, I just used the sudo apt-get install libopencv-dev and then after the dark mark errors, I figured I would try to install a newer version of opencv by building from source. The error still exists.

Warm regards,

Scott Uneberg


From: Stéphane Charette @.> Sent: Friday, April 9, 2021 2:58:48 PM To: stephanecharette/DarkMark @.> Cc: robotwhispering @.>; Author @.> Subject: Re: [stephanecharette/DarkMark] make failed (#7)

Something is not right. Did you build OpenCV by hand, or with the sudo apt-get install libopencv-dev command?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/stephanecharette/DarkMark/issues/7#issuecomment-816934285, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AORKCKNAUMEAADJXCSLZRG3TH5L7RANCNFSM42TSNVCQ.

stephanecharette commented 3 years ago

I booted up my old Ubuntu 18.04 VM and immediately ran into the same issues.

/home/stephane/src/DarkMark/src-launcher/VideoImportWindow.cpp:150:65: error: ‘CAP_PROP_CODEC_PIXEL_FORMAT’ is not a member of ‘cv::VideoCaptureProperties’
   const uint32_t format   = cap.get(cv::VideoCaptureProperties::CAP_PROP_CODEC_PIXEL_FORMAT );
                                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/stephane/src/DarkMark/src-launcher/VideoImportWindow.cpp:172:25: error: ‘class cv::VideoCapture’ has no member named ‘getBackendName’
   ss << "Using " << cap.getBackendName() << " to read the video file \"" << shortname << "\"." << std::endl
                         ^~~~~~~~~~~~~~

So this is specific to the old version of OpenCV in Ubuntu 18.04 versus OpenCV in Ubuntu 20.04.

I will come up with a fix so DarkMark can be built cleanly on Ubuntu 18.04 and update this ticket once that is done.

stephanecharette commented 3 years ago

@robotwhispering Scott, please try the latest version and see if that fixes the problem. v1.4.10-1 is now building correctly for me on Ubuntu 18.04.

stephanecharette commented 3 years ago

No update in 2 months. Closing.

zeljkomarinkovic commented 2 years ago

Sorry for bringing this up, but i have same issue. Tried to build DarkMark on Jetson nano, ubuntu 18.04. Darknet and DarkHelp works fine

stephanecharette commented 2 years ago

You are trying to build DarkMark on a Jetson nano?

zeljkomarinkovic commented 2 years ago

Yes, that's correct

stephanecharette commented 2 years ago

Pushed a change tonight to get DarkMark building with the old version of OpenCV installed on Jetson Nano devices. Please run git pull to get the latest changes and let me know if that fixed it.

zeljkomarinkovic commented 2 years ago

Works fine now, thanks