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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:11:01+00:00 2026-06-01T02:11:01+00:00

I am building an iOS, code scanner project using ZBar SDK . I am

  • 0

I am building an iOS, code scanner project using ZBar SDK. I am trying to build my project directly from the source of ZBar, rather than including the libzbar.a static library.

I have downloaded the ZBar source which includes the XCode project to build libzbar.a. I tried copying all source files from the project but it didn’t work. I keep on getting undefined symbol errors.

What source files should be included, considering that I need to support only iOS?

Should the folder structure be strictly followed to build the project?

Would there be any need of build settings if I direcly include the source files?

EDIT:
I followed the same folder structure and build settings used in the XCode project of libzbar. I have managed to build the library but it’s still failing while linking. I get the error: ld: duplicate symbol _OBJC_METACLASS for all the source files. I have double checked, there are no references to the original libzbar.a static library in the project or more than one occurrence of these source files. If I remove the references for them, the project builds fine, but then fails whenever any symbol from the library is referenced. I think I am still missing something!!

  • 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-01T02:11:03+00:00Added an answer on June 1, 2026 at 2:11 am

    I have solved this problem finally. Here are the steps that I did:

    1) Copied the source files of the project to my project.

    2) Removed the dependency of libzbar.a from my project.

    3) Added the path to the folder containing the source and headers to the Header Search Paths build setting of the project.

    4)Added the following user defined build setting to the project:

    EXCLUDE_SOURCE_FILE_NAMES
    GCC_MODEL_TUNING
    PREBINDING and
    USE_HEADERMAP

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

Sidebar

Related Questions

I am using Xcode 4.2 and building a game for iphone (from iOS 3.0
I am building an iOS app using Appcelerator and the build in Facebook API
I'm trying to build iOS app using Microsoft EWS managed API. I've downloaded the
I have created a xcode project using unity3d tool, while building the project for
Possible Duplicate: Stable way to embed open-source code into static library in iOS? I
I'm building an iOS application which fetches all of it's data from an online
When building a custom frame/view in iOS code, how do you set its rotation
I'm building a static library for use in an iOS project, and I want
I'm building a view in my iOS app with Xcode. I'm using the interfice
I'm building an application that has a media player in it (I'm using iOS

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.