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 6740665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:37:58+00:00 2026-05-26T11:37:58+00:00

i am trying to use opencv library with code blocks(8.02).i have installed opencv2.1. when

  • 0

i am trying to use opencv library with code blocks(8.02).i have installed opencv2.1.
when i include the headers and link the library its all fine.i have gone through http://opencv.willowgarage.com/wiki/CodeBlocks tutorial as well.but when i compile the project
it reports no error or warning.it just says exit with status 1.

i want to know if anyone who has used opencv with code blocks and can please help me out of this situation.

thanks!!!

  • 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-05-26T11:37:59+00:00Added an answer on May 26, 2026 at 11:37 am

    I had this exact same problem a couple of weeks ago and couldn’t find an answer anywhere !
    After messing around with it, I found out exactly how to do it.

    1) Compile the library using Cmake. http://www.cmake.org/

    2) After your library is compiled you should have two different OpenCV libraries – a compiled one, and a non-compiled one.

    3)In Code Blocks, click on Settings (In the File Menu). Under Settings, select Compiler and Debugger.

    4)Select the Search Directories tab.Select the compiler tab under search directories. Click Add. Browse to your NON-COMPILED version of the library. In the non-compiled directory, select the include folder. Under the include folder, select OpenCV. Click OK

    5)In codeblocks, select the linker tab, which is under the Search Directories tab.. Click on add and this time browse to your COMPILED version of the library. In the compiled directory, select the lib folder and click OK.

    6) Go to the linker settings tab in codeblocks. Click Add. Browse to the COMPILED version of the library. In the compiled directory select lib. In the lib folder select all the libraries. Make sure to only select only the dynamic library files (.dylib extention)

    7) Codeblocks is setup!

    8) Run your project and it should work fine.

    Feel free to ask for more help if you are still having problems.

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

Sidebar

Related Questions

I'm trying to use OpenCV with Python and converting some C++ code. Anyway, if
I'm trying to link to a static library, libcovis.a. Everything looks fine but I
I'm trying to use OpenCV to open a camera. This works fine when I
I have been trying to do build and use OpenCV 2.3.0 on my Fedora15
I'm trying to use OpenCV in Visual C++ express edition 2008. I've installed OpenCV
I'm trying to use the OpenCA (libPKI) library in a C++ application. However, when
I'm trying to use the new OpenCV 2.0 API in MS Visual C++ 2008
I am trying use a Java Uploader in a ROR app (for its ease
I am trying to use opencsv library http://opencsv.sourceforge.net/ How to i import it so
I am trying to use OpenCV to match images like these: img2 http://img849.imageshack.us/img849/8177/clearz.jpg And

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.