Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Naming OpenCV target DLLs, when building from source on Windows

Regards.

I am working with OpenCV on Windows.

Recently, I built OpenCV 2.4 (I used CMake 3.4.2). I only need the core, imgproc and highgui modules, so I built just those modules.

I have noticed that the names of the resulting DLLs are style "libopencv_core2410d.dll"... that is, with the version number included.

Therefore, to link these DLLs in my project file (Qt PRO file) I have lines like this:

-L<my_opencv_install_dir> -lopencv_core2410d \ -lopencv_imgproc2410d \ -lopencv_highgui2410d

In contrast, I would rather have a line like this:

-L<my_opencv_install_dir> -lopencv_core \ -lopencv_imgproc \ -lopencv_highgui

My doubts are:

I can configure the building process so that the resulting OpenCV DLLs do not include the version number in the name?,

How can I do that?,

Is it advisable to do what I want?

Thank you in advance for any help, suggestions and/or comments

Naming OpenCV target DLLs, when building from source on Windows

Regards.

I am working with OpenCV on Windows.

Recently, I built OpenCV 2.4 (I used CMake 3.4.2). I only need the core, imgproc and highgui modules, so I built just those modules.

I have noticed that the names of the resulting DLLs are style "libopencv_core2410d.dll"... that is, with the version number included.

Therefore, to link these DLLs in my project file (Qt PRO file) I have lines like this:

-L<my_opencv_install_dir> -lopencv_core2410d \ -lopencv_imgproc2410d \ -lopencv_highgui2410d

In contrast, I would rather have a line like this:

-L<my_opencv_install_dir> -lopencv_core \ -lopencv_imgproc \ -lopencv_highgui

My doubts are:

I can configure the building process so that the resulting OpenCV DLLs do not include the version number in the name?,

How can I do that?,

Is it advisable to do what I want?

Thank you in advance for any help, suggestions and/or comments