On Sun, 27 Nov 2016 06:37:01 -0600 Leslie Turriff jlturriff@mail.com wrote:
On 2016-11-27 06:03:30 Michele Calgaro wrote:
On 2016/11/27 11:11 AM, Leslie Turriff wrote:
On 2016-11-17 07:17:00 Michele Calgaro wrote:
On 2016/11/17 01:02 PM, Leslie Turriff wrote:
Hi, I'm trying to learn to write a GUI app using the book "C++ GUI Programming with Qt 3", which of course is not written with Trinity in
[...]
So, different, but still not working. I searched for qapplication.h and found it in /usr/include/tqt/QT/, but adding -I/usr/include/tqt/QT/ to the Makefile INCPATH made no difference.
@06:32:33,leslie@pinto.sixys.site ~/Documents/SourceCode/QT/Tutorial1 $ make
g++ -c -O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -Wall -W -O2 -DQT_NO_DEBUG -I/usr/share/tqt3/mkspecs/default -I. -I. -I/usr/include -I/usr/include/tqt3 -I/usr/include/tqt/QT/ -o main.o main.cpp
main.cpp:7:26: fatal error: qapplication.h: No such file or directory #include <qapplication.h> ^ compilation terminated. Makefile:67: recipe for target 'main.o' failed make: *** [main.o] Error 1
If I had to guess:
For anything with a "q" prefix, check for an equivalent with a "tq" prefix (in this case, "tqapplication.h"), and if it exists, use the "tq" version. And in general, using things in the QT subdirectory without going through a wrapper outside it may not be a good idea.
We used to have a KDE3 -> TDE application conversion tool--it's probably still in git somewhere. While it wasn't perfect, studying it might give you some idea of what changes you need to make.
E. Liddell