Ask Your Question
0

Visual Studio and libraries

asked 2020-05-25 10:07:51 -0500

NaBUru38 gravatar image

updated 2020-05-25 10:58:49 -0500

supra56 gravatar image

Hello, I'm trying to run OpenCV on Visual Studio 2019, so I followed this

However, when I add the full list of .LIB libraries and try to build, I get an error LNK1181 - cannot open input file 'opencv_calib3d300d.lib.

If I understand this correctly, the libraries should be located at $(OPENCV_DIR)\lib. However, at that folder I only see opencv_world430.lib and opencv_world430.lib, and I assume that the latter is debug.

Is that tutorial obsolete, and therefore I should just use these two libraries? Or am I missing something? Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-05-25 10:17:31 -0500

berak gravatar image

updated 2020-05-25 10:18:48 -0500

the prebuild winpack comes with an "all-in-one" opencv_world.lib, which contains all other libs from the opencv main repo.

delete the old opencv_xxx300.lib entries from your linker settings, and use opencv_world430.lib there instead.

edit flag offensive delete link more

Comments

Great, thank you!

NaBUru38 gravatar imageNaBUru38 ( 2020-05-25 16:01:30 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-05-25 10:07:24 -0500

Seen: 87 times

Last updated: May 25