[已解决]paru -S lightlyshaders-git时CMake错误

arch系统,已经更新到最新。plasma6.6.1。已经安装了qt6, kf6, kwin

主要的报错是:

CMake Error at src/liblshelper/CMakeLists.txt:15 (target_link_libraries):
Target "lshelper" links to:
Qt6::CorePrivate
but the target was not found. Possible reasons include:
* There is a typo in the target name.
* A find_package call is missing for an IMPORTED target.
* An ALIAS target is missing.

完整输出在debug.log:

debug.log (8.3 KB)

报错中提到CMakeLists.txt应该是这个:

CMakeLists.txt (859 字节)

使用https://github.com/a-parhom/LightlyShaders中的手动安装命令同样报错,输出相同。

1 Like

我在本地给CMakeLists.txt加上CorePrivate并手动安装,但出现了新的报错:

debug.log (11.7 KB)

我试着修改PKGBUILD,用修改后的仓库构建软件包,同样是这个报错。

所以我链接的那个pull request里改了很多呀。你把它作为补丁下回来然后自己打上再构建吧。

问题解决了。十分感谢!