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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:00:35+00:00 2026-05-29T05:00:35+00:00

Preface . I wrote a small application in C that plays a video file

  • 0

Preface.
I wrote a small application in C that plays a video file with OpenCV library.
My Development machine is Ubuntu 10.04, but the customer’s OS is OpenSuse 12.1
I’ve built OpenCV 2.1 by using cmake-gui and ensured that all required libraries were present (like described here http://www.shiffman.net/2011/01/23/how-to-build-opencv-static-libraries-mac-os-x/)
I’ve build my application with cmake-gui too (as described here http://opencv.willowgarage.com/wiki/Getting_started)

Problem.
It works fine on my computer. However, on the customer’s machine I get “error loading shared libraries…”. When I run “ldd video_player”, it cannot find libavformat.so.52, libavcodec.so.52 and libstdc++.so.6. Is there a way to include these libraries with the player so that everything works out of the box?

Epilogue. I’m guessing there is a simple solution for that. However, having a strong background in Java and PHP, I’m a total newbie in C and the deadline is approaching quite fast. I tried to accomplish this task using ffmpeg, but it gave a lot of nightmares, so I just stick to OpenCV to make it work asap.

Thanks in advance!

  • 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-29T05:00:36+00:00Added an answer on May 29, 2026 at 5:00 am

    Assuming it’s typical:

    LDFLAGS=-static buildcommand
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Preface: I'm developing an application that quizzes users on multiple topics. I wish to
Preface: I'm a big fan of Netbeans for Rails development. I'm just starting my
Preface: I am sure this is incredibly simple, but I have searched this site
To preface I am new to web development. I am looking at creating a
A quick preface, I'm very comfortable in .Net, but have limited experience in c++,
Preface I have three tables Customers, Individuals & Companies and a customer can be
Preface Let me start off by saying that I'm a relatively new programmer and
I'll preface this with the fact that NHibernate is well out of my comfort
Before I begin, I must preface by stating that I am a novice when
Preface We are providing customers with our service API. Each customer has own subdomain

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.