Previously on Power Chair Robot Lawn Mower.........
So, according to the OpenCV website, we need to go to File>New>C/C++ Project, but there isn't any C/C++ Project in there. We have to go down to other, which will open up another dialog and then select C/C++ Project. I know it may be a little overkill, but I want to make sure anyone who is trying to recreate this has some sort of idea how to do what I did with the version I do it on.
BTW, to get the version on OpenCV you are using terminal this:
pkg-config --modversion opencv
This told me i was using version 3.2.0....
Once you have the new project started you will be back at the welcome screen with nothing to indicate what you have to do to open the real IDE portion of Eclipse. Here is where you want to click:
Click the little icon that the pointer is over in the above image (upper left hand corner). After doing so, it should look like this:
We can close the welcome screen or just iconify it by clicking the minimize button.
If you haven't deducted that I have been following a tutorial, thanks for your vote of confidence in my setting up stuff I am very unfamiliar with in Linux; if you were noticing this looks like I am having some sort of brain spasms over stuff not being how it should, congrats! So much of this isn't as simple as the instructions on the OpenCV site tells.
I will now attempt to show the process of giving the library search path of the GUI to pass to the compiler. The instructions I tried to follow (with some difficulty due to commands not doing as they suggest they do, or no longer doing what they once did), needs to be updated is found here: https://docs.opencv.org/master/d7/d16/tutorial_linux_eclipse.html .
If you try to follow this to create your own program, as I am doing, you will find that finding the libraries aren't as simple as they suggest they are. I used the ancient incantation for locating files in Linux to find the directory of the OpenCV libraries. The magic words are:
sudo find -iname *libopencv_core.so*
This gives us where the libraries are!? I hope... So that's where I got the directory from because the command they gave didn't display the directory of the library files:
pkg-config --libs opencv
This just gave the library files:
-lopencv_shape -lopencv_stitching -lopencv_superres -lopencv_videostab -lopencv_aruco -lopencv_bgsegm -lopencv_bioinspired -lopencv_ccalib -lopencv_datasets -lopencv_dpm -lopencv_face -lopencv_freetype -lopencv_fuzzy -lopencv_hdf -lopencv_line_descriptor -lopencv_optflow -lopencv_video -lopencv_plot -lopencv_reg -lopencv_saliency -lopencv_stereo -lopencv_structured_light -lopencv_phase_unwrapping -lopencv_rgbd -lopencv_viz -lopencv_surface_matching -lopencv_text -lopencv_ximgproc -lopencv_calib3d -lopencv_features2d -lopencv_flann -lopencv_xobjdetect -lopencv_objdetect -lopencv_ml -lopencv_xphoto -lopencv_highgui -lopencv_videoio -lopencv_imgcodecs -lopencv_photo -lopencv_imgproc -lopencv_core
If I were to do this again, I would copy these from the terminal to a text editor and then limit it to having only one name each line and then cut from the document to eclipse.
If my understanding of their instructions and my interpretations of what they are trying to show with their pictures and text are correct, the above image should be correct. For fun I added OpenCV2 in the
This was kinda a pain in the keister (by keister, I mean carrying bag) to get to get what I got because of what appears to be outdated information. Trying to build all and then running it doesn't seem to work. I am not sure about much of this I am going to try to move to Code Block instead.
10/9/18