[SOLVED] building qt3 in latest -current with gcc >= 4.6
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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).
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.
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:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.