Trial project no longer working with Small Business license
-
You select "Auto-detected: Qt 6.3.2 MinGW 64-bit (default)" and then press apply at the bottom of qt creator.
then build.
click projects->Build in qtcreator
under Build Environment
click details of Use system environment and you can see QTDIR is defined as env variable. -
I selected "Auto-detected: Qt 6.3.2 MinGW 64-bit (default)" and then pressed Apply.
And then build, and still have the error.To be honest, I can't find the options:
projects->Build in qtcreator
Build Environment
Use system environmentI'm not sure where those options are located.
-
You don't need to set
QT_DIRto anything.All you have to do, is make sure that you Kit has a Qt Version:

Your CMake project will have in the Initial Configuration
-DCMAKE_PREFIX_PATH:PATH=%{Qt:QT_INSTALL_PREFIX}, which will be expanded in current configuration to something like-DCMAKE_PREFIX_PATH:PATH=C:/Qt/6.3.2/mingw_64Note that there is no
lib/cmake/Qt6or anything like that, justC:/Qt/6.3.2/mingw_64.That's all that CMake needs in order to find the Qt6 package.
You don't need to change any environment variables, set any
QT_DIRCMake variables.When in doubt just click on the Re-configure with Initial Parameters button, which will clear you CMake configuration and configure the project from scratch.
-
Thanks cristian-adam. I was able to verify that Qt version. Found the Initial Configuration. Pressed the Re-configure with Initial Parameters.
Now I'm getting the following error:
:-1: error: CMakeFiles/Photography.dir/Photography_autogen/mocs_compilation.cpp.obj:
in function `MainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)': -
Your CMake project is configured with
set(CMAKE_AUTOMOC ON), which is not 100% compatible with all Qt software. See more about AUTOMOC in the documentation.You will have to either turn off AUTOMOC generally, or specifically for "bad" source files with:
set_source_files_properties(bad_source_file PROPERTIES SKIP_AUTOMOC ON)But if you are skipping AUTOMOC, you will have to use qt_wrap_cpp for the source files that require moc handling.
-
I've tried the above AUTOMOC settings, and I keep getting the following error:
:-1: error: CMakeFiles/Photography.dir/mainwindow.cpp.obj:mainwindow.cpp:(.rdata$.refptr._ZTV10MainWindow[.refptr._ZTV10MainWindow]+0x0):
undefined reference to `vtable for MainWindow' -
Doing a websearch resulted in a post on this forum: https://forum.qt.io/topic/53850/undefined-reference-to-vtable-for-mainwindow
-
I've tried the above AUTOMOC settings, and I keep getting the following error:
:-1: error: CMakeFiles/Photography.dir/mainwindow.cpp.obj:mainwindow.cpp:(.rdata$.refptr._ZTV10MainWindow[.refptr._ZTV10MainWindow]+0x0):
undefined reference to `vtable for MainWindow'@Bob-K said in Trial project no longer working with Small Business license:
I've tried the above AUTOMOC settings, and I keep getting the following error:
And did you add qt_wrap_cpp() to moc your mainwindow.h as written by @cristian-adam ? Please post your current CMakeLists.txt