wizard-made creator plugin builds fail
-
so i'm trying to build a creator plugin (windows, msvc 2019 64-bit, qt 5.15.2). i just made a new one with the wizard. it doesn't build. cmake fails with:
Could not find a package configuration file provided by "QtCreator" with any of the following names: QtCreatorConfig.cmake qtcreator-config.cmake Add the installation prefix of "QtCreator" to CMAKE_PREFIX_PATH or set "QtCreator_DIR" to a directory containing one of the above files. If "QtCreator" provides a separate development package or SDK, be sure it has been installed.
i built creator just fine (shadow build, 4.14.0 from git). i tried adding my qtcreator source path, its src subdir, its bin subdir, my qtcreator build path, its src subdir, its bin subdir, and my actual installed-with-the-installer qtcreator (4.14.0) path, its src subdir, and its bin subdir. all fail.
in fact, neither QtCreatorConfig.cmake nor qtcreator-config.cmake exist anywhere on my machine.
so...... what is it expecting me to do? i sort of expected the wizard-created plugin to build right out of the box. i've been referring to https://doc.qt.io/qtcreator-extending/first-plugin.html as well.
-
You most likely didn't set the right 'Qt Creator build' path in the wizard. How does the beginning of the generated CMakeLists.txt file look for you? It should contain something like
list(APPEND CMAKE_PREFIX_PATH "C:/dev/creator/master/build-qt-creator-6.2.2-amd64")
where the path should point to the local directory you built Qt Creator in.