Notices


Reply
Thread Tools
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#741
Originally Posted by oKtosiTe View Post
I'm running the latest extras-devel version with all plugins installed on PR1.3, and the plugin list is completely empty.

Is there something I need to do to get them to show up?
Should I file a bug report?
A bug report will email me directly so yeah normally that is a good idea, but in this case, as I've already seen your question, let's see what we can do.

I have a feeling this is to do with versioning requirements in mBarcode - i.e. mBarcode does not rely upon any particular version of the plugins, while it should really rely upon a version that is later than or equal to the one where the API change occurred.

Do you see any output if you start mBarcode from the terminal (you might see something about plugins not loading)?

In any case I'd try removing all the plugins, then re-install (this may force mBarcode to be uninstalled while you uninstall the plugins).

Sorry about that, I really should sort the deps out properly for things like this API break.

Let us know how you get on.
 

The Following User Says Thank You to lardman For This Useful Post:
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#742
Originally Posted by eachna View Post
I installed the latest version and I'm picking through the thread, looking for a plugin I wanted....

While picking through the thread it occurs to me to post some features/plugins I run across to make it easier for you (Lardman) to update.
Thanks

Originally Posted by eachna View Post
First, this plugin for installing plugins through apt (apturl):
http://talk.maemo.org/attachment.php...7&d=1275684398
I'd completely missed/forgotten that one TBH, so many thanks for pointing it out. I've been talking to the guys involved in the Community SSU about adding QR codes to the maemo.org downloads page using this type of link.

Originally Posted by eachna View Post
Next, a mention that you want people to be able to email you "problematic" barcodes. I don't see a way to do this so I thought I'd throw it in here.
You should be able to save the barcode that is currently in the viewfinder by pressing the save button.

Originally Posted by eachna View Post
Next, Lardman's database plugin (Fixed):
http://talk.maemo.org/attachment.php...6&d=1289283843
Working with Fiferboy to move this to Qt/C++. In fact with my lack of a device he's done all the work, but I need to have a chat with him to see how far along he's got.

Originally Posted by eachna View Post
Finally, is Lardman's database plugin working with this new version, it's not clear to me that it should be? I know mBarcode had to be fixed before it would work, but I don't know that fixing mBarcode was all that was needed for it to work. If it should be working, how do I load it? I see a way to edit plugins, but no way to import them.
My ItemDB program was never actually working, just work in progress (I'm assuming this is what we mean here.)

I needed to get DBus signal sending working before that ItemDB program could work (as one can use DBus to start an app which is not running). I had originally planned a plugin solely for this purpose, but decided that it would probably be easier for people to write a small Python wrapper to send a DBus signal to their app.

The Python plugin is working, so there's no reason why people can't now have mBarcode start their apps and send them DBus (or other) signals via a Python plugin. Note that mBarcode also sends out broadcast DBus messages when a barcode is decoded, so if your app is running anyway it can just listen out for these.

The idea is not for people to be able to import these, but for them to be provided by the application that plans to use the data, but in any case they go under /usr/share/mbarcode/plugins/ (for C++) or /usr/share/mbarcode/plugins/qtpython/ (for python)

Originally Posted by eachna View Post
I may have missed it in the 70+ pages of thread I've read. I'll be sure to provide updates ASAP. I'm very excited about this progress, I hope your (Lardman's) book-scanning is smooth on your side as well!
Many thanks for the help collating those posts, I'll add the apt patch now. Did you find the Python script I wrote (attached earlier in the thread) to add barcodes to a text file which might be of use?
 

The Following User Says Thank You to lardman For This Useful Post:
Posts: 109 | Thanked: 45 times | Joined on Aug 2010
#743
Originally Posted by lardman View Post
Thanks

Many thanks for the help collating those posts, I'll add the apt patch now. Did you find the Python script I wrote (attached earlier in the thread) to add barcodes to a text file which might be of use?
No worries, glad it was useful.

I didn't see the python script, I'm sure it's there, I'll look again. I thought I was looking for the db program. Once I do find the python script, how to I add it as a plugin (or otherwise access it through mBarcode)?

Gwen
 

The Following User Says Thank You to eachna For This Useful Post:
Posts: 109 | Thanked: 45 times | Joined on Aug 2010
#744
Originally Posted by eachna View Post
No worries, glad it was useful.

I didn't see the python script, I'm sure it's there, I'll look again. I thought I was looking for the db program. Once I do find the python script, how to I add it as a plugin (or otherwise access it through mBarcode)?

Gwen
Okay, I have this in my downloads...it's a python "isbn saver" patch of some sort...I didn't grab the link...is this it? If so, how do I use it?

If not, do you have the file in question (can you re-attach it), and once you do so, can you explain how to access it in mBarcode?
Attached Files
File Type: txt isbn_saver.py.txt (3.1 KB, 127 views)
 
Posts: 2,102 | Thanked: 1,309 times | Joined on Sep 2006
#745
No, that's the one, rename it (get rid of the .txt extension which I had to add to allow the file to be attached) and place it in /usr/share/mbarcode/plugins/pythonqt/

Then it should just appear in the plugin settings window (if you want to disable all other plugins and only have that one running) or otherwise it will be listed in the results window when you scan an EAN/ISBN barcode.

You'll need to install pyside from extras-devel (if this script were packaged up correctly rather than just a single file, that would be a dep to be automatically installed.)

It's just Python code, take a look at it, should be pretty easy to understand what it's doing, etc.

Last edited by lardman; 2011-02-03 at 21:37.
 

The Following User Says Thank You to lardman For This Useful Post:
Posts: 8 | Thanked: 4 times | Joined on Jan 2011 @ Vancouver, BC, Canada
#746
It seems that libraries such as zbar for Maemo 5 is not available on maemo.org dev site. zbar 0.10-maemo4 is there, but no zbar 0.10-maemo5. Anyone can comment on that? I am not sure why there is issue because it appears that libraries were released regularly with every next release of maemo but no latest build?
 
oKtosiTe's Avatar
Posts: 47 | Thanked: 14 times | Joined on Jul 2010
#747
Originally Posted by lardman View Post
Do you see any output if you start mBarcode from the terminal (you might see something about plugins not loading)?
This is what I get:
Code:
~ $ mbarcode 
"main():" Started mbarcode 
"main():" Showed splash, t= 285 
"main():" Showing window 
"MaemoBarcodeWindow():" Started MaemoBarcodeWindow 
"MaemoBarcodeWindow():" Killing the camera app, t= 479 
"MaemoBarcodeWindow():" Setting window title, t= 522 
"MaemoBarcodeWindow():" Setting up dbus, t= 523 
"MaemoBarcodeWindow():" Setting up lensCoverPropertyModified 
"MaemoBarcodeWindow():" Setting up focusButtonPropertyModified 
"MaemoBarcodeWindow():" Setting up cameraButtonPropertyModified 
"MaemoBarcodeWindow():" Initing state of lens cover, t= 544 
"MaemoBarcodeWindow():" Creating settings, t= 546 
"MaemoBarcodeWindow():" Initializing decoder, t= 917 
"ZBarDecoderThread():" Created scanner 
"ZBarDecoderThread():" Enabled scanner 
"ZBarDecoderThread():" Created image 
"MaemoBarcodeWindow():" Initializing video widget, t= 926 
VideoWidget::VideoWidget(): Called 
VideoWidget::VideoWidget(): Getting device type 
We're an N900
VideoWidget::VideoWidget(): Initializing pipeline 
VideoWidget::initPipeline() called 
VideoWidget::initPipeline(): initializing gstreamer 
VideoWidget::initPipeline(): creating new pipeline 
VideoWidget::initPipeline(): getting bus 
VideoWidget::initPipeline(): adding watch 
VideoWidget::initPipeline(): unrefing bus 
VideoWidget::initPipeline(): making factory 
VideoWidget::initPipeline(): setting object 
VideoWidget::initPipeline(): camera_src is now loaded 
VideoWidget::initPipeline(): Creating csp_filter 
VideoWidget::initPipeline(): csp_filter is now loaded 
VideoWidget::initPipeline(): Using N900 caps 
VideoWidget::initPipeline(): Used N900 caps 
VideoWidget::initPipeline(): Linking filtered 
VideoWidget::initPipeline(): Unref caps 
VideoWidget::initPipeline(): Using rgb caps 
VideoWidget::initPipeline(): Linking again 
VideoWidget::initPipeline(): Linking another filtered 
VideoWidget::initPipeline(): Unrefing caps 
VideoWidget::initPipeline(): Ask for emitted signals 
VideoWidget::initPipeline(): Creating screen sink 
Pipeline initialized with success! 
VideoWidget::VideoWidget(): Pipeline initialized 
VideoWidget::VideoWidget(): Setting up images 
VideoWidget::VideoWidget(): Setting up frame counts 
VideoWidget::VideoWidget(): Finished 
"MaemoBarcodeWindow():" Setting video widget attributes, t= 3777 
"MaemoBarcodeWindow():" Finished setting video widget attributes, t= 3780 
"MaemoBarcodeWindow():" Connecting signals, t= 3781 
"MaemoBarcodeWindow():" Initializing buttons, t= 3781 
"MaemoBarcodeWindow():" Checking lens cover state, t= 3872 
"MaemoBarcodeWindow():" Setting central widget, t= 3873 
"MaemoBarcodeWindow():" Finished, t= 3874 
"main():" Setup DBus connections, t= 3961 
VideoWidget::mousePressEvent(): At  QPoint(758,269) 
VideoWidget::stop(): Called with stopCompletely =  false 
VideoWidget::stop(): Setting pipeline to paused 
MainWindow::showSettingsWindow(): Creating settings window 
loadPlugins(): Initializing results window, t= 12026 
loadPlugins(): Loading plugins..., t= 12434 
loadPlugins(): Loading plugin info, found  "0" 
Done loading plugins, t= 13919 
ResultsWindow::setPluginActions(): Called. 
SettingsWindow::SettingsWindow(): Setting initial settings 
VideoWidget::mousePressEvent(): At  QPoint(762,285) 
VideoWidget::stop(): Called with stopCompletely =  false 
VideoWidget::stop(): Setting pipeline to paused 
MainWindow::showSettingsWindow(): Creating settings window 
SettingsWindow::SettingsWindow(): Setting initial settings 
MaemoBarcodeWindow::changeEvent(): Event caught 99 
MaemoBarcodeWindow::changeEvent(): Is not active window 
~MaemoBarcodeWindow(): Removing old entries. Remaining= 0 
MaemoBarcodeWindow::changeEvent(): Event caught 99 
MaemoBarcodeWindow::changeEvent(): Is active 
MaemoBarcodeWindow::changeEvent(): Event caught 99 
MaemoBarcodeWindow::changeEvent(): Is not active window 
VideoWidget::refocus(): Pipeline not ready... Please wait :)
VideoWidget::refocus(): Pipeline not ready... Please wait :)
VideoWidget::refocus(): Pipeline not ready... Please wait :)
VideoWidget::refocus(): Pipeline not ready... Please wait :)
VideoWidget::refocus(): Pipeline not ready... Please wait :)
VideoWidget::refocus(): Pipeline not ready... Please wait :)
VideoWidget::refocus(): Pipeline not ready... Please wait :)
VideoWidget::refocus(): Pipeline not ready... Please wait :)
VideoWidget::refocus(): Pipeline not ready... Please wait :)
VideoWidget::refocus(): Pipeline not ready... Please wait :)
VideoWidget::refocus(): Pipeline not ready... Please wait :)
VideoWidget::refocus(): Pipeline not ready... Please wait :)
MaemoBarcodeWindow::lensCoverPropertyModified(): is true 
VideoWidget::stop(): Called with stopCompletely =  false 
VideoWidget::stop(): Setting pipeline to paused 
QMetaObject::connectSlotsByName: No matching signal for on_btnReducePriority_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_btnIncreasePriority_clicked()
~MaemoBarcodeWindow(): Removing old entries. Remaining= 0 
MaemoBarcodeWindow::changeEvent(): Event caught 99 
MaemoBarcodeWindow::changeEvent(): Is active 
VideoWidget::start(): Called with startEvenIfNotYetStarted = false and lensCoverOpen = true 
VideoWidget::start(): Setting pipeline state 
New buffer added! 
Appsink initialized! 
VideoWidget::refocus(): Calling refocus
VideoWidget::refocus(): Interval is 2000 
VideoWidget::refocus(): Refocus called
VideoWidget::busCallback(): Autofocus success message received.
VideoWidget::refocus(): Calling refocus
VideoWidget::refocus(): Interval is 2000 
VideoWidget::refocus(): Refocus called
VideoWidget::busCallback(): Autofocus success message received.
VideoWidget::refocus(): Calling refocus
VideoWidget::refocus(): Interval is 2000 
VideoWidget::refocus(): Refocus called
VideoWidget::busCallback(): Autofocus failed message received.
VideoWidget::refocus(): Calling refocus
VideoWidget::refocus(): Interval is 2000 
VideoWidget::refocus(): Refocus called
MaemoBarcodeWindow::lensCoverPropertyModified(): is false 
VideoWidget::stop(): Called with stopCompletely =  false 
VideoWidget::stop(): Setting pipeline to paused 
VideoWidget::mousePressEvent(): At  QPoint(480,268) 
VideoWidget::mousePressEvent(): At  QPoint(752,41) 
VideoWidget::stop(): Called with stopCompletely =  true 
VideoWidget::stop(): Setting pipeline to paused 
MaemoBarcodeWindow::changeEvent(): Event caught 99 
MaemoBarcodeWindow::changeEvent(): Is not active window 
~ $
I'll try reinstalling the plugins later and will file a bug report if the problem persists—as soon as I'm behind a desktop computer.
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#748
Originally Posted by apolkhanov View Post
It seems that libraries such as zbar for Maemo 5 is not available on maemo.org dev site. zbar 0.10-maemo4 is there, but no zbar 0.10-maemo5. Anyone can comment on that? I am not sure why there is issue because it appears that libraries were released regularly with every next release of maemo but no latest build?
The maemo4 there doesn't (usually) mean that it's for version 4 of Maemo. The 0.10 is the official release number, and the maemo4 signifies that it's the 4th maemo version released from the same 0.10 upstream version.
 

The Following User Says Thank You to Rob1n For This Useful Post:
Posts: 8 | Thanked: 4 times | Joined on Jan 2011 @ Vancouver, BC, Canada
#749
Yes, I understand that "maemo4" is just a symbolic notation, however installer generates error saying that zbar 0.10-maemo4 is not compatible with current version of OS installed on my phone which is maemo5. From that I assume that there are significant differences that would prevent this build of libzbar from working properly on maemo5?
 

The Following User Says Thank You to apolkhanov For This Useful Post:
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#750
Originally Posted by apolkhanov View Post
Yes, I understand that "maemo4" is just a symbolic notation, however installer generates error saying that zbar 0.10-maemo4 is not compatible with current version of OS installed on my phone which is maemo5. From that I assume that there are significant differences that would prevent this build of libzbar from working properly on maemo5?
Where are you actually getting this file from (and why not just use the repositories)? For zbar, the newest version looks to be 0.10-maemo1 (http://maemo.org/packages/view/zbar/) though libzbar0 is at 0.10-maemo4 (http://maemo.org/packages/view/libzbar0/).
 

The Following User Says Thank You to Rob1n For This Useful Post:
Reply

Tags
barcode, camera, mbarcode

Thread Tools

 
Forum Jump


All times are GMT. The time now is 08:31.