- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hello,
i can`t compile my project with cordoba-plugin-barcodescanner. What can i do?
CompileC build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/Objects-normal/arm64/CDVBarcodeScanner-AED6A987F3CA5E41.o MyFoodDB/Plugins/cordova-plugin-barcodescanner/CDVBarcodeScanner.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler cd .../mobile2/platforms/ios export LANG=en_US.US-ASCII export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Developer/android-sdk-macosx/tools:/usr/local/ant/bin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c++ -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fobjc-arc -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -Wno-c++11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -miphoneos-version-min=8.0 -iquote .../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/MyFoodDB-generated-files.hmap -I.../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/MyFoodDB-own-target-headers.hmap -I.../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/MyFoodDB-all-target-headers.hmap -iquote .../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/MyFoodDB-project-headers.hmap -I.../mobile2/platforms/ios/build/device/include -I.../mobile2/platforms/ios/build/device/usr/local/lib/include -I.../mobile2/platforms/ios/build/UninstalledProducts/include -I.../mobile2/platforms/ios/build/device -I.../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/DerivedSources/arm64 -I.../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/DerivedSources -F.../mobile2/platforms/ios/build/device -fno-objc-arc -include .../mobile2/platforms/ios/build/sharedpch/MyFoodDB-Prefix-agcosefdnlaffdhkqmkrgwznieyv/MyFoodDB-Prefix.pch -MMD -MT dependencies -MF .../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/Objects-normal/arm64/CDVBarcodeScanner-AED6A987F3CA5E41.d --serialize-diagnostics .../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/Objects-normal/arm64/CDVBarcodeScanner-AED6A987F3CA5E41.dia -c .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-barcodescanner/CDVBarcodeScanner.mm -o .../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/Objects-normal/arm64/CDVBarcodeScanner-AED6A987F3CA5E41.o .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-barcodescanner/CDVBarcodeScanner.mm:542:82: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] new GreyscaleLuminanceSource(greyData, greyWidth, greyWidth, 0, 0, greyWidth, greyWidth) ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-barcodescanner/CDVBarcodeScanner.mm:542:93: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] new GreyscaleLuminanceSource(greyData, greyWidth, greyWidth, 0, 0, greyWidth, greyWidth) ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-barcodescanner/CDVBarcodeScanner.mm:542:110: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] new GreyscaleLuminanceSource(greyData, greyWidth, greyWidth, 0, 0, greyWidth, greyWidth) ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-barcodescanner/CDVBarcodeScanner.mm:542:121: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] new GreyscaleLuminanceSource(greyData, greyWidth, greyWidth, 0, 0, greyWidth, greyWidth) ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~ .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-barcodescanner/CDVBarcodeScanner.mm:584:38: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] int length = height * bytesPerRow; ~~~~~~ ~~~~~~~^~~~~~~~~~~~~ 5 warnings generated. CompileC build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/Objects-normal/arm64/zxing-all-in-one-A04CA644935665A3.o MyFoodDB/Plugins/cordova-plugin-barcodescanner/zxing-all-in-one.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler cd .../mobile2/platforms/ios export LANG=en_US.US-ASCII export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/Developer/android-sdk-macosx/tools:/usr/local/ant/bin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -miphoneos-version-min=8.0 -iquote .../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/MyFoodDB-generated-files.hmap -I.../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/MyFoodDB-own-target-headers.hmap -I.../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/MyFoodDB-all-target-headers.hmap -iquote .../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/MyFoodDB-project-headers.hmap -I.../mobile2/platforms/ios/build/device/include -I.../mobile2/platforms/ios/build/device/usr/local/lib/include -I.../mobile2/platforms/ios/build/UninstalledProducts/include -I.../mobile2/platforms/ios/build/device -I.../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/DerivedSources/arm64 -I.../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/DerivedSources -F.../mobile2/platforms/ios/build/device -include .../mobile2/platforms/ios/build/sharedpch/MyFoodDB-Prefix-dcufpmpoteqcglhetchkoegbnlos/MyFoodDB-Prefix.pch -MMD -MT dependencies -MF .../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/Objects-normal/arm64/zxing-all-in-one-A04CA644935665A3.d --serialize-diagnostics .../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/Objects-normal/arm64/zxing-all-in-one-A04CA644935665A3.dia -c .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-barcodescanner/zxing-all-in-one.cpp -o .../mobile2/platforms/ios/build/MyFoodDB.build/Release-iphoneos/MyFoodDB.build/Objects-normal/arm64/zxing-all-in-one-A04CA644935665A3.o .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-barcodescanner/zxing-all-in-one.cpp:891:45: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] int arraySize = (bits + bitsPerWord_ - 1) >> logBits_; ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-barcodescanner/zxing-all-in-one.cpp:1033:46: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] int arraySize = (bits + bitsPerWord - 1) >> logBits; ~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-barcodescanner/zxing-all-in-one.cpp:1079:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] int yOffset = width_ * y; ~~~~~~~ ~~~~~~~^~~ .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-barcodescanner/zxing-all-in-one.cpp:1227:44: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] return 8 * (bytes_.size() - byteOffset_) - bitOffset_; ~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-barcodescanner/zxing-all-in-one.cpp:1615:11: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int n = edges.size(); ~ ^~~~~~~~~~~~ .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-barcodescanner/zxing-all-in-one.cpp:1832:20: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int numBuckets = histogram.size(); ~~~~~~~~~~ ^~~~~~~~~~~~~~~~ .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-barcodescanner/zxing-all-in-one.cpp:2085:15: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int max = points.size(); ~~~ ^~~~~~~~~~~~~ .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-barcodescanner/zxing-all-in-one.cpp:2106:15: warning: implicit conversion loses integer precision: 'size_type' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int max = points.size(); ~~~ ^~~~~~~~~~~~~ .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-barcodescanner/zxing-all-in-one.cpp:2134:15: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int width = image->getWidth(); ~~~~~ ^~~~~~~~~~~~~~~~~ .../mobile2/platforms/ios/MyFoodDB/Plugins/cordova-plugin-barcodescanner/zxing-all-in-one.cpp:2135:16: warning: implicit conversion loses integer precision: 'size_t' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32] int height = ima
コピーされたリンク
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Can you ZIP an example project that causes these errors and attach it to this thread? Please ZIP the entire project directory and attach to a new post using the "Attach Media" button (below the edit window).
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Christian, try using version 3.1.2 of the plugin with your CLI 5 build. There appears to be some issue with the 4.x versions of that plugin. I can't figure out what the issue, but I am only able to build against the 3.x versions of that plugin.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
p.s. I don't understand what you mean by:
I have create a Showcase for my App. I have downloaded my App Icon and i see it in your Library. Please remove it from your Library.
/file/480691/download and /file/480689/download
please clarify.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I have the same problem with BarcodeScanner 3.1.2?
The other means the App Showcase.
https://software.intel.com/en-us/node/add/project
On the bottom is a Browse Link. When you click them, you see a Library. My App App Icon is in the Library and all people see there.
Library path:
/file/480691/download
/file/480689/download
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Christian, please confirm that you have actually installed 3.1.2 via the plugin manager. Click the plugin in the list and it will show you the version that was pulled into your project. I am able to build with CLI 5.1.1 with that version. Please note that 3.1.2 will NOT build with CLI 4.1.2, only with CLI 5.
Regarding the icon file, I don't see those files you are referencing. If you are looking in the "My Library" tab of the dialog that view is unique to you. Which tab are you looking under? Here's what my view for each of those tabs looks like:
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Remove the Intel XDK Device plugin, and it will work. It also has a BarCode scan function, and I suspect they are conflicting with each other. In general, do NOT use the legacy Intel XDK plugins unless you have no alternative. Those are being phased out.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Thanks for your help. I can compile my project, but i have no automated device motion without the Intel XDK Device plugin. When i move my Tablet, the i see the App only in portrait modus. What can i do?
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Christian, I don't follow what you are asking. Are you saying that you want your app to control the orientation or that you want your app to follow the orientation of the device?
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I want, that my app follow the orientation of the device.
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
@Christian, check out question 1 of our Cordova FAQs for instructions on how to do that.
