Software Archive
Read-only legacy content
17061 讨论

Cordova Plugin Barcodescanner

Christian_K_
新分销商 I
2,288 次查看

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

 

0 项奖励
12 回复数
PaulF_IntelCorp
2,288 次查看

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).

0 项奖励
Christian_K_
新分销商 I
2,288 次查看

Hello,

 

 

 

attached a example project. Please compile it as Android App.

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

Thanks

 

 

 

0 项奖励
PaulF_IntelCorp
2,288 次查看

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.

0 项奖励
PaulF_IntelCorp
2,288 次查看

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.

0 项奖励
Christian_K_
新分销商 I
2,288 次查看

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

0 项奖励
PaulF_IntelCorp
2,288 次查看

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:

Screen Shot 2015-10-16 at 10.44.19 AM.png

Screen Shot 2015-10-16 at 11.13.25 AM.png

 

Screen Shot 2015-10-16 at 10.44.56 AM.png

 

 

0 项奖励
Christian_K_
新分销商 I
2,288 次查看

I have tested with BarcodeScanner 3.1.2 and Cordova CLI 5.1.1. See attached the Test App.

You can see my Icons in the Library Tab. The Name ist icon-72-2x.png.

0 项奖励
PaulF_IntelCorp
2,288 次查看

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.

0 项奖励
Christian_K_
新分销商 I
2,288 次查看

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?

0 项奖励
PaulF_IntelCorp
2,288 次查看

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?

0 项奖励
Christian_K_
新分销商 I
2,288 次查看

I want, that my app follow the orientation of the device.

0 项奖励
Anusha_M_Intel1
2,288 次查看

@Christian, check out question 1 of our Cordova FAQs for instructions on how to do that.

https://software.intel.com/en-us/xdk/faqs/cordova

0 项奖励
回复