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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:25:11+00:00 2026-05-15T14:25:11+00:00

What packages do I need to install OpenCV on Ubuntu lucid 10.04 ? Do

  • 0

What packages do I need to install OpenCV on Ubuntu lucid 10.04 ?
Do I need to do anything else to be able to compile a simple C example
like setting an env variable or changing the path?

Is gcc a good compiler for OpenCV?

The example I’m trying to compile:

int main( int argc, char** argv ) {
IplImage* img = cvLoadImage( argv[1] );
cvNamedWindow( “Example1”, CV_WINDOW_AUTOSIZE );
cvShowImage( “Example1”, img );
cvWaitKey(0);
cvReleaseImage( &img );
cvDestroyWindow( “Example1” );

}

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-15T14:25:12+00:00Added an answer on May 15, 2026 at 2:25 pm

    There is an opencv library package libcv4 and development files libcv-dev that should work.

    Could also try installing from PPA to get very latest version 2.1 http://opencv.willowgarage.com/wiki/Ubuntu_Packages

    The OpenCV documentation suggests using g++ to compile, see “Building your own code that uses OpenCV” http://opencv.willowgarage.com/wiki/InstallGuide

    For example,

    g++ -o my_example my_example.cpp -I<opencv_source_dir>/include[/opencv] \
            -L<cmake_binary_dir>/lib -lcxcore -lcv -lcvaux -lhighgui -lml
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Do I need to install packages needed to compile executable for the server on
I need information about making installation packages for Linux. I want to make simple
When creating a virtual environment with no -site packages do I need to install
On my linux (Ubuntu 11.04) development machine. I often need to install libraries from
I need to install a python module in the site packages that also will
I need to install amp on a windows2003 production server. I'd like, if possible,
What packages do i need to install in order to use a Makefile. I've
Suppose I need to install a number of packages on a (Linux) machine that
Im attempting to install the Mail_Mbox-0.6.3 package as i need to use the classes
In chef I need to do easy_install -U package. easy_install_package distribute do action :install

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.