Open GoogleCodeExporter opened 9 years ago
For now this is not possible but it is on our ToDo list.
Original comment by lukasz.r...@gmail.com
on 24 Feb 2011 at 7:32
Well! When we plan to release new version?
Original comment by danilsma...@gmail.com
on 25 Feb 2011 at 2:38
Any news about the "cameraOverlayView"?
I'd love to have it!
Original comment by rmnsal...@gmail.com
on 19 Mar 2011 at 10:01
I would second that :) A cameraOverlayView would be awesome.
Thanks for your efforts, guys, great work!
Original comment by f...@contigua.de
on 18 Apr 2011 at 7:49
Hi Guys,
Awesome work done until now with the TiBar module!
I have implemented the overlay view into the module and want to share it with
others. I attached both the new static library file (libTibar.a). I also
attached the modified source code file (TibarModule.m) so TiBar's creators can
include this in the future versions.
In order to add the overlay view, add the "overlay" parameter to the TiBar.scan
function.
Many thanks to Chris Blazek which suggested the approach
(http://developer.appcelerator.com/question/118050/titanium-module-view).
Adrian
Original comment by adid...@gmail.com
on 26 May 2011 at 10:31
Attachments:
Adrian, I've downloaded your version of the module but it gives an error:
"couldn't find module: tibar" when run it. Looking at size your libTibar.a is
1 Mb less then the original. Do I need to overwrite the module, or does this
work different?
Original comment by s...@posthuma.nu
on 14 Jun 2011 at 4:44
Hi,
in my project I'am using 0.4.2. The lib is named libtibar.a (3037820 Bytes)
And this is my code:
var maske = Ti.UI.createView({
backgroundImage:'./images/maske.png',opacity:'0.3'});
var options = {
classType:"ZBarReaderViewController",
sourceType:"Camera",
cameraMode:"Default",
overlay : maske, //?????
config:{
"showsCameraControls":true,
"showsZBarControls":true,
"tracksSymbols":true,
"enableCache":true,
"showsHelpOnFail":false,
"takesPicture":false
},
custom:{
"scanCrop":'',
"CFG_X_DENSITY":'',
"CFG_Y_DENSITY":'',
"continuous":''
},
symbol:{
"QR-Code":true
}
};
TiBar.scan({});
But an overlay doesnt appear.
Best regards
Rainer
Original comment by kontakts...@googlemail.com
on 8 Jul 2011 at 2:45
Hi *,
now I have dowloaded and renamed the libtibar.a. The new lib is smaller and the
app cannot find libtibar.a
Original comment by kontakts...@googlemail.com
on 8 Jul 2011 at 4:08
Couldn't manage to make it work either.. could you post an example of the use
of the overlay with your custom module please ?
Thank's in advance.
Original comment by emman...@baturamobile.com
on 19 Sep 2011 at 9:35
We had that exact problem, comment 8 & 9. Here's the solution:
The file that is built by the xcode project (if you compile the code) creates a
libTibar.a, with an uppercase T. This file only runs on the devices, not in the
simulator. There it says it can't find libtibar.a (you can use it to keep the
App size down in production, though, as it's 1 mb smaller, as previously
mentioned).
If you want the libtibar.a that runs in both the simulator and the device, run
the build.py with python. It will create the libtibar.a without the uppercase T.
Going a little off-topic here :)
Original comment by felix.ba...@googlemail.com
on 19 Sep 2011 at 10:01
I have copied the libTibar.a in folder '/Library/Application
Support/Titanium/modules/iphone/tibar/0.4.2' and renamed in libtibar.a.
Then I flushed the build dir and started the build process again.
But my overlays doesnt appear.
Here the code:
var options = {
classType:"ZBarReaderViewController",
sourceType:"Camera",
cameraMode:"Sampling",
overlay : Ti.UI.createImageView({
width:'100%',
height:'100%',
image:'./assets/maske.png',
opacity:'0.4',
zindex:9999
}),
config:{
"showsCameraControls":true,
"showsZBarControls":true,
"tracksSymbols":true,
"showsHelpOnFail":false,
"takesPicture":false
},
custom:{
"scanCrop":'',
"CFG_X_DENSITY":'',
"CFG_Y_DENSITY":'',
"continuous":''
},
symbol:{"QR-Code":true}
};
Original comment by kontakts...@googlemail.com
on 5 Oct 2011 at 5:23
Thanks for the patch Adrian - someone should merge this into the repository.
For others, as noted in #10, to test in simulator AND iphone you need to re-compile the module yourself to build a proper libtibar.a file (the one attached by Adrian is only for iphone use).
I tested with 1.8.2 sdk :-)
Attached is the sample app I made, and some screenshots of it working.
And the libtibar.a i compiled (dont forget to "clean" your project to have it
see the new lib file, and after cleaning you will have to add the "frameworks"
to the xcode project)
Original comment by codewise...@gmail.com
on 17 Mar 2012 at 7:42
Attachments:
[deleted comment]
[deleted comment]
Forgot to add, I havent had a chance to test on a real ios device yet.
Here is the "properly" built libtibar package as generated by the build.py
script.
It includes the sample code I attached in the previous post.
Original comment by codewise...@gmail.com
on 17 Mar 2012 at 8:33
Attachments:
Tried your version codewise, now I'm using your libtibar.a, and your sample
code, everything is the same, except the overlay view, it doesn't appear. :(
I'm using 2.0.1.GA2 SDK, and 5.1 iOS SDK. Do you have an idea? Thanks!
Original comment by ha0...@gmail.com
on 29 May 2012 at 3:15
Or would I need the TibarModule.m too? Where should I put that file? I found it
only in the build directory of my application. Sry for double posting.
Original comment by ha0...@gmail.com
on 29 May 2012 at 3:45
I cant comment for the 2.0.1 SDK, as noted it was only tested on 1.8.
Its possible something significant changed in 2.
The .m file is the source code. Its only needed if you want to re-compile the
tibar module.
Original comment by codewise...@gmail.com
on 29 May 2012 at 7:56
First of all, thank you for your answer! Now I get it work, with the original
0.4.2 and the libtibar.a, in your first post. It's working fine on simulator,
but not on device:
[ERROR] clang: error: linker command failed with exit code 1 (use -v to see
invocation)
[ERROR]
[ERROR] Error: Traceback (most recent call last):
File "/Users/levi/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.GA2/iphone/builder.py", line 1465, in main
execute_xcode("iphoneos%s" % iphone_version,args,False)
File "/Users/levi/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.GA2/iphone/builder.py", line 1224, in execute_xcode
output = run.run(args,False,False,o)
File "/Users/levi/Library/Application Support/Titanium/mobilesdk/osx/2.0.1.GA2/iphone/run.py", line 41, in run
sys.exit(rc)
SystemExit: 65
I think this is the exactly same error, when the libiconv library is can't
loaded. When I'm trying to add frameworks from Xcode, it puts just
"libiconv.dylib" to the modules.xcconfig, as the path of that, but if I put it
in the modules.xcconfig, in tibars folder, i have to use
/usr/lib/libiconv.dylib.
Maybe something else need another path in the modules.xcconfig, when building
it for device?
Do you have an idea?
I've tried the zipped version, in your second post, but with no luck: can't
find tibar module. :(
Original comment by ha0...@gmail.com
on 29 May 2012 at 8:58
. I downloaded the zip file that was uploaded and this is the error im seeing
in Xcode.
ld: in /Users/josh/Library/Application
Support/Titanium/modules/iphone/tibar/0.4.2c/libtibar.a, file is universal but
does not contain a(n) armv6 slice for architecture armv6
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Looks like the library was not packaged correctly.
Original comment by yesh.wil...@gmail.com
on 13 Jul 2012 at 4:46
[deleted comment]
Hello Darling you.
It is akisasa.
Build [ tibar0.4.2d ].
Using the sauce of tibar0.4.2c, it rebuilt so that it might operate by ios
device.
The contents of sauce are completely the same as TibarModule.m of tibar0.4.2c.
It actually moved by my ipod touch.
building -- environment is the following.
Titanium SDK:2.1.1
Titanium Studio:2.1.1.GA
Xcode:4.4.1
I am pleased if it is help you .
It is pardon at the English lower part.
Original comment by akisas...@gmail.com
on 13 Aug 2012 at 6:30
Attachments:
This doesn't work... I'm trying on my iPhone 5 with iOS 6 and Ti SDK 2.1.4.GA
and the overlay doesn't show. I've tried both using the tibar-iphone-0.4.2d.zip
attached above as well as building the source code directly. No overlay shows,
this method must be obsolete in iOS 6...
Original comment by jtot...@gmail.com
on 27 Nov 2012 at 6:53
Is it possible to create a custom close button?
I have the overlay running but I don't know what to put inside the click event
to close the tibar scan window
Original comment by visionsb...@googlemail.com
on 23 Jan 2013 at 1:13
i've added
- (void) closeScanner: (id)args {
ENSURE_UI_THREAD(closeScanner,args);
[reader dismissModalViewControllerAnimated: YES];
}
to TibarModule.m and can use "tibar.closeScanner();" in titanium now. But I
have the problem that the overlay is not always visible! When I open it for the
5th time the overlay is not visible or my click-events inside the overlay are
not working
Original comment by visionsb...@googlemail.com
on 4 Feb 2013 at 2:42
Original issue reported on code.google.com by
danilsma...@gmail.com
on 21 Feb 2011 at 9:09