How to embedd openCV Dll's in Executable

后端 未结 3 2140
误落风尘
误落风尘 2021-01-03 11:52

I wrote an image matching tool (console application, without gui or windows), using openCV. I want to port my EXE file to another computer but it asks for opencv dlls (open

3条回答
  •  渐次进展
    2021-01-03 12:23

    Go to the properties for the project you are building (right click on project in the solution explorer and seleck propeties). Now expand the Configuration properties->Linker option and under General, set the path to the statically linked libraries (i.e., with .lib extensions). Now select the Configuration properties->Linker->Input option and type in the names of all the libraries you want it to statically link to. Now rebuild the project and they should be linked in to the executable. It will warn you if the paths to the files are not correct.

提交回复
热议问题