0

I'm building a Qt6 project using the following command

~/Qt/6.3.1/gcc_64/bin/qmake -o ~/nidb/bin/smtp/Makefile ~/nidb/src/smtp/SMTPEmail.pro -spec linux-g++

And it generates this error...

~/Qt/6.3.1/gcc_64/mkspecs/features/toolchain.prf:76: Variable QMAKE_CXX.COMPILER_MACROS is not defined.

This used to work fine on my Rocky Linux 8 machine, but now it's not working. I ran a yum update at some point in the last few weeks, but that's the only thing I can think of that changed. What are some other reasons it might have stopped working?

Greg B
  • 609
  • 6
  • 19
  • Do you build it using Qt Creator? It should give you a default qmake command that should work. If it doesn't work, maybe your install is broken? – JarMan Jun 21 '22 at 20:04
  • I tested that and it doesn't build using Qt Creator either... it used to, but not anymore. I wonder what happened to my Qt install. Thanks for the tip! – Greg B Jun 21 '22 at 20:46
  • Is the build directory clean? Do you have a .qmake.stash file lying around in ~, ~/nidb, ~/nidb/bin, ~/nidb/bin/smtp, ~/nidb/src or ~/nidb/src/smtp? If yes, try again after deleting it. – jobor Jun 22 '22 at 10:08
  • There were some .stash files, but I removed those. And I've actually removed all of the directories within ~/nidb/bin. Still the same error. I have tried completely uninstalling Qt, rebooting, and reinstalling Qt. But I suspect there is some vestige of Qt in the system because when I run the installer again, it has prefilled my Qt login info. – Greg B Jun 22 '22 at 17:38
  • I'm still running into this error unfortunately. I wasn't able to get my installation of Qt to work, so I built an entirely new VM and migrated the source code. After a few weeks of things working correctly, it stopped working again. Uninstalling/reinstalling Qt doesn't fix the issue. – Greg B Sep 06 '22 at 18:30

0 Answers0