I am trying to run the verilog simulator "verilog-to-routing (vtr). When building vtr, I am not able to enable the graphics.
A warning message appears: "EasyGL: Failed to find required X11 library (on debian/ubuntu try sudo apt-get install libx11-dev
to install)". Installing libx11-dev is not solving the problem.
In the file "vtr-verilog-to-routing-8.0.0/libs/libeasygl/CMakeLists.txt" there are the following lines related to this:
#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()
When I execute the Makefile the following message appears:
-- 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
The packet libx11-dev is already installed.
These are the corresponding lines in the CMakeCache.txt file (I have only included the NOTFOUND paths):
//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
When looking in the directory usr/inlcude/X11 there is a Xft directory, and it seems like it is founding it. Here, there is not any X11.h file or another X11 directory. Next there is a picture of the contents of the directory:
I am using Ubuntu 20.04 and verilog-to-routing 8.0.0.
I have opened an issue in the verilog-to-routing github (https://github.com/verilog-to-routing/vtr-verilog-to-routing/issues/1461), but I guess this problem is more related to cmake.
2
Answers
You probably need to install a few more packages such as:
then try the cmake command again.
In my case, I needed to include theses packages:
It worked after these additional installs