Ask Your Question
1

error LNK1104: cannot open file 'opencv_ts300.obj'

asked 2015-11-28 04:35:20 -0600

Gangaram gravatar image

Please help me to come out of this project. I followed many online solutions but i couldnt come out of this error.

I have added D:\opencv\opencv\build\include;D:\opencv\opencv\build\include\opencv;D:\opencv\opencv\build\include\opencv2;%(AdditionalIncludeDirectories) this many files in c/c++-->general->additional include directories, In Linker->additional library directories->D:\opencv\opencv\build\x86\vc12\lib;D:\opencv\opencv\build\x86\vc11\lib;D:\opencv\opencv\build\x86\vc12\staticlib;D:\opencv\opencv\build\x86\vc11\staticlib, In Linker->input->additional dependencies->opencv_ts300;opencv_ts300d;opencv_world300;opencv_world300d;opencv_calib3d300;opencv_calib3d300d;opencv_core300;opencv_core300d;opencv_features2d300;opencv_features2d300d;opencv_flann300;opencv_flann300d;opencv_hal300;opencv_hal300d;opencv_highgui300;opencv_highgui300d;opencv_imgcodecs300;opencv_imgcodecs300d;opencv_imgproc300;opencv_imgproc300d;opencv_ml300;opencv_ml300d;opencv_objdetect300;opencv_objdetect300d;opencv_photo300;opencv_photo300d;opencv_shape300;opencv_shape300d;opencv_stitching300;opencv_stitching300d;opencv_superres300;opencv_superres300d;opencv_video300;opencv_video300d;opencv_videoio300;opencv_videoio300d;opencv_videostab300;opencv_videostab300d;%(AdditionalDependencies)

I thinks i have added all the required files but even though i am unable to solve the problem. Is there anyone who can help me to come out of this problem.

edit retag flag offensive close merge delete

Comments

thanks for answer but further i am facing a problem Error 1 error LNK1168: cannot open D:\c_practice\Image_processing_Demo\x64\Debug\Image_processing_Demo.exe for writing D:\c_practice\Image_processing_Demo\Image_processing_Demo\LINK Image_processing_Demo

how can i proceed? please help me

Gangaram gravatar imageGangaram ( 2015-11-28 05:39:12 -0600 )edit

your exe is probably still running. kill it from the task manager

berak gravatar imageberak ( 2015-11-28 06:15:42 -0600 )edit

thanks. Even after killing process from task manager the process is still running. Even i am unable to see the output on window. Here is my program

#include <highgui.h>
#include <iostream>

int main( int argc, char** argv ) 
{
    IplImage* img = cvLoadImage( "C:\\User\\Gangaram\\Desktop\\desk1.jpg" );
    cvNamedWindow("Example1", CV_WINDOW_AUTOSIZE );
    cvShowImage( "Example1", img );
    cvWaitKey(0);

    cvReleaseImage( &img );
    cvDestroyWindow( "Example1" );
}

what can i change. My visual studio gets hanged when i click on local windows debugger icon. How can i proceed.

Gangaram gravatar imageGangaram ( 2015-11-28 08:03:52 -0600 )edit

How to solve this problem there are two conditions 1.when i choose x64 debugger mode and start debugging then visual studio says A 64-bit operation is taking longer time than expected and search for online solution 2. when i choose x86 debugger (wIN32) debugger mode then my visual studio 2012 gets hanged

Any one can help me to come out of this problem please.

Gangaram gravatar imageGangaram ( 2015-11-28 08:31:50 -0600 )edit

The C-api is deprecated and no longer supported in OpenCV 3.0. Start by changing your code to C++

LorenaGdL gravatar imageLorenaGdL ( 2015-11-29 05:59:25 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-11-28 05:08:02 -0600

berak gravatar image
  • the ts lib is only required for unit tests, not for 'normal' programs
  • please link to either debug or release version, not both
  • decide, if you want to use opencv_world300.lib, in that case you do not need any other libs.
  • you have to add: 'some.lib' in your settings, not just 'some'
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-11-28 04:35:20 -0600

Seen: 2,005 times

Last updated: Nov 28 '15