ZXing 1.6 iPhone条形码构建错误

时间:2011-07-18 20:28:52

标签: iphone zxing

我已下载ZXing 1.6并尝试在名为“条形码”的文件夹中打开该项目。

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

  
    
      

编译LocalBlockBinarizer.cpp ...在/ 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 / 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-he aders.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 / Der ivedData /斑马线-gdacjujnftryijcugtfwgrnfuooh /建造/中间体/ ZXing.build /调试-的iPhoneOS / zxingcore.build /对象 - 正常/ 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:警告:' - c 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
    
  

感谢任何回答。

1 个答案:

答案 0 :(得分:0)

在我看来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?