Yolo_mark icon indicating copy to clipboard operation
Yolo_mark copied to clipboard

./linux_mark.sh issue reopened

Open aerdengiz opened this issue 5 years ago • 1 comments

Well, since the issue was closed I wanted to reopen it here: I am on Ubuntu 18.04.LTS I use anaconda, so I did uninstall and reinstall opencv 3.4.2 I did install pkg-config and libgtk2.0-dev rerun the make process and even rebooted just in case, I still have the same problem:

image

aerdengiz avatar Mar 10 '19 10:03 aerdengiz

Hello dear aerdengiz, I got the same error like you but it is running now. If you have installed ligtk2.0-dev and pkg-config library, could you please recompile openCV with these options:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=$cwd/installation/OpenCV-"$cvVersion" -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D WITH_TBB=ON -D WITH_V4L=ON -D OPENCV_PYTHON3_INSTALL_PATH=$cwd/OpenCV-$cvVersion-py3/lib/python3.5/site-packages -D WITH_QT=ON -D WITH_OPENGL=ON -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules -D BUILD_EXAMPLES=ON .. While recompiling if you see an error something like this:

... The imported target "QT5::Gui" references the file "/usr/lib/86_64-linux-gnu/libGL.so" but this file does not exist. Possible reasons include: ...

Your libGL.so file probably is a broken link file which refers libGL.so.1.0.0 file in the same directory. Then you should find the newest version of libGL.so.1.* file. To find newest version type: ls -l /usr/lib/86_64-linux-gnu/libGL.so.1.*

Then run these commands: sudo rm /usr/lib/x86_64-linux-gnu/libGL.so sudo ln --symbolic /usr/lib/86_64-linux-gnu/libGL.so.1.* /usr/lib/86_64-linux-gnu/libGL.so

Note: libGL.so.1.* maybe sth. like libGL.so.1.7.0

One more thing! After opencv successfully maked, in the yolo_mark directory when you type make again and if an error appears which says

‘waitKeyEx’ is not a member of ‘cv’

then just change the name of the function to waitKey and remake it as the AlexeyAB said in the #20.

These steps worked fine for me to run the ./linux_mark.sh and I hope they work also for you.

Regards, Have a good work

yilmazumut avatar Mar 19 '19 13:03 yilmazumut