![]() |
Re: mbarcode
You should see some output regarding the plugin (whether it was detected, if it was loaded and if not what the error was) if you run mbarcode from a terminal.
|
Re: mbarcode
Quote:
Loading /// Could not load /// Any help is deeply appreciated. |
Re: mbarcode
Quote:
|
Re: mbarcode
Quote:
I have added #ifndef QT_STATICPLUGIN #define QT_STATICPLUGIN #endif to the header, but nothing changed. Still could not load. Of course, qmake knows some magic options for g++ command. The question is, what commands? Right now, I removed ^M from mb.cpp and use these two commands to create mb.so. g++ -Wall -fPIC -c mb.cpp g++ -Wall -fPIC -shared mb.o -o mb.so But nothing changed: Could not load ///. What else can be suggested? "...The compilation of loadable modules are very much system-dependent..." http://www.inf.usi.ch/carzaniga/sdl/doc/index.html Can anybody help with it? I hope I don't need to add -I///directory flags to g++, because if they were required, compilation wouldn't occur (header files wouldn't be found). So, what do optimisation -O3, -pipe, -fno-omit-frame-pointer and -fno-optimize-sibling-calls flags mean? Could they fix the problem? |
Re: mbarcode
Can you not use QMake?
I'm also rather concerned that you're not linking against the QtPlugin library (though you apparently have no errors, which is also a bit strange). Can you post some code so we can take a look ourselves? |
Re: mbarcode
1 Attachment(s)
Quote:
Quote:
Quote:
Quite short, not more that 80 lines of code altogether. |
Re: mbarcode
Thanks, will take a look when I get back from work unless someone beats me to it.
|
Re: mbarcode
1 Attachment(s)
Right, I Debian-ised it and did a compile, I've attached the whole tarball here. It also contains output.txt which should show you the commands that were executed to get it to build.
Have a look and see if that's of use. |
Re: mbarcode
Quote:
It seems that this stubborn cpp is ready to ruin even qmake magic in order to prove that its impossible to build a module from it... I'll continue to look at the qr-code plugin: maybe, there is a hint because the qr-code plugin works fine. |
Re: mbarcode
Quote:
|
| All times are GMT. The time now is 17:51. |
vBulletin® Version 3.8.8