- 浏览: 44818 次
- 性别:
- 来自: 上海
最新评论
-
chengt:
http://jareye.com/
推荐一个下载jar包的网站-----jareye.com -
chengt:
http://jareye.com/
推荐一个下载jar包的网站-----jareye.com
ZXing for iOS is a sub-project of zxing project partially maintained by
independent developers. As of 26th of March 2011, it contains 3 iOS projects:
- BarCodes: Zxing iOS app. Available on app store.
- ZXingWidget: a Library that can be included in any iOS app
- ScanTest: a simple demo app for ZXingWidget
How to include ZXingWidget in a easy and clean way (in XCode4):
====================================================
1. Locate the "ZXingWidget.xcodeproj" file under "`zxing/iphone/ZXingWidget/`".
Drag ZXingWidget.xcodeproj and drop it onto the root of your Xcode project's "Groups and Files"
sidebar. A dialog will appear -- make sure "Copy items" is unchecked and "Reference Type" is "Relative to Project"
before clicking "Add". Alternatively you can right-click on you project navigator and select 'Add files to "MyProject"'
2. Now you need to link the ZXingWidget static library to your project. To do that,
a. select you project file in the project navigator
b. In the second column, select your _target_ and not the project itself
c. Go to the 'build phases' tab, expand the 'link binary with libraries' section,
d. Click the add button A dialog will appear and you should see libZXingWidget.a in the very first
possibilities
3. Now you need to add ZXingWidget as a dependency of your project, so Xcode compiles it whenever
you compile your project.
a. like in substep c. of previous step, you nedd to do that in the 'build phases' tab of your target
b. Expand the 'Target Dependencies' section
c. Click the add Button and a dialog will appear select ZXingWidget target
4. Headers search path 1: you need to tell your project where to find the ZXingWidget headers.
Select your project in the project navigator, and the select your target and go to the "Build Settings" tab.
Look for "Header Search Paths" and double-click it.
Add the relative path from your project's directory to the "zxing/iphone/ZXingWidget/Classes" directory. Make sure you click the checkbox "recursive path" !
5. Headers search path 2: You need to add zxing cpp headers to your headers search path,
do this similarly as previous step to point the path to cpp/core/src/ where the 'zxing' directory is.
You don't need to make this search path recursive so do not check the "recursive path" option
6. Import the following iOS frameworks:
a. AVFoundation
b. AudioToolbox
c. CoreVideo
d. CoreMedia
e. libiconv
f. AddressBook
g. AddressBookUI
This must be done by adding them in the 'Link Libraries with Binary' just like step 2.c.
7. You're almost ready to go ..
8. #import <ZXingWidgetController.h> in a source file
9. #import <QRCodeReader.h> for example because you will need to inject a barcode reader into ZXingWidgetController.
10. MAKE SURE the file in which you are using the code deader is a .mm because you are now silently including some c++ code. If you don't do so then
the compiler may cry as if it does not find some files !
11. It should work
Known issues for above steps to include:
======================================
- It can happen that when trying to build your own project with ZXingWidgetController you get linker errors like
"undefined reference to". If this error looks like a c++ undefined reference, then renaming main.m into main.mm (Objective-C++ source suffix)
may fix the problem
- If you have building error like " ... : No such file or directory", then it is a classical error, it means that the path to includes is not well
specified. The best way to fix this is to look at the Build Command that failed. To do that, click on the lower right corner of your Xcode project,
you should see the build command that failed. Click on it and expand it by clicking on the "more" symbols that just appeared. This will make appear
the exact command line instruction that is ran and fails. You can then make sure that the Header search path you specified is there, and you can also
copy/paste this line into your terminal and try to see if you can reproduce/fix the error by adding the right path to the compiler. Once is is fixed,
you should have an idea of what's the problem and accordingly modify your Header Search Path.
- You could have issue of building AdHoc or release build in Xc4 with "No Packager exists for the type of archive" message - see http://stackoverflow.com/questions/5271496/xcode4-ios-4-3-no-packager-exists-for-the-type-of-archive/5322743#5322743
中文说明(针对XCode 4)
1 在"`zxing/iphone/ZXingWidget/`"目录找到"ZXingWidget.xcodeproj" 文件拖到你的项目中,并且不用选择"Copy items"这个选项.选择"Reference Type"为"Relative to Project",然后点击"Add"
2.点击项目中ZXingWidget.xcodeproj的左三角,出现两个文件,其中一个是"libZXingWidget.a",单击它然后在右边的详细查看框里把它的"targget"的选择勾上
3.在"Groups & Files"里有一个"Targets"的东东,点击左边的三角然后选择下面的第一个项目,右键选择"Get Info".在打开的框里选择"General" tab, 添加"Direct Dependencies",点击"+"然后选择"ZXingWidget"->"Add target",把对话框关掉
4.在"Groups&Files"里选择最最上面的一项,然后右键->"Get Info"->"Build" tab
搜索"Header search path",然后在双击它,添加两个完整路径
(1)你的本地路径+"zxing/iphone/ZXingWidget/Classes",记得选择"recursive path"
e.g.我的完整路径是"/Users/easyin/ZXing/iphone/ZXingWidget/Classes"
(2)你的本地路径+"cpp/core/src/",记得不要选择"recursive path"
e.g.我的完整路径是"/Users/easyin/ZXing/cpp/core/src/"
后面跟六步一样就可以了,这个贴子主要是给自己备忘,写得非常不好,路过的高手不要喷,因为我也看不到
以上英语内容为官方文档内容,中文为自己打,如有雷同,说明哥们两英雄所见略同
independent developers. As of 26th of March 2011, it contains 3 iOS projects:
- BarCodes: Zxing iOS app. Available on app store.
- ZXingWidget: a Library that can be included in any iOS app
- ScanTest: a simple demo app for ZXingWidget
How to include ZXingWidget in a easy and clean way (in XCode4):
====================================================
1. Locate the "ZXingWidget.xcodeproj" file under "`zxing/iphone/ZXingWidget/`".
Drag ZXingWidget.xcodeproj and drop it onto the root of your Xcode project's "Groups and Files"
sidebar. A dialog will appear -- make sure "Copy items" is unchecked and "Reference Type" is "Relative to Project"
before clicking "Add". Alternatively you can right-click on you project navigator and select 'Add files to "MyProject"'
2. Now you need to link the ZXingWidget static library to your project. To do that,
a. select you project file in the project navigator
b. In the second column, select your _target_ and not the project itself
c. Go to the 'build phases' tab, expand the 'link binary with libraries' section,
d. Click the add button A dialog will appear and you should see libZXingWidget.a in the very first
possibilities
3. Now you need to add ZXingWidget as a dependency of your project, so Xcode compiles it whenever
you compile your project.
a. like in substep c. of previous step, you nedd to do that in the 'build phases' tab of your target
b. Expand the 'Target Dependencies' section
c. Click the add Button and a dialog will appear select ZXingWidget target
4. Headers search path 1: you need to tell your project where to find the ZXingWidget headers.
Select your project in the project navigator, and the select your target and go to the "Build Settings" tab.
Look for "Header Search Paths" and double-click it.
Add the relative path from your project's directory to the "zxing/iphone/ZXingWidget/Classes" directory. Make sure you click the checkbox "recursive path" !
5. Headers search path 2: You need to add zxing cpp headers to your headers search path,
do this similarly as previous step to point the path to cpp/core/src/ where the 'zxing' directory is.
You don't need to make this search path recursive so do not check the "recursive path" option
6. Import the following iOS frameworks:
a. AVFoundation
b. AudioToolbox
c. CoreVideo
d. CoreMedia
e. libiconv
f. AddressBook
g. AddressBookUI
This must be done by adding them in the 'Link Libraries with Binary' just like step 2.c.
7. You're almost ready to go ..
8. #import <ZXingWidgetController.h> in a source file
9. #import <QRCodeReader.h> for example because you will need to inject a barcode reader into ZXingWidgetController.
10. MAKE SURE the file in which you are using the code deader is a .mm because you are now silently including some c++ code. If you don't do so then
the compiler may cry as if it does not find some files !
11. It should work
Known issues for above steps to include:
======================================
- It can happen that when trying to build your own project with ZXingWidgetController you get linker errors like
"undefined reference to". If this error looks like a c++ undefined reference, then renaming main.m into main.mm (Objective-C++ source suffix)
may fix the problem
- If you have building error like " ... : No such file or directory", then it is a classical error, it means that the path to includes is not well
specified. The best way to fix this is to look at the Build Command that failed. To do that, click on the lower right corner of your Xcode project,
you should see the build command that failed. Click on it and expand it by clicking on the "more" symbols that just appeared. This will make appear
the exact command line instruction that is ran and fails. You can then make sure that the Header search path you specified is there, and you can also
copy/paste this line into your terminal and try to see if you can reproduce/fix the error by adding the right path to the compiler. Once is is fixed,
you should have an idea of what's the problem and accordingly modify your Header Search Path.
- You could have issue of building AdHoc or release build in Xc4 with "No Packager exists for the type of archive" message - see http://stackoverflow.com/questions/5271496/xcode4-ios-4-3-no-packager-exists-for-the-type-of-archive/5322743#5322743
中文说明(针对XCode 4)
1 在"`zxing/iphone/ZXingWidget/`"目录找到"ZXingWidget.xcodeproj" 文件拖到你的项目中,并且不用选择"Copy items"这个选项.选择"Reference Type"为"Relative to Project",然后点击"Add"
2.点击项目中ZXingWidget.xcodeproj的左三角,出现两个文件,其中一个是"libZXingWidget.a",单击它然后在右边的详细查看框里把它的"targget"的选择勾上
3.在"Groups & Files"里有一个"Targets"的东东,点击左边的三角然后选择下面的第一个项目,右键选择"Get Info".在打开的框里选择"General" tab, 添加"Direct Dependencies",点击"+"然后选择"ZXingWidget"->"Add target",把对话框关掉
4.在"Groups&Files"里选择最最上面的一项,然后右键->"Get Info"->"Build" tab
搜索"Header search path",然后在双击它,添加两个完整路径
(1)你的本地路径+"zxing/iphone/ZXingWidget/Classes",记得选择"recursive path"
e.g.我的完整路径是"/Users/easyin/ZXing/iphone/ZXingWidget/Classes"
(2)你的本地路径+"cpp/core/src/",记得不要选择"recursive path"
e.g.我的完整路径是"/Users/easyin/ZXing/cpp/core/src/"
后面跟六步一样就可以了,这个贴子主要是给自己备忘,写得非常不好,路过的高手不要喷,因为我也看不到
以上英语内容为官方文档内容,中文为自己打,如有雷同,说明哥们两英雄所见略同
发表评论
-
iOS开发中如何解决TableView中图片延时加载
2012-06-01 13:44 1641IOS开发中如何解决TableView中图片延时加载是本文要介 ... -
让模拟器也支持GPS定位(模拟实现)
2012-06-01 13:36 2140iOS上的GPS定位一般需要真机才能看到效果,但在开发的过程中 ... -
判断UITextField的输入只为数字的方法
2012-06-01 13:35 1134实现下面的委托 #define NUMBERS @" ... -
反向地理编码用法
2012-06-01 13:33 1139与地图打交道时,有时需要查找经纬度获取地理信息,MapKit提 ... -
关于出现僵尸信号SIGBAT或者EXC_BAD_ACCESS的解决方案
2012-06-01 13:31 675随着用xcode开发的深入,相信很多同学都对出现SIGBAT或 ... -
iOS 应用的 UI 开发资源
2012-05-28 23:27 954中文 http://blog.csdn.net/column ... -
汉字转拼音
2012-05-20 19:47 1327// // ChineseToPinyin.h // ... -
修改图标上的提示符(badge)
2012-05-20 19:35 975程序推送,或者AppStore软件有更新都会有提示,那代码怎么 ... -
Info.plist中常用的key简介
2012-05-20 19:10 927UIRequiresPersistentWiFi 在程序中弹出 ... -
返回 父级 的父级 view
2012-05-09 14:48 907[color=blue]有3个view A,B,C A是第一级 ... -
如何获取view的controller
2012-05-09 14:45 1494[b]如何获取view的controller[/b] ... -
xcode4 svn+ssh
2012-05-04 22:18 11251. Clear the contents of your ~ ... -
多线程的使用与注意事项
2012-03-17 11:20 1268多线程的使用与注意事项 这一回,主要介绍一下iPhone ... -
在程序中使用GPS定位
2012-03-17 10:28 859这一回简单地介绍一下G ... -
开源ZXing在XCode上如何使用
2012-03-17 10:18 9771.在 zxing/iphone/ZXingWidget/里的 ... -
iphone 二维码 使用说明
2012-03-17 10:16 1106转自:http://blog.csdn.net/linkai5 ... -
iphone开发随笔,有用的
2012-03-14 20:52 7461.将view设置成圆角 首先导入QuartzCore.fra ... -
iphone开发中发送短信
2012-03-14 20:46 1329iOS4.0新加入了MFMessageComposeViewC ... -
iphone中设置控件语言
2012-03-14 20:40 878最近项目遇到这样一个问题: 发送短信时,发现控件显示的是英 ... -
SVN+SSH
2012-03-10 20:00 1116Setup SSH access Go to the cPan ...
相关推荐
zxing/zxing-j2se-1.7.jar包, ...com.google.zxing.StringsResourceTranslator.class com.google.zxing.client.j2se.BufferedImageLuminanceSource.class com.google.zxing.client.j2se.CommandLineRunner.class ...
com.google.zxing.qrcode.QRCodeReader.class com.google.zxing.qrcode.QRCodeWriter.class com.google.zxing.qrcode.decoder.BitMatrixParser.class com.google.zxing.qrcode.decoder.DataBlock.class ...
它支持多种条码格式,如QR码、Aztec、Code 128、EAN等,广泛应用于移动设备和桌面应用的条码处理。 在C#环境中,ZXing.Net提供了简单易用的API,开发者可以通过调用几行代码实现条码扫描功能。这个特定的版本0.16....
using ZXing.Common; var writer = new BarcodeWriter { Format = BarcodeFormat.QR_CODE, Options = new EncodingOptions { Width = 300, Height = 300 } // 设置尺寸 }; ``` 3. 生成二维码图像:然后,你可以...
在Unity引擎中,ZXing.Net被封装成`zxing.unity.dll`这样的插件,允许开发者在游戏或应用中轻松地集成二维码的读取和生成功能。下面我们将深入探讨如何在Unity中使用ZXing.Net以及它的工作原理。 首先,我们需要...
ZXing.Net是一个开源的.NET实现,它提供了二维码和条形码读取与生成的...通过理解和熟练运用ZXing.dll和zxing.presentation.dll,开发者可以快速构建具有条码识别和生成功能的应用,从而提高工作效率并增强用户体验。
ZXing.Net is a port of ZXing, an open-source, multi-format 1D/2D barcode image processing library originally implemented in Java. It has been ported by hand with a lot of optimizations and ...
ZXing.Net库不仅支持读取,还允许开发者创建各种类型的条码,如QR码、Code 128、Code 39等,适用于多种.NET框架,包括Windows Phone 7.1、.NET Compact Framework 2.0和3.5、.NET Framework 2.0、4.0、4.5、4.6以及...
1. **二维码生成**:ZXing库允许开发者使用Java代码生成二维码,通过`com.google.zxing.client.j2se.MatrixToImageWriter`类将数据矩阵转换为图像,进而可以保存或显示二维码。生成二维码的基本步骤包括选择编码格式...
1. 引入库:将提供的`zxing.jar`文件添加到项目的`libs`目录下,然后在项目的构建配置中将其作为库引用。 2. 创建扫描界面:根据Zxing提供的`CaptureActivity`,开发者可以自定义扫描界面,设置扫描区域、启动扫描...
com.google.zxing.client.j2se.BufferedImageLuminanceSource和com.google.zxing.client.j2se.MatrixToImageWriter,亲测可用
1. **解码能力**:ZXing.Net支持多种一维和二维条码格式,包括但不限于QR Code、Data Matrix、EAN-13、UPC-A、Code 128、Aztec、PDF417等。它能解析不同格式的条码图像,无论是从摄像头捕获的实时图像还是已保存的...
二维码扫描开源项目Zxing-core代码jar包,版本是:3.4.1。核心包为core-3.4.1-SNAPSHOT.jar,还包含了core-3.4.1-SNAPSHOT_proguard_base.jar,core-3.4.1-SNAPSHOT-javadoc.jar,core-3.4.1-SNAPSHOT-sources.jar
1. **条码解码**:ZXing支持多种条码格式,如QR码、Data Matrix、Aztec、UPC-A、EAN-8/13、Code 39、Code 93、Code 128、ITF、PDF417等。这些条码在零售、物流、电子票务等领域广泛应用。 2. **图像处理**:ZXing...
它支持多种条码格式,如Code 39、Code 128、QR Code、Data Matrix等,以及一维和二维条码的读取。这两个JAR文件是ZXing的核心组件,用于处理二维码的编码和解码过程。 在Eclipse中使用ZXing生成二维码,你需要首先...
- **条码和二维码读取**:支持多种条码格式,如Code 128、QR Code、EAN、UPC等,通过相机或其他图像源进行实时扫描。 - **条码和二维码生成**:允许开发者创建各种条码和二维码图像,可以自定义样式和输出格式。 -...
zxing.dll条形码 二维码生成、识别。自己开发项目时只需要引用这个dll,所以将此dll单独放出提供下载,供大家使用。