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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:18:05+00:00 2026-06-06T03:18:05+00:00

(I am new at pretty much everything that I will discuss here… apologies if

  • 0

(I am new at pretty much everything that I will discuss here… apologies if the question is very basic) – I used Xcode to write some C++ code using OpenCV (dynamic libraries). The algorithm runs smoothly and I created an executable file that also works. However, it only works in my computer.

I understand that I need to use static libraries instead of dynamic libraries. I have done some research and found how to do this here: http://www.shiffman.net/2011/01/23/how-to-build-opencv-static-libraries-mac-os-x/ and here: http://www.randomsequence.com/articles/opencv-snow-leopard/.

I have followed the steps and, although I had to make a couple of changes, I was able to build “.a” files such as “libopencv_highgui.a”.

My code, however, doesn’t work anymore when I replace the libraries. I get 200+ errors. This is one of them:

Undefined symbols for architecture x86_64:
“_gzputs”, referenced from:
__ZL7icvPutsP13CvFileStoragePKc in libopencv_core.a(persistence.o)

I have searched for this question here but this is the closest I could find: Linking OpenCV libraries in Xcode (not exactly the same question).

Thanks everyone!

  • 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-06T03:18:07+00:00Added an answer on June 6, 2026 at 3:18 am

    You need .a files from $OPENCV_BUILD_PATH/3rdparty/lib/.

    The _gzputs from your question belongs to libzlib.a


    To link with OpenCV static libraries you also need to add all OpenCV’s dependencies to you application. The most of these dependencies comes from the opencv_highui module and the list of dependencies is dependent from your build configuration so I can’t tell you the full list. But you can find it yourself: open the CMakeCache.txt from your OpenCV build directory with any text editor and search for opencv_highgui_LIB_DEPENDS line. You need all items from that line except the word general.

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

Sidebar

Related Questions

I am pretty much new in this. I know Remoting, HTTPService and WebService. I
I am pretty much new to using SQL Server 2000. I have been using
I am completely new to android, and pretty much a Java newb. I have
Please allow me to preface this by saying I'm pretty much brand new to
I have been trying pretty much everything to get my live wallpaper to stop
I'm making a game right now and pretty much everything has its own class.
Using reflection you can get pretty much everything relating to a class. You can
I'm building this client for a web service. Pretty much everything makes requests to
So I have a location search field that I want to accept pretty much
Im pretty new to Java Web Services, but I cant find a good explanation

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.