ZXing 1.6 iPhone 条形码构建错误

发布于 2024-11-24 16:02:33 字数 3914 浏览 2 评论 0原文

我已经下载了 ZXing 1.6 并尝试打开名为“Barcodes”的文件夹中的项目。

构建项目后,显示错误。问题是如何解决的? //================================================== =========================

<块引用> <块引用>

编译 LocalBlockBinarizer.cpp …in/Users/waltinmis/code/ZXing/zxingiphone/iphone/Barcodes/…/…/cpp/core/src/zxing/common

CompileC /Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Intermediates/ZXing.build/Debug-iphoneos/zxingcore.build/Objects-normal/armv7/LocalBlockBinarizer.o ../../cpp/core/src/zxing/common/LocalBlockBinarizer.cpp 正常armv7 c++ com.apple.compilers.gcc.4_2 cd /Users/waltonmis/code/ZXing/zxing_iphone/iphone/条形码 setenv LANG en_US.US-ASCII setenv PATH“/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin” /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -x c++ -arch armv7 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wnon-virtual -dtor -Weffc++ -Woverloaded-virtual -Wmissing-braces -Wswitch -Wunused-variable -Wshadow -Wfour-char-constants -Wnewline-eof -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -gdwarf-2 -fvisibility=hidden -mno-thumb -miphoneos-version-min=4.0 .1 -iquote /Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Intermediates/ZXing.build/Debug-iphoneos/zxingcore.build/zxingcore- generated-files.hmap -I/Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Intermediates/ZXing.build/Debug-iphoneos/zxingcore.build/zxingcore-own-target-headers.hmap -I/Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Intermediates/ZXing.build/Debug-iphoneos/zxingcore.build/zxingcore-all-target-headers.hmap -iquote /Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Intermediates/ZXing.build/Debug-iphoneos/zxingcore.build/zxingcore-project-headers.hmap -I/Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Products/Debug-iphoneos/include -I../../cpp/core/src -I../ZXingWidget/Classes -I/Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Intermediates/ZXing.build/Debug-iphoneos/zxingcore.build/DerivedSources/armv7 -I/Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Intermediates/ZXing.build/Debug-iphoneos/zxingcore.build/DerivedSources -F/Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Products/Debug-iphoneos -c /Users/waltonmis/code/ZXing/zxing_iphone/iphone/Barcodes/../../cpp /core/src/zxing/common/LocalBlockBinarizer.cpp -o /Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Intermediates/ZXing.build/Debug-iphoneos/zxingcore.build/Objects-normal/armv7/LocalBlockBinarizer.o

arm-apple-darwin10-gcc-4.2.1:/Users/waltonmis/code/ZXing/zxing_iphone/iphone/Barcodes/../../cpp/core/src/zxing/common/LocalBlockBinarizer.cpp:没有这样的文件或目录 arm-apple-darwin10-gcc-4.2.1:警告:最后一个输入文件后的“-x c++”无效 arm-apple-darwin10-gcc-4.2.1:没有输入文件

命令 /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 失败,退出代码为 1

//== =================================================== =============================

<块引用> <块引用>

PS:我的设备是 iPhone OS 4.0.1。

开发环境为Mac OS X 10.7。

iOS SDK 4.2。

http://www.sendspace.com/file/ludlvq <- ZXing 1.6

任何答案都值得赞赏。

I have downloaded ZXing 1.6 and am trying to open the project in the folder which names "Barcodes".

After building the project,it show error. How was the problem solved?
//==========================================================================

Compile LocalBlockBinarizer.cpp …in/Users/waltinmis/code/ZXing/zxingiphone/iphone/Barcodes/…/…/cpp/core/src/zxing/common

CompileC /Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Intermediates/ZXing.build/Debug-iphoneos/zxingcore.build/Objects-normal/armv7/LocalBlockBinarizer.o ../../cpp/core/src/zxing/common/LocalBlockBinarizer.cpp normal armv7 c++ com.apple.compilers.gcc.4_2
cd /Users/waltonmis/code/ZXing/zxing_iphone/iphone/Barcodes
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -x c++ -arch armv7 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wnon-virtual-dtor -Weffc++ -Woverloaded-virtual -Wmissing-braces -Wswitch -Wunused-variable -Wshadow -Wfour-char-constants -Wnewline-eof -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -gdwarf-2 -fvisibility=hidden -mno-thumb -miphoneos-version-min=4.0.1 -iquote /Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Intermediates/ZXing.build/Debug-iphoneos/zxingcore.build/zxingcore-generated-files.hmap -I/Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Intermediates/ZXing.build/Debug-iphoneos/zxingcore.build/zxingcore-own-target-headers.hmap -I/Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Intermediates/ZXing.build/Debug-iphoneos/zxingcore.build/zxingcore-all-target-headers.hmap -iquote /Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Intermediates/ZXing.build/Debug-iphoneos/zxingcore.build/zxingcore-project-headers.hmap -I/Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Products/Debug-iphoneos/include -I../../cpp/core/src -I../ZXingWidget/Classes -I/Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Intermediates/ZXing.build/Debug-iphoneos/zxingcore.build/DerivedSources/armv7 -I/Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Intermediates/ZXing.build/Debug-iphoneos/zxingcore.build/DerivedSources -F/Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Products/Debug-iphoneos -c /Users/waltonmis/code/ZXing/zxing_iphone/iphone/Barcodes/../../cpp/core/src/zxing/common/LocalBlockBinarizer.cpp -o /Users/waltonmis/Library/Developer/Xcode/DerivedData/ZXing-gdacjujnftryijcugtfwgrnfuooh/Build/Intermediates/ZXing.build/Debug-iphoneos/zxingcore.build/Objects-normal/armv7/LocalBlockBinarizer.o

arm-apple-darwin10-gcc-4.2.1: /Users/waltonmis/code/ZXing/zxing_iphone/iphone/Barcodes/../../cpp/core/src/zxing/common/LocalBlockBinarizer.cpp: No such file or directory
arm-apple-darwin10-gcc-4.2.1: warning: '-x c++' after last input file has no effect
arm-apple-darwin10-gcc-4.2.1: no input files

Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

//=================================================================================

PS: my device is iPhone OS 4.0.1.

Develop environment is Mac OS X 10.7.

iOS SDK 4.2.

http://www.sendspace.com/file/ludlvq  <- ZXing 1.6

Any answer is appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

没企图 2024-12-01 16:02:33

在我看来,Xcode 找不到文件“/Users/waltonmis/code/ZXing/zxing_iphone/iphone/Barcodes/cpp/core/src/zxing/common/LocalBlockBinarizer.cpp”。检查它是否已被移动或删除。

PS:“开发环境是Mac OS X 10.7。”您运行的是 Mac OS X Lion?

It looks to me that Xcode can't find the file "/Users/waltonmis/code/ZXing/zxing_iphone/iphone/Barcodes/cpp/core/src/zxing/common/LocalBlockBinarizer.cpp". Check to see if it might have been moved or deleted.

PS: "Develop environment is Mac OS X 10.7." You're running Mac OS X Lion?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文