maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   QR code reader for the n810 (https://talk.maemo.org/showthread.php?t=27508)

lardman 2009-10-18 14:33

Re: QR code reader for the n810
 
If there are any GTK+ gurus out there, could you take a look at the dialogs (botton of web.c) and see if you can work out why, after they are dismissed, the UI no longer accepts events. This seems to happen on both the N8x0 and N900.

For the next build I'll just disable the dialogs so that you can open urls and add vcards without it all locking up. Also need to tweak N8x0 url code as it seems to just open an empty browser atm.

In fact I now need to split the code (up till now the same has run on both N8x0 and N900), as there are going to be some significant differences in the camera stuff, the GUI, etc.

adem3311 2009-10-18 15:08

Re: QR code reader for the n810
 
I did the dpkg and it worked. I did the chmod a+x .media/mmc1/mbarcode and it worked


Now what? I can't open mbarcode through the terminal because it says permission denied.

qwerty12 2009-10-18 15:11

Re: QR code reader for the n810
 
Quote:

Originally Posted by lardman (Post 350330)
For the next build I'll just disable the dialogs so that you can open urls and add vcards without it all locking up. Also need to tweak N8x0 url code as it seems to just open an empty browser atm.

I still think connecting a "response" handler to the dialog's callback is more preferable to disabling it, while gtk_dialog_run() fails for you.

adem3311 2009-10-18 16:46

Re: QR code reader for the n810
 
Easy Guide: (1 way to do it)

Download both files onto a removable memory card

Rename the libdmtx0a_0.7.0-1_armel.deb to lib.deb in File Manager

Open XTerminal

Get Root

type
Code:

dpkg -i /media/mmc1/lib.deb
type
Code:

ls -l /media/mmc1
You should see mbarcode on the list

type
Code:

mv /media/mmc1/mbarcode ~user
type
Code:

chmod ugo+rx ~user/mbarcode
You're done! :)

To start it whenever you want just type
Code:

~user/mbarcode
(a script should be made to start it)

And that's my beginners guide to installing it.

lardman 2009-10-18 17:19

Re: QR code reader for the n810
 
Quote:

I still think connecting a "response" handler to the dialog's callback is more preferable to disabling it, while gtk_dialog_run() fails for you.
I'll try it, but can't really see why it should behave differently to the current code.

lamle 2010-06-03 19:19

Re: QR code reader for the n810
 
Hi all,
I am developing an application and in my application there is one part that I should search the engine based on its bar code. I examined mbarcode application for N900 in repository and would like to embed it to my application.
I have try this code
https://garage.maemo.org/plugins/scm...=maemo-barcode
It works and I got a plugin installed.
However, sorry for my stupidness but still I could not find out a way to use this plugin in my application.
I think it should be something like:
QRreader reader(myMainApplication);
reader.show();

Any help for sample code please.

lardman 2010-06-03 19:21

Re: QR code reader for the n810
 
What about going the other way round and making your application a plugin that runs within mbarcode?

Otherwise, to use the mbarcode implementation in your app, you'll need to setup the GStreamer pipeline and handle the events coming from the libzbar gst decoder element.

lamle 2010-06-03 20:27

Re: QR code reader for the n810
 
My application is quite complicated and mbarcode should be a part of it.
Can you please give me some guidelines how to do it in the second way.
Please help me with this, I have been struggling with it quite a bit but still not much achievement
Can we have codes somewhere?


All times are GMT. The time now is 10:09.

vBulletin® Version 3.8.8