<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Trial project no longer working with Small Business license]]></title><description><![CDATA[<p dir="auto">I was developing a project with the Trial version of QT. I have since purchased a Small Business license, and the project is no longer compiling. Here is the error I'm getting:</p>
<p dir="auto">D:\qt\EES\Photography\CMakeLists.txt:14: error: Could not find a package configuration file provided by "QT"<br />
with any of the following names:<br />
Qt6Config.cmake<br />
qt6-config.cmake<br />
Qt5Config.cmake<br />
qt5-config.cmake</p>
<p dir="auto">Add the installation prefix of "QT" to CMAKE_PREFIX_PATH or set "QT_DIR" to a directory containing one of the above files.<br />
If "QT" provides a separate development package or SDK, be sure it has been installed.</p>
<p dir="auto">I'm not certain where to redirect the QT_DIR prefix. Any ideas?<br />
Thank you,<br />
Bob K.</p>
]]></description><link>https://forum.qt.io/topic/139526/trial-project-no-longer-working-with-small-business-license</link><generator>RSS for Node</generator><lastBuildDate>Mon, 06 Apr 2026 06:17:48 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/139526.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Sep 2022 13:45:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Trial project no longer working with Small Business license on Fri, 23 Sep 2022 20:27:09 GMT]]></title><description><![CDATA[<p dir="auto">I appreciate everyone's suggestions, but at this point I'm going to re-create the project from scratch.</p>
<p dir="auto">Thanks everyone,<br />
Bob K.</p>
]]></description><link>https://forum.qt.io/post/730002</link><guid isPermaLink="true">https://forum.qt.io/post/730002</guid><dc:creator><![CDATA[Bob K.]]></dc:creator><pubDate>Fri, 23 Sep 2022 20:27:09 GMT</pubDate></item><item><title><![CDATA[Reply to Trial project no longer working with Small Business license on Fri, 23 Sep 2022 19:51:46 GMT]]></title><description><![CDATA[<p dir="auto">@Bob-K said in <a href="/post/729993">Trial project no longer working with Small Business license</a>:</p>
<blockquote>
<p dir="auto">I've tried the above AUTOMOC settings, and I keep getting the following error:</p>
</blockquote>
<p dir="auto">And did you add qt_wrap_cpp() to moc your mainwindow.h as written by <a class="plugin-mentions-user plugin-mentions-a" href="/user/cristian-adam">@<bdi>cristian-adam</bdi></a> ? Please post your current CMakeLists.txt</p>
]]></description><link>https://forum.qt.io/post/729996</link><guid isPermaLink="true">https://forum.qt.io/post/729996</guid><dc:creator><![CDATA[Christian Ehrlicher]]></dc:creator><pubDate>Fri, 23 Sep 2022 19:51:46 GMT</pubDate></item><item><title><![CDATA[Reply to Trial project no longer working with Small Business license on Fri, 23 Sep 2022 19:51:24 GMT]]></title><description><![CDATA[<p dir="auto">Doing a websearch resulted in a post on this forum: <a href="https://forum.qt.io/topic/53850/undefined-reference-to-vtable-for-mainwindow">https://forum.qt.io/topic/53850/undefined-reference-to-vtable-for-mainwindow</a></p>
]]></description><link>https://forum.qt.io/post/729995</link><guid isPermaLink="true">https://forum.qt.io/post/729995</guid><dc:creator><![CDATA[cristian-adam]]></dc:creator><pubDate>Fri, 23 Sep 2022 19:51:24 GMT</pubDate></item><item><title><![CDATA[Reply to Trial project no longer working with Small Business license on Fri, 23 Sep 2022 19:43:17 GMT]]></title><description><![CDATA[<p dir="auto">I've tried the above AUTOMOC settings, and I keep getting the following error:</p>
<p dir="auto">:-1: error: CMakeFiles/Photography.dir/mainwindow.cpp.obj:mainwindow.cpp:(.rdata$.refptr._ZTV10MainWindow[.refptr._ZTV10MainWindow]+0x0):<br />
undefined reference to `vtable for MainWindow'</p>
]]></description><link>https://forum.qt.io/post/729993</link><guid isPermaLink="true">https://forum.qt.io/post/729993</guid><dc:creator><![CDATA[Bob K.]]></dc:creator><pubDate>Fri, 23 Sep 2022 19:43:17 GMT</pubDate></item><item><title><![CDATA[Reply to Trial project no longer working with Small Business license on Fri, 23 Sep 2022 19:13:37 GMT]]></title><description><![CDATA[<p dir="auto">Your CMake project is configured with <code>set(CMAKE_AUTOMOC ON)</code>, which is not 100% compatible with all Qt software. See more about AUTOMOC in the <a href="https://cmake.org/cmake/help/latest/prop_tgt/AUTOMOC.html" target="_blank" rel="noopener noreferrer nofollow ugc">documentation</a>.</p>
<p dir="auto">You will have to either turn off AUTOMOC generally, or specifically for "bad" source files with:</p>
<pre><code class="language-cmake">set_source_files_properties(bad_source_file PROPERTIES SKIP_AUTOMOC ON)
</code></pre>
<p dir="auto">But if you are skipping AUTOMOC, you will have to use <a href="https://doc.qt.io/qt-6/qt-wrap-cpp.html" target="_blank" rel="noopener noreferrer nofollow ugc">qt_wrap_cpp</a> for the source files that require moc handling.</p>
]]></description><link>https://forum.qt.io/post/729991</link><guid isPermaLink="true">https://forum.qt.io/post/729991</guid><dc:creator><![CDATA[cristian-adam]]></dc:creator><pubDate>Fri, 23 Sep 2022 19:13:37 GMT</pubDate></item><item><title><![CDATA[Reply to Trial project no longer working with Small Business license on Fri, 23 Sep 2022 18:29:44 GMT]]></title><description><![CDATA[<p dir="auto">Thanks cristian-adam. I was able to verify that Qt version. Found the Initial Configuration. Pressed the Re-configure with Initial Parameters.</p>
<p dir="auto">Now I'm getting the following error:</p>
<p dir="auto">:-1: error: CMakeFiles/Photography.dir/Photography_autogen/mocs_compilation.cpp.obj:<br />
in function `MainWindow::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)':</p>
]]></description><link>https://forum.qt.io/post/729987</link><guid isPermaLink="true">https://forum.qt.io/post/729987</guid><dc:creator><![CDATA[Bob K.]]></dc:creator><pubDate>Fri, 23 Sep 2022 18:29:44 GMT</pubDate></item><item><title><![CDATA[Reply to Trial project no longer working with Small Business license on Fri, 23 Sep 2022 17:42:05 GMT]]></title><description><![CDATA[<p dir="auto">You don't need to set <code>QT_DIR</code> to anything.</p>
<p dir="auto">All you have to do, is make sure that you Kit has a Qt Version:</p>
<p dir="auto"><img src="https://bugreports.qt.io/secure/attachment/131039/qtcreator-mingw-qt.png" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">Your CMake project will have in the <em>Initial Configuration</em> <code>-DCMAKE_PREFIX_PATH:PATH=%{Qt:QT_INSTALL_PREFIX}</code>, which will be expanded in current configuration to something like <code>-DCMAKE_PREFIX_PATH:PATH=C:/Qt/6.3.2/mingw_64</code></p>
<p dir="auto">Note that there is no <code>lib/cmake/Qt6</code> or anything like that, just <code>C:/Qt/6.3.2/mingw_64</code>.</p>
<p dir="auto">That's all that CMake needs in order to find the Qt6 package.</p>
<p dir="auto">You don't need to change any environment variables, set any <code>QT_DIR</code> CMake variables.</p>
<p dir="auto">When in doubt just click on the <em>Re-configure with Initial Parameters</em> button, which will clear you CMake configuration and configure the project from scratch.</p>
]]></description><link>https://forum.qt.io/post/729985</link><guid isPermaLink="true">https://forum.qt.io/post/729985</guid><dc:creator><![CDATA[cristian-adam]]></dc:creator><pubDate>Fri, 23 Sep 2022 17:42:05 GMT</pubDate></item><item><title><![CDATA[Reply to Trial project no longer working with Small Business license on Fri, 23 Sep 2022 17:14:36 GMT]]></title><description><![CDATA[<p dir="auto">I selected "Auto-detected: Qt 6.3.2 MinGW 64-bit (default)" and then pressed Apply.<br />
And then build, and still have the error.</p>
<p dir="auto">To be honest, I can't find the options:<br />
projects-&gt;Build in qtcreator<br />
Build Environment<br />
Use system environment</p>
<p dir="auto">I'm not sure where those options are located.</p>
]]></description><link>https://forum.qt.io/post/729984</link><guid isPermaLink="true">https://forum.qt.io/post/729984</guid><dc:creator><![CDATA[Bob K.]]></dc:creator><pubDate>Fri, 23 Sep 2022 17:14:36 GMT</pubDate></item><item><title><![CDATA[Reply to Trial project no longer working with Small Business license on Fri, 23 Sep 2022 16:46:57 GMT]]></title><description><![CDATA[<p dir="auto">You select "Auto-detected: Qt 6.3.2 MinGW 64-bit (default)" and then press apply at the bottom of qt creator.<br />
then build.<br />
click projects-&gt;Build in qtcreator<br />
under Build Environment<br />
click details of Use system environment and you can see QTDIR is defined as env variable.</p>
]]></description><link>https://forum.qt.io/post/729982</link><guid isPermaLink="true">https://forum.qt.io/post/729982</guid><dc:creator><![CDATA[JoeCFD]]></dc:creator><pubDate>Fri, 23 Sep 2022 16:46:57 GMT</pubDate></item><item><title><![CDATA[Reply to Trial project no longer working with Small Business license on Fri, 23 Sep 2022 16:27:19 GMT]]></title><description><![CDATA[<p dir="auto">I'm new so I had to wait 10 minutes before I could reply and didn't see your message.</p>
<p dir="auto">For kits I have:</p>
<p dir="auto">Auto-detected: Qt 6.3.2 MinGW 64-bit (default)<br />
Manual: n/a</p>
]]></description><link>https://forum.qt.io/post/729980</link><guid isPermaLink="true">https://forum.qt.io/post/729980</guid><dc:creator><![CDATA[Bob K.]]></dc:creator><pubDate>Fri, 23 Sep 2022 16:27:19 GMT</pubDate></item><item><title><![CDATA[Reply to Trial project no longer working with Small Business license on Fri, 23 Sep 2022 16:04:21 GMT]]></title><description><![CDATA[<p dir="auto">can you build from command line?</p>
]]></description><link>https://forum.qt.io/post/729977</link><guid isPermaLink="true">https://forum.qt.io/post/729977</guid><dc:creator><![CDATA[JoeCFD]]></dc:creator><pubDate>Fri, 23 Sep 2022 16:04:21 GMT</pubDate></item><item><title><![CDATA[Reply to Trial project no longer working with Small Business license on Fri, 23 Sep 2022 15:39:33 GMT]]></title><description><![CDATA[<p dir="auto">Ugh... this is what I entered:</p>
<p dir="auto">QT_DIR=C:/Qt/6.3.2/mingw_64/lib/cmake/Qt6/lib/cmake/Qt6</p>
<p dir="auto">There is no Qt5 in that folder.</p>
<p dir="auto">Here is my CMakeLists.txt file:</p>
<pre><code>cmake_minimum_required(VERSION 3.5)

project(Photography VERSION 0.1 LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)

#set(app_icon_resource_windows "${CMAKE_CURRENT_SOURCE_DIR}/eesIcon.qrc")

set(PROJECT_SOURCES
        main.cpp
        mainwindow.cpp
        mainwindow.h
        mainwindow.ui
        resources.qrc
)

if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
    qt_add_executable(Photography
        MANUAL_FINALIZATION
        ${PROJECT_SOURCES}
    )
# Define target properties for Android with Qt 6 as:
#    set_property(TARGET Photography APPEND PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR
#                 ${CMAKE_CURRENT_SOURCE_DIR}/android)
# For more information, see https://doc.qt.io/qt-6/qt-add-executable.html#target-creation
else()
    if(ANDROID)
        add_library(Photography SHARED
            ${PROJECT_SOURCES}
        )
# Define properties for Android with Qt 5 after find_package() calls as:
#    set(ANDROID_PACKAGE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/android")
    else()
        add_executable(Photography
            ${PROJECT_SOURCES}
        )
    endif()
endif()

target_link_libraries(Photography PRIVATE Qt${QT_VERSION_MAJOR}::Widgets)

set_target_properties(Photography PROPERTIES
    MACOSX_BUNDLE_GUI_IDENTIFIER my.example.com
    MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
    MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
    MACOSX_BUNDLE TRUE
    WIN32_EXECUTABLE TRUE
)

install(TARGETS Photography
    BUNDLE DESTINATION .
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})

if(QT_VERSION_MAJOR EQUAL 6)
    qt_finalize_executable(Photography)
endif()
</code></pre>
]]></description><link>https://forum.qt.io/post/729973</link><guid isPermaLink="true">https://forum.qt.io/post/729973</guid><dc:creator><![CDATA[Bob K.]]></dc:creator><pubDate>Fri, 23 Sep 2022 15:39:33 GMT</pubDate></item><item><title><![CDATA[Reply to Trial project no longer working with Small Business license on Fri, 23 Sep 2022 15:37:06 GMT]]></title><description><![CDATA[<p dir="auto">@Bob-K in qtcreator this is not needed. Have you selected Qt version on Manage kits? Try to make clean  to remove all contents in the project build dir since qt has been changed.</p>
<p dir="auto">But you do need to set this QT_DIR for cmake on Windows ENV(not in qt creator env)  in case cmake is run from command line to build your project.</p>
]]></description><link>https://forum.qt.io/post/729972</link><guid isPermaLink="true">https://forum.qt.io/post/729972</guid><dc:creator><![CDATA[JoeCFD]]></dc:creator><pubDate>Fri, 23 Sep 2022 15:37:06 GMT</pubDate></item><item><title><![CDATA[Reply to Trial project no longer working with Small Business license on Fri, 23 Sep 2022 15:22:53 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joecfd">@<bdi>JoeCFD</bdi></a> said in <a href="/post/729968">Trial project no longer working with Small Business license</a>:</p>
<blockquote>
<p dir="auto">QT_DIR=installed qt path/lib/cmake/Qt5</p>
</blockquote>
<p dir="auto">Still not working. I entered the following:</p>
<p dir="auto">In QT Creator: Edit | Preferences | System | Environment | Change<br />
Entered: QT_DIR=installed qt path/lib/cmake/Qt5</p>
<p dir="auto">Changed Qt5 to Qt6 and still didn't work.</p>
]]></description><link>https://forum.qt.io/post/729970</link><guid isPermaLink="true">https://forum.qt.io/post/729970</guid><dc:creator><![CDATA[Bob K.]]></dc:creator><pubDate>Fri, 23 Sep 2022 15:22:53 GMT</pubDate></item><item><title><![CDATA[Reply to Trial project no longer working with Small Business license on Fri, 23 Sep 2022 14:57:58 GMT]]></title><description><![CDATA[<p dir="auto">add this to ENV on Windows.<br />
QT_DIR=installed qt path/lib/cmake/Qt5</p>
]]></description><link>https://forum.qt.io/post/729968</link><guid isPermaLink="true">https://forum.qt.io/post/729968</guid><dc:creator><![CDATA[JoeCFD]]></dc:creator><pubDate>Fri, 23 Sep 2022 14:57:58 GMT</pubDate></item></channel></rss>