Comments (4)
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.
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:
- Removed 'libzbar.a' from my project.
- 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.
- 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.
- 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.
- 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.
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.
I did not try building with the make file.
from monotouch.zbar.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monotouch.zbar.