Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 402
Registered: ‎04-04-2012
My Device: BlackBerry Z30/Z10/Z10LE/Q10/PlayBook

barcodescanner example

Has anyone been able to compile the barcodescanner example? There seems to be a lot of things missing or misconfigured.

Regular Contributor
Posts: 94
Registered: ‎12-02-2011
My Device: non-Blackberry user
My Carrier: none

Re: barcodescanner example

I just tried to compile it and it worked fine.  There were these warning messages during compile:

WARNING: Failure to find: ../src/*.hpp
WARNING: Failure to find: ../src/*.h
WARNING: Failure to find: ../src/*.hpp
WARNING: Failure to find: ../src/*.h

 

Probable because there seems to be no .hpp or h files. only one main.cpp file.

 

If you look in its sub directory : barcodereader/arm/o.le-v7-g (assuming you did debug mode) you will see the executable

Highlighted
Regular Contributor
Posts: 94
Registered: ‎12-02-2011
My Device: non-Blackberry user
My Carrier: none

Re: barcodescanner example

Bluenoser

 

I  uploaded  the app to the phone and found it to work.  Not sure how practical a camera barcode scanner is.  Seeing how RIM is in the enterprise space it would be nice to have a see a phone that could take a real bar code scanner as an attachment.

 

What do you say RIM ?

Developer
Posts: 402
Registered: ‎04-04-2012
My Device: BlackBerry Z30/Z10/Z10LE/Q10/PlayBook

Re: barcodescanner example

Yes. I got the barcodereader example to work, but the barcodescanner does not.

Regular Contributor
Posts: 94
Registered: ‎12-02-2011
My Device: non-Blackberry user
My Carrier: none

Re: barcodescanner example

sorry did not know there was a difference where did you get the scanner app from ?
Developer
Posts: 402
Registered: ‎04-04-2012
My Device: BlackBerry Z30/Z10/Z10LE/Q10/PlayBook

Re: barcodescanner example

Retired
Posts: 749
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: barcodescanner example

This appears to be because I forgot to include the translations/ directory when I added to project to GitHub. We should have it fixed shortly.

 

The BarcodeScanner sample shows you how to use the built in ZXing library to make the decoder yourself, and how to handle the preview frames coming from the camera. This would be useful if you wanted to, for example, scan inverted barcodes. It also shows you how to set up a custom component, and an invocation target.

 

If you just want to scan supported baracodes, the barcodereader sample is the way to go. Just tell it to scan the formats you want.

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker