CMake 构建时出错:FREETYPE_LIBRARY 中缺少项目

问题描述 投票:0回答:0

我正在尝试在运行于 wsl-ubuntu 上的 Microsoft Visual Code 上安装测试程序(https://github.com/o-reo/push_swap_visualizer)。 该程序的开发人员说,为了安装,我需要从 github 克隆该程序,然后运行命令“cmake ...” 此测试程序还需要 C++17、cmake、SFML 和 ImGui。 当我运行“cmake ...”时,我收到一条错误消息:

-- Fetching ImGui-SFML...
-- Found ImGui v1.82 in /home/aputiev/projects/03/push_swap_test/push_swap_visualizer/build/_deps/imgui-src
-- Fetching SFML...
-- libudev stable: 0
-- Found UDev: /usr/lib/x86_64-linux-gnu/libudev.so
--    include: /usr/include
CMake Error at build/_deps/sfml-src/cmake/Macros.cmake:296 (message):
  Missing item in FREETYPE_LIBRARY
Call Stack (most recent call first):
  build/_deps/sfml-src/src/SFML/Graphics/CMakeLists.txt:137 (sfml_find_package)

我还安装了 cmake 和 SFML。和带有“sudo apt install libssl-dev”的libssl-dev库 我对编程完全陌生。你能告诉我如何解决这个问题吗?

linux ubuntu cmake sfml freetype
© www.soinside.com 2019 - 2024. All rights reserved.