Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Trial project no longer working with Small Business license
Qt 6.11 is out! See what's new in the release blog

Trial project no longer working with Small Business license

Scheduled Pinned Locked Moved Solved General and Desktop
16 Posts 4 Posters 1.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bob K.
    wrote on last edited by
    #7

    I'm new so I had to wait 10 minutes before I could reply and didn't see your message.

    For kits I have:

    Auto-detected: Qt 6.3.2 MinGW 64-bit (default)
    Manual: n/a

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #8

      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.

      1 Reply Last reply
      0
      • B Offline
        B Offline
        Bob K.
        wrote on last edited by
        #9

        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 environment

        I'm not sure where those options are located.

        1 Reply Last reply
        0
        • cristian-adamC Offline
          cristian-adamC Offline
          cristian-adam
          wrote on last edited by
          #10

          You don't need to set QT_DIR to anything.

          All you have to do, is make sure that you Kit has a Qt Version:

          alt text

          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_64

          Note that there is no lib/cmake/Qt6 or anything like that, just C:/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_DIR CMake 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.

          1 Reply Last reply
          1
          • B Offline
            B Offline
            Bob K.
            wrote on last edited by
            #11

            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**)':

            1 Reply Last reply
            0
            • cristian-adamC Offline
              cristian-adamC Offline
              cristian-adam
              wrote on last edited by
              #12

              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.

              1 Reply Last reply
              0
              • B Offline
                B Offline
                Bob K.
                wrote on last edited by
                #13

                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'

                Christian EhrlicherC 1 Reply Last reply
                0
                • cristian-adamC Offline
                  cristian-adamC Offline
                  cristian-adam
                  wrote on last edited by
                  #14

                  Doing a websearch resulted in a post on this forum: https://forum.qt.io/topic/53850/undefined-reference-to-vtable-for-mainwindow

                  1 Reply Last reply
                  0
                  • B Bob K.

                    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'

                    Christian EhrlicherC Online
                    Christian EhrlicherC Online
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on last edited by
                    #15

                    @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

                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                    Visit the Qt Academy at https://academy.qt.io/catalog

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      Bob K.
                      wrote on last edited by
                      #16

                      I appreciate everyone's suggestions, but at this point I'm going to re-create the project from scratch.

                      Thanks everyone,
                      Bob K.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved