x11
x11 copied to clipboard
Not building with Dub
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,
You must setup the package providing libx11.a. Don't know the package name under Mint. Maybe x11-dev
I had the same issue. I don't think most distros ship a statically linked libx11, so you would have to build it yourself.
It looks like libx11 isn't installed on your distro.