I followed these steps (with QT version 6) and ran into the following error: "This application failed to start because no Qt Platform plugin could be initialized".
Best series I could find on cmake. Small improvement. Can specify include directory path for library as just "include' without using CMAKE_CURRENT_SOURCE_DIR. If it works for add_library command, it works for other commands. ``` add_library(libmath STATIC supermath.cpp) target_include_directories(libmath PUBLIC include) ```
It'd be nice if you added a CMake + C++20 Modules to the CMake Playlist. One using partitions [math primary module divided in add and mult module partitions] and one using implementation units [e.g. you have the interface in .ixx but defines it in a .cpp file. Just defines it. No `export` keyword. Like: `module <moduleyouareimplementing>; // definitions ]. Thank you.
Thanks for the input. We're working on updates to C++23 using CMake Vcpkg and some other stuff and modules are used together with CMake. It'll be a few months before the videos are out in a course though. Wish me luck :-)
that is ausume this guid and pleas attach CMakeFileList and Preset Config and attach debugger configuration for VS Code in Ubuntu OS Required is This Guid
Thank you very much. I am unable to express my overwhelming happiness. When that problem was solved and I was finally able to open my program manually and independently without having to go to Qt Creator, I screamed loudly from happiness and entered an intense state of joy. Thank you.
I've got this error and I'm so confused: Exception has occurred: FATAL_ERROR CMake Error at C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1907 (message): Build step for fmt failed: 1 Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:1609 (__FetchContent_populateSubbuild) C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:2134:EVAL:2 (__FetchContent_doPopulation) C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:2134 (cmake_language) C:/Program Files/CMake/share/cmake-3.30/Modules/FetchContent.cmake:2373 (__FetchContent_Populate) CMakeLists.txt:14 (FetchContent_MakeAvailable) EDIT: upon looking into it more the fact i have this in my output could give more info [cmake] Performing download step (git clone) for 'fmt-populate' [cmake] Cloning into 'fmt-src'... [cmake] fatal: detected dubious ownership in repository at 'H:/C++ project/Cmake/build/_deps/fmt-src' [cmake] 'H:/C++ project/Cmake/build/_deps/fmt-src' is on a file system that does not record ownership [cmake] To add an exception for this directory, call: [cmake] git config --global --add safe.directory 'H:/C++ project/Cmake/build/_deps/fmt-src' [cmake] CMake Error at fmt-subbuild/fmt-populate-prefix/tmp/fmt-populate-gitclone.cmake:61 (message): [cmake] Failed to checkout tag: '10.1.1' so i ran the git config but i don't think it's working still?
Please may you kindly assist me. When opening the terminal window (there is no option for terminal preview on my computer) I type in Qt as followed but unfortunately, the feed back says: the term is not recognised as the name of a cmdlet, function, script file, or operable program.
Amazing video! Qt Creator has a built-in preference section for clang-format, and I'm curious how this custom target and clang file would integrate with that. I would appreciate it if you could create a video demonstrating how to make this compatible with Qt Creator, as it behaves inconsistently-sometimes recognizing the file automatically and other times ignores it.
Never understood why people start tutorials with "Let's create a new project!", most of us have a project, lets go! Its like if I taught somebody how to setup some windows feature and started my video with "Ok, let's start by installing windows"
Thank you I was asking how I can compile Qt cpp app in one exe with only used dependencies for example app have only a button why I would have huge file size ?