Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8594701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:15:32+00:00 2026-06-12T00:15:32+00:00

I downloaded the latest OpenCV-2.4.2.exe and unpacked it. Then I opened a project in

  • 0

I downloaded the latest OpenCV-2.4.2.exe and unpacked it. Then I opened a project in visual studio 2010 and pointed it to the include and lib folders that it needs to build.

In my case, the lib folder is in \opencv\build\x64\vc10\lib which is different than the instructions online. This folder seems to contain a compiled version of everything. However, when I build my project, I get

LINK : fatal error LNK1104: cannot open file ‘cv.lib’

cv.lib is nowhere to be found.

Is there something else that needs to be compiled?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T00:15:33+00:00Added an answer on June 12, 2026 at 12:15 am

    Well, I solved the issue.

    In stdafx.h I had to comment out:

    //#pragma comment(lib, "cv")
    //#pragma comment(lib, "cxcore")
    //#pragma comment(lib, "highgui")
    

    which were trying to load cv.lib, etc. My guess is this was correct for previous openCV version but isn’t valid for 2.4.2. Then I had to add

    D:\opencv\build\x86\vc10\lib\opencv_core242d.lib;D:\opencv\build\x86\vc10 
    \lib\opencv_imgproc242d.lib;D:\opencv\build\x86\vc10\lib\opencv_highgui242d.lib; 
    D:\opencv \build\x86\vc10\lib\opencv_objdetect242d.lib;
    

    to my project in the Linker->Input->Additional dependencies part.

    I tried the staticlib folder and x64 but this is what worked for me on Windows 7 64-bit.

    Hope this helps someone else (I’ve seen similar issues other people had).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Computer: Windows 7 x64 bit, Visual Studio 2008 Downloaded the latest OpenCV build (2.3.3)
I've downloaded the latest Netbeans, 6.8 to be precise, then I got the download
I recently downloaded the latest NetBeans IDE (for MACOSX) and imported/migrated a project over
I've downloaded latest source from mono project, compiled it and everything works (c# projects,
I downloaded the latest Aptana studio on Ubuntu 12.04 and it does not start.
I downloaded latest HoloEveryWhere Then Import from existing code --> library folder --> Properties
i have just downloaded the latest win32 jpegtran.exe from http://jpegclub.org/jpegtran/ and observed the following:
I downloaded the latest Mono.Cecil and now whenever I start up my project it
I'm on OS X 10.7.1. I've downloaded the latest JavaCV binaries, and built OpenCV
Downloaded latest eclipse for Java EE Opened... error .. opening...JRE/JDK must be available for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.