Ask Your Question
0

I have error "cannot open file opencv_videoio320.lib" when working on a project on video with opencv

asked 2017-06-30 05:39:52 -0600

First I have problem : unresolve external symbol, then i found a solution that i added opencv_videoio320d.lib in AdditionalDenpendencies (i thought it must be contained in opencv_world320d.lib cause theres no such lib like that in C:\opencv\build\x64\vc14\lib but i dont know somehow it can make the unresolve.. problem gone, i added opencv_world320d.lib) And now all the unresolved error is gone but it lead to the only problem left is "Error LNK1104 cannot open file opencv_videoio320d.lib" All i have done is : Additional Include Directories :Checked OK Additional Library Directories :Checked OK Additional Dependencies : opencv_world320.lib;opencv_world320d.lib;opencv_videoio320.lib;opencv_videoio320d.lib Please I am very new to opencv, i have try working with some image projects and they worked smoothly but when i come to video project i have this error

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-06-29 01:00:48 -0600

berak gravatar image

updated 2017-06-29 02:24:28 -0600

if you're using the prebuild packages, -- there is no opencv_videoio320.lib (and it is also not needed, since it is already contained in the world lib). please remove it from your "Additional Dependencies" list, so it stops looking for something, that does not exist.

also, please use opencv_world320d.lib ONLY in DEBUG mode, and opencv_world320.lib in RELEASE, NOT BOTH!!

edit flag offensive delete link more

Comments

@LBerger, what was the problem with this question again ? i lost the link, sorry.

berak gravatar imageberak ( 2017-06-29 02:13:15 -0600 )edit
1

I cannot find this question in the list of question answers.opencv.org/question. Do you use my link to answer or did you find it in the list of question ?

LBerger gravatar imageLBerger ( 2017-06-29 02:23:44 -0600 )edit

ah, i see, and yes, i used your link.

(it does not even show up after posting an answer, really weird. on the other hand - server hickups plenty in the last 24 hours ;()

berak gravatar imageberak ( 2017-06-29 02:25:19 -0600 )edit

Yeah, i think it must be contained in world library (mentioned in detail of the question). but the problem is when i remove videoio.lib 6 error like "LNK1104 unresolve external symbol public:_cdecl Capture::~Capture(void)...reference in function main" occur. How can i fix those problem ? pls im a beginner looking for help :))

Haveaniceday gravatar imageHaveaniceday ( 2017-06-29 03:14:13 -0600 )edit

:_Capture::~Capture(void)" -- hmmm, that does not look like library code. any chance, that this class is in your code, and that you simply forgot to add a cpp file (with the Capture code) to your project ?

berak gravatar imageberak ( 2017-06-29 03:22:31 -0600 )edit

I can make sure that all the cpp files needed is copied to project/project folder. Anything else that i may forgot?

Haveaniceday gravatar imageHaveaniceday ( 2017-06-29 03:41:36 -0600 )edit

ok, now we need the exact error msgs. (please add those to the question , not as a comment)

berak gravatar imageberak ( 2017-06-29 03:44:57 -0600 )edit
1

@Have_a_nice_day can you remove underscore in your name ? may there is a problem with askbot

LBerger gravatar imageLBerger ( 2017-06-29 13:05:12 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-06-28 11:32:09 -0600

Seen: 824 times

Last updated: Jun 30 '17