after installing he can't find but the file is there

the error messsage is like “…/out/bsApplication: /lib/x86_64-linux-gnu/ version `Qt_6.6’ not found (required by …/out/bsApplication)” when i try to run the exe (linux).

here is my CMakeLists.txt: debian Pastezone

It found, but it is too old. You built against 6.6, but at runtime it finds something older (whatever you have installed distro-wide). I think you may need to play with RPATH settings; of note CMAKE_INSTALL_RPATH_USE_LINK_PATH is probably the easiest here.


set_target_properties(${PROJECT_NAME} PROPERTIES INSTALL_RPATH “${QT6_PATH}/lib”)

and now it’s working!Ty for pointing me in the right direction

You probably want set_property(TARGET ${PROJECT_NAME} APPEND …), but that works if you don’t have any other project-wide RPATH settings.