Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failure to find x11 on nana cmake

Tags:

I am loading up nana source in CLion and cmake gives me the an error saying x11 is set to NOTFOUND

I have tried installing x11 dev libs on ubuntu but it has not helped :/

EDIT: I have fixed the issue above by installing (2nd Code block)

sudo apt install libxft-dev

however now I am seeing the following error (1st Code Block)

CODE BLOCK 1

fatal error: X11/Xcursor/Xcursor.h: No such file or directory
 #include <X11/Xcursor/Xcursor.h>
          ^~~~~~~~~~~~~~~~~~~~~~~

CODE BLCOK 2

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/home/jirubizu/Downloads/nana_hotfix/X11_Xft_INCLUDE_PATH
   used as include directory in directory /home/jirubizu/Downloads/nana_hotfix
X11_Xft_LIB (ADVANCED)
    linked by target "nana" in directory /home/jirubizu/Downloads/nana_hotfix

expected to compile but for some reason its not

like image 749
ジルビズ Avatar asked May 25 '19 22:05

ジルビズ


1 Answers

Try it before the load:

sudo apt install libxcursor-dev
like image 124
javad m Avatar answered Oct 05 '22 23:10

javad m