Skip to content
This repository has been archived by the owner on Oct 17, 2020. It is now read-only.

Not building with Dub #24

Open
JonathanILevi opened this issue May 7, 2018 · 3 comments
Open

Not building with Dub #24

JonathanILevi opened this issue May 7, 2018 · 3 comments

Comments

@JonathanILevi
Copy link

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,

@ghost
Copy link

ghost commented May 8, 2018

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

@weskerfoot
Copy link

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

@nomad-software
Copy link
Owner

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants