Giter VIP home page Giter VIP logo

Comments (4)

tystol avatar tystol commented on July 21, 2024

Hmm, Im not familiar with that error message, but I havnt actually used or tested this since the move/rename from MonoDevelop/MonoTouch to Xamarin.iOS, could be due to some differences there.

However, 1 thing: The libzbar.a only needs to be supplied to compile ZBar.dll. It gets embedded within the dll within that process. So then your actual app projects just reference ZBar.dll like any pure .NET dll.

Sorry I cant be of more help, I havnt swapped my dev environment over to all the new Xamarin.iOS tools yet so cant test this either.

from monotouch.zbar.

eclipsed4utoo avatar eclipsed4utoo commented on July 21, 2024

I was able to fix this issue. Not really sure what I did to fix it, but here is what I changed, and it now works:

  1. Removed 'libzbar.a' from my project.
  2. The clone of the code did not include the 'libzbar.a' file, and when I added it the first time, Xamarin Studio didn't create the 'linkwith' sub file. So I included the file again and made sure the 'linkwith' file was present.
  3. The 'libzbar.a' file was taken from here. I used that because I am targeting armv7, so I needed the libzbar library that also targeted armv7.
  4. I added to the LinkWith code to include additional frameworks that were needed to build with the new 'libzbar.a'. The build issues were in my project, not MonoTouch.ZBar. But I had to add the LinkWith stuff to MonoTouch.ZBar for it to work.
  5. I also had to build in Release mode instead of Debug for MonoTouch.ZBar. Not sure why it wouldn't work when the DLL was build in Debug.

It seems that you include the 'linkwith' file in the repo, but Xamarin Studio didn't put the two together when I added the 'libzbar.a' file.

from monotouch.zbar.

tystol avatar tystol commented on July 21, 2024

Thanks for the detailed steps! Until I get a chance to test this myself, I'll just link this issue from the readme file for the benefits of others.

It does sound like some change in behaviour due to Xamarin Studio. MonoDevelop did use to handle it fine when dropping in the zbar lib into the project. Out of curiosity, did you try building via the makefile at all? Did that not work either?

from monotouch.zbar.

eclipsed4utoo avatar eclipsed4utoo commented on July 21, 2024

I did not try building with the make file.

from monotouch.zbar.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.