I used the Qt Creator function to add existing files:
qcustomplot.h
qcustomplot.cpp
Using Qt Creator to open the wfview.pro file and build, I have this one error message:
error: cannot find -lqcustomplotd
System:
OS: Ubuntu 20.04.2 LTS
Qt 5: Qt 5.12.5
Output from:
grh@laptop-001:~$ sudo apt-get install libqcustomplot2.0 libqcustomplot-doc libqcustomplot-dev
[sudo] password for grh:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libqcustomplot-dev is already the newest version (2.0.1+dfsg1-1build1).
libqcustomplot-doc is already the newest version (2.0.1+dfsg1-1build1).
libqcustomplot2.0 is already the newest version (2.0.1+dfsg1-1build1).
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
grh@laptop-001:~$
You shouldnât need to add qcustomplot to Qt Creator, it is best to link against the one installed. My guess is that somehow this got messed up when you added the files in.
All that said, you might want to try the automated build script, which usually works well for debian-based systems like ubuntu.
(BTW - The first computer I programmed was an Elliott 903 in 1969.)
Will this download/build script leave the source and the wfview.pro file in the correct place so that I can open the wfview.pro with the Qt 5 Creator and work on the source code?
What version of Qt 5 for the Linux Desktop should I use to build the wfview against?
I have 5.12.5 GCC 64-bit set up at the moment. Do I need to use the Qt Maintenance tool to change to a different release version of the libraries?
Thanks for producing what looks like a very clean and interesting project. I particularly liked the statement on the deep dive podcast about the similarity between the Linux experience and having schematics for our radios.
I enjoyed reading about that Elliott 903! What a machine! I donât suppose it will run wfview very wellâŚ
What I would recommend, is installing wfview using the script first. If that works, then you can be sure your machine has all the dependencies installed, and then you can proceed to using qt creator â which is a great IDE. Most of the dialog boxes can be edited from qt creator and of course the code highlighting is great. FYI you may need to turn off âclangâ plugins to get the syntax highlighting to work correctly.
When you get the script working and it compiles and runs, you will notice a folder in the directory of the script, which contains the source code. Within that folder is the âwfview.proâ file that can be opened in qt creator. When you open it, configure the âdesktopâ build (just hit âconfigureâ in the screen that comes up). Once you do that, it should build just fine. Sometimes you may hit a glitch where Release builds, but Debug will not â or vice-versa. Let me know if that happens.
Mine is built against QT 5.9.5 on Linux Mint 19.2.
The bug youâre seeing is known, the qcustomplot library for debug probably isnât on your system. It isnât on mine either, and I have simply copied the regular qcustomplot to qcustomplotd (the âdâ means debug symbols).
You could download the qcustomplot source and build a debug version if you were so inclined, but I have not needed it thus far â itâs very good code.
Here is how the symlinks are set up in my system. Every libqcustomplot shared object points back to the one, single actual compiled file. You can use the sudo ln -s command to make new symlinks to get yours like mine. Once it is done, youâll be able to easily run wfview in full debug mode.