Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
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.
CutyCapt is a program to grab a web page and render it as a png. Has anyone ever actually gotten it to compile?
After a while wrestling with just finding the damn thing (I swear these sites hide the links to the source tarballs with great deliberation and forethought) I found the source to consist of the following:
Code:
-rwxr-xr-x 1 bob users 23876 Mar 16 22:45 CutyCapt.cpp
-rwxr-xr-x 1 bob users 2250 Mar 16 22:45 CutyCapt.hpp
-rwxr-xr-x 1 bob users 297 Mar 16 22:45 CutyCapt.pro
Ah, an old school no-make-file compile. Yeah, I can do that ... or so I thought...
Code:
$ gcc -o try CutyCapt.cpp
CutyCapt.cpp:26:10: fatal error: QApplication: No such file or directory
#include <QApplication>
^~~~~~~~~~~~~~
compilation terminated.
$
Can anyone supply a clue? Have I got missing source files? Do I need to do a special dance?
Linux From Scratch 8.1, with Qt, Qt web engine and Qupzilla installed already.
Last edited by jr_bob_dobbs; 03-16-2018 at 09:59 PM.
Linux From Scratch 8.1, with Qt, Qt web engine and Qupzilla installed already.
Are these the development libraries? As you use LFS, which I do not have any experience with, I “may presume” that you compiled the Qt-libraries yourself. If not, either do that or get whatever qualifies as a Qt-development environment under LFS.
And [Aheam; cleaning my throat], could you modify the thread-title to give a better hint on the topic, which is more compilation- than application-related.
Just remove the #if/#endif and leave the #include and the QPrinter error goes away at line 285 allowing you to save the OP to pdf.
You also need to add "Qt5PrintSupport" to the pkg-config command like so:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.