However, when I try to run Test.exe outside of Qt Creator it complains that "The program can't start because Qt5Core.dll is missing from your computer. Try reinstalling the program to fix this program.", "The code execution cannot proceed because Qt6Widgets.dll (and another for Qt6Core.dll) was not found. Reinstalling the program may fix this problem." Well, files are obviously at the location the are presumed to be (-L location in the build call), it builds correctly, but when I run the .exe I get Qt6Qml.dll, Qt6Core.dll, Qt6Gui.dll and Qt6SerialPort.dll were not found. Well yes. Building builds your exe. That exe needs the dependant Qt dlls to run, so you need to deploy those dlls to your app folder. You can copy them manually or use windeployqt to do it for you., /home/michal/Qt6/6.3.1/gcc_64/lib/cmake/Qt6Core/Qt6CoreConfig.cmake but it set Qt6Core_FOUND to FALSE so package "Qt6Core" is considered to be NOT FOUND. Reason given by package: Target "Qt6::Core" was not found. Call Stack (most recent call first): CMakeLists.txt:4 (find_package)-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so, At first it couldn't find it so I included the path in my environment variables and now I can run it from anywhere but it gives me the error "Could Not Find Qt6Core.dll" as soon as I run it. I created another path environment variable to the lib folder where it exists but still get the same error., Found package configuration file: /home/michal/Qt/6.3.1/gcc_64/lib/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find Qt component "Core". Expected Config file at "/home/michal/Qt/6.3.1/gcc_64/lib/cmake/Qt6Core/Qt6CoreConfig.cmake" exists. Thanks in .