Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

qt4 binding?

by pht (Acolyte)
on Jun 13, 2009 at 09:54 UTC ( [id://771206]=perlquestion: print w/replies, xml ) Need Help??

pht has asked for the wisdom of the Perl Monks concerning the following question:

Is there a usable QT4 binding out there? I've tried to compile QtCore and QtGui, but failed:

/g++ -c -I/opt/qt/include/ -D_REENTRANT -D_GNU_SOURCE -fno-strict-ali +asing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O9 -march=ath +lon64 -fexpensive-optimizations -DVERSION=\"4.004\" -DXS_VERSION=\" +4.004\" -fPIC "-I/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi-ld/C +ORE" QAbstractFileEngine.c QAbstractFileEngine.xs: In function 'void XS_Qt__QAbstractFileEngine_e +xtension(PerlInterpreter*, CV*)': QAbstractFileEngine.xs:253: error: 'ExtensionOption' was not declared +in this scope QAbstractFileEngine.xs:253: error: 'option' was not declared in this s +cope QAbstractFileEngine.xs:255: error: expected primary-expression before +')' token QAbstractFileEngine.xs:264: error: 'ExtensionOption' was not declared +in this scope QAbstractFileEngine.xs:264: error: 'option' was not declared in this s +cope QAbstractFileEngine.xs:265: error: 'ExtensionReturn' was not declared +in this scope QAbstractFileEngine.xs:265: error: 'output' was not declared in this s +cope QAbstractFileEngine.xs:267: error: expected primary-expression before +')' token QAbstractFileEngine.xs:270: error: expected primary-expression before +')' token QAbstractFileEngine.c: In function 'void boot_Qt__QAbstractFileEngine( +PerlInterpreter*, CV*)': QAbstractFileEngine.c:1209: warning: deprecated conversion from string + constant to 'char*' make: *** [QAbstractFileEngine.o] Error 1
The suspicion I have is that those modules are not compatible with recent QT (4.4 et al).

Edited by demerphq to add code tags

Replies are listed 'Best First'.
Re: qt4 binding?
by webfiend (Vicar) on Jun 15, 2009 at 19:00 UTC

    My first reflex was to answer "no" - I've had the same issue as you in the recent past. But it's there, you've downloaded it, and at least one person has successfully built it. That one person would be the maintainer. I haven't had any luck myself. The instructions after perl Makefile.PL -i /usr/include/qt4 tell me to contact the author, so I guess I'll give that a shot.

    Oh yeah, your question. Is there a usable QT4 binding out there? Not unless you're willing to work a little to make it useful yourself. You should probably report your issues to the maintainer, who apparently resides here. Best of luck to both of us.

    Update, a little less snarky this time: The maintainer's CPAN page and the Qt-Apps Perl Qt4 pages are most likely good starting points to contact the maintainer about this package.

    Update, now thoroughly mellow and just pointing stuff out: A bug very similar to yours has been filed for QtCore at CPAN. You may want to pursue it, or you might just want to try the lovely GTK2 and Tk modules.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://771206]
Approved by Paladin
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2024-04-19 10:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found