gpt4 book ai didi

CMake 找不到 X11 包

转载 作者:行者123 更新时间:2023-12-05 06:13:38 26 4
gpt4 key购买 nike

我正在尝试运行 verilog 模拟器“verilog-to-routing (vtr)”。构建 vtr 时,我无法启用图形。

出现一条警告消息:“EasyGL:无法找到所需的 X11 库(在 debian/ubuntu 上尝试 sudo apt-get install libx11-dev 进行安装)”。安装 libx11-dev 并不能解决问题。

在“vtr-verilog-to-routing-8.0.0/libs/libeasygl/CMakeLists.txt”文件中,有以下几行与此相关:

#Look for X11, font and cairo libraries 
message(STATUS "EasyGL: UNIX detected, looking for X11 and font libraries")
find_package(Fontconfig)
find_package(X11 COMPONENTS X11 Xft)
find_package(Freetype)
find_package(Cairo)

if(NOT X11_FOUND)
set(FOUND_EASYGL_DEPENDANCIES false)
message(WARNING "EasyGL: Failed to find required X11 library (on debian/ubuntu try 'sudo apt-get install libx11-dev' to install)")
endif()

当我执行 Makefile 时,会出现以下消息:

-- EasyGL: UNIX detected, looking for X11 and font libraries
-- Could NOT find X11 (missing: X11)
CMake Warning at libs/libeasygl/CMakeLists.txt:49 (message):
EasyGL: Failed to find required X11 library (on debian/ubuntu try 'sudo
apt-get install libx11-dev' to install)

-- EasyGL: graphics disabled

包 libx11-dev 已经安装。

这些是 CMakeCache.txt 文件中的相应行(我只包含了 NOTFOUND 路径):

//Path to a file.
X11_Xpm_INCLUDE_PATH:PATH=X11_Xpm_INCLUDE_PATH-NOTFOUND

//Path to a library.
X11_Xpm_LIB:FILEPATH=X11_Xpm_LIB-NOTFOUND

//Path to a file.
X11_Xss_INCLUDE_PATH:PATH=X11_Xss_INCLUDE_PATH-NOTFOUND

/Path to a library.
X11_Xss_LIB:FILEPATH=X11_Xss_LIB-NOTFOUND

//Path to a file.
X11_Xv_INCLUDE_PATH:PATH=X11_Xv_INCLUDE_PATH-NOTFOUND

//Path to a library.
X11_Xv_LIB:FILEPATH=X11_Xv_LIB-NOTFOUND

/Path to a file.
X11_Xxf86misc_INCLUDE_PATH:PATH=X11_Xxf86misc_INCLUDE_PATH-NOTFOUND

//Path to a library.
X11_Xxf86misc_LIB:FILEPATH=X11_Xxf86misc_LIB-NOTFOUND

//Path to a file.
X11_Xxf86vm_INCLUDE_PATH:PATH=X11_Xxf86vm_INCLUDE_PATH-NOTFOUND

//Path to a library.
X11_Xxf86vm_LIB:FILEPATH=X11_Xxf86vm_LIB-NOTFOUND

//Path to a file.
X11_xkbfile_INCLUDE_PATH:PATH=X11_xkbfile_INCLUDE_PATH-NOTFOUND

//Path to a library.
X11_xkbfile_LIB:FILEPATH=X11_xkbfile_LIB-NOTFOUND

当查看目录 usr/inlcude/X11 时,有一个 Xft 目录,看起来它正在创建它。在这里,没有任何 X11.h 文件或另一个 X11 目录。接下来是目录内容的图片:

contents of X11 directory

我正在使用 Ubuntu 20.04 和 verilog-to-routing 8.0.0。

我已经在 verilog-to-routing github ( https://github.com/verilog-to-routing/vtr-verilog-to-routing/issues/1461 ) 中打开了一个问题,但我猜这个问题与 cmake 更相关。

最佳答案

您可能需要安装更多软件包,例如:

apt-get install libxss-dev libxxf86vm-dev libxkbfile-dev libxv-dev

然后再次尝试 cmake 命令。

关于CMake 找不到 X11 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63240844/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com