LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   building qt3 in latest -current with gcc >= 4.6 (https://www.linuxquestions.org/questions/slackware-14/building-qt3-in-latest-current-with-gcc-%3D-4-6-a-943608/)

zakame 05-07-2012 12:00 AM

building qt3 in latest -current with gcc >= 4.6
 
1 Attachment(s)
Not so much a question but a heads-up.

I was building the qt3 SlackBuild for ike on -current (which uses gcc-4.7 now,) and that fails due to missing include defining ptrdiff_t; a similar issue cropped in Debian, so I adapted the patch there for the SlackBuild, see attached.

Dunno if I should post this on slackbuild-users (as they seem to track 13.37 and not -current yet,) but I'm putting it here in case it helps :)

Evilus 05-07-2012 12:06 AM

Probably GCC 4.7 is too new for Qt3 code compiling. I had some errors if I was compiling (by slackbuilds ofc) Inkscape and other "daily-use" software. Qt3 is legacy version of Qt and won't be developed. So you can download a txz package which contains Qt: ftp://ftp.slackware.pl/pub/slackware...-i486-opt3.txz (if you run 32-bit Slackware Linux) or ftp://ftp.slackware.pl/pub/slackware...86_64-opt3.txz (if you run 64-bit one).

zakame 05-08-2012 10:33 AM

Actually GCC 4.7 built qt3 rather well, as long as the mentioned
Code:

#include <cstddef>
was patched in. What I'm hoping for really is a newer version of ike to come out very soon, the beta 2.2.0 version is using qt4 now.

Thanks for the pointers to the old qt3 packages though; I might make use of them in a different legacy app later.

guanx 05-08-2012 05:33 PM

Quote:

Originally Posted by zakame (Post 4672087)
Not so much a question but a heads-up.

I was building the qt3 SlackBuild for ike on -current (which uses gcc-4.7 now,) and that fails due to missing include defining ptrdiff_t; a similar issue cropped in Debian, so I adapted the patch there for the SlackBuild, see attached.

Dunno if I should post this on slackbuild-users (as they seem to track 13.37 and not -current yet,) but I'm putting it here in case it helps :)

Very nice. Thank you!
Qt3 is necessary for me to try Trinity.

zakame 10-03-2012 07:42 AM

Note for Slackbuilds.org 14.0
 
Now that SBo/14.0 is out, it has an updated qt3 package, but it has a broken patch for ptrdiff_t:

Code:

File include/qvaluelist.h is not a regular file -- can't patch
1 out of 1 hunk ignored -- saving rejects to file include/qvaluelist.h.rej
patching file src/tools/qvaluelist.h

Apparently the qt3_gcc47.patch patches 1 file twice, as a regular file and as a symlink:

Code:

--- qt-x11-free-3.3.8b/include/qvaluelist.h    2008-01-15 17:09:13.000000000 -0200
+++ qt-x11-free-3.3.8b_patched/include/qvaluelist.h    2012-08-09 12:23:57.000000
--- qt-x11-free-3.3.8b/src/tools/qvaluelist.h  2008-01-15 17:09:13.000000000 -0200
+++ qt-x11-free-3.3.8b_patched/src/tools/qvaluelist.h  2012-08-09 13:03:09.000000000 -0300

My old qt3-gcc46-includes.diff can still apply though.


All times are GMT -5. The time now is 05:47 PM.