Results 1 to 4 of 4

Thread: Xlib.h: No such file or directory

  1. #1
    Join Date
    Jan 2007
    Beans
    18

    Xlib.h: No such file or directory

    I'm trying to install something called morse2led. I believe that it is possible on ubuntu, but seem to be having difficulty. Please forgive my ignorance, but this is the error that I am getting.

    root@Conroe:/home/dan/Desktop/morse2led-1.0# make
    gcc -o blinker -O2 -Wall -L /usr/X11R6/lib/ -lX11 -I /usr/X11R6/include/ -DLINUX blinker.c
    blinker.c:34:22: error: X11/Xlib.h: No such file or directory
    blinker.c:117: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

    so I believe that a required header file Xlib.h is missing, I've looked about and can't find it "locate Xlib.h" nothing. Should this be installed as default with ubuntu? or am I missing something? (I'm missing many things) but what specifically am I missing?

    If I look in the X11R6 directory all I see is the directory "bin"

    Thanks.

  2. #2
    Join Date
    Oct 2007
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Xlib.h: No such file or directory

    Try:
    Code:
    sudo apt-get install libx11-dev
    Then try your compile again.
    Spiralinear: Humanity & Machines
    RUNNING: Fedora | FreeBSD | Windows 7

  3. #3
    Join Date
    Jan 2007
    Beans
    18

    Re: Xlib.h: No such file or directory

    yep, that's what did it.

    Thanks.

  4. #4
    Join Date
    Aug 2009
    Beans
    5

    Re: Xlib.h: No such file or directory

    Quote Originally Posted by gunterhausfrau View Post
    yep, that's what did it.

    Thanks.
    Hey,

    I'm trying to get the morse2led package to work too. I got it to compile and install, but blinker doesn't seem to have any effect. Were you able to get it to work?

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •