Thread: mbarcode
View Single Post
Posts: 252 | Thanked: 252 times | Joined on Nov 2009
#240
Originally Posted by lamle View Post
barcode or QR code are both ok.
You are right definitely. I am sure that I have include<glib-2.0/glib.h> in the header and in .pro file also. I dont know why the application cries about hundreds of error and I cant even find where is the log file of esbox.
error.txt

Can you explain a little bit about your idea implementing plugin for mbarcode? I really dont know how to achieve that yet.
It seems like your error log has been cut off. I'm suspecting that you are missing some libraries and that the error log is mentioning the missing headers in the beginning. If you look at the control file in our debian folder, you'll find all the libraries it depends on at build (some of them are needless, but we've not yet cleaned that list up). The library packages should be these:
Code:
debhelper (>= 5), libzbar-dev, libdmtx-dev, gstreamer0.10-plugins-bad-dev | maemo-version (<5.0), libconic0-dev,
libgstreamer0.10-dev, libosso-abook-dev | maemo-version (<5.0), libosso-dev, libgtk2.0-dev,
libgconf2-dev, libglib2.0-dev, libebook-dev | maemo-version (<5.0), libgstreamer-plugins-base0.10-dev,
libcurl3-dev, mce-dev | maemo-version (<5.0), libmodest-dbus-client-dev, libhildonfm2-dev,
libqt4-dev
I believe running "apt-get install ..." with that list would do the trick (although you might have to run them without the paranthesis and | signs).

To develop a plugin you are probably best off at the moment by starting with the webrequest or QR-code plugin and modify parts of that code. You'll need the mbarcode-dev package to build the plugins. After building you put the plugin into /usr/share/mbarcode/plugins/ on your device.

I'm going to write a guide on writing plugins soon, but I'm afraid I don't have time to do that right now.