undefined reference to

Appears when make under Ubuntu systemundefined reference to 'cv::VideoCapture::VideoCapture(cv::String const&)'等错误...如下图:

 I have checked that the Opencv of the system is installed, and the libraries lib and inc to be linked are also written in the makefile, but this error has been reported all the time.

The main content of my makefile is as follows:

I checked the reasons for the "undefined reference to" on the Internet, which are probably as follows:

1.

2.

3.

I think my environment variables are also written, in another file Ld_path, the content is as follows:

It is probably to declare some lib library files in LD_LIBRARY_PATH, which is here, must be source after the declaration! ! ! That is, executing in the current Ld_path path: source ./Ld_path will be valid only after the environment variable source declared.

 

In addition: After solving the above problem, there is a warning: Gtk-WARNING **: Locale not supported by C library

The solution is as follows: You can add the following code to the above Ld_path:

After that, the warning is gone, and it's done.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324652398&siteId=291194637