x11 icon indicating copy to clipboard operation
x11 copied to clipboard

Not building with Dub

Open JonathanILevi opened this issue 7 years ago • 3 comments
trafficstars

I cannot get this to compile using dub. (I am on Linux Mint, using Dmd with Dub)

I get this error.

""" Linking... /usr/bin/ld: cannot find -lX11 collect2: error: ld returned 1 exit status Error: linker exited with status 1 /usr/bin/dmd failed with exit code 1. """

I looks like it cannot find some file that it needs to link. So I tried putting the compiled "X11.a" in local directories (though on hind sight I doubt that had to do with the problem). What else is it looking for? Does it need some compiled C library? Where do I get this. Maybe I am just a noob a Linux...

Thanks for you help, in advance,

JonathanILevi avatar May 07 '18 21:05 JonathanILevi

You must setup the package providing libx11.a. Don't know the package name under Mint. Maybe x11-dev

ghost avatar May 08 '18 16:05 ghost

I had the same issue. I don't think most distros ship a statically linked libx11, so you would have to build it yourself.

weskerfoot avatar Nov 26 '19 22:11 weskerfoot

It looks like libx11 isn't installed on your distro.

nomad-software avatar Nov 27 '19 09:11 nomad-software