Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux dependencies #685

Open
whitebyte opened this issue Oct 13, 2024 · 4 comments
Open

Linux dependencies #685

whitebyte opened this issue Oct 13, 2024 · 4 comments

Comments

@whitebyte
Copy link
Contributor

whitebyte commented Oct 13, 2024

I'm following https://github.com/buggins/dlangui/wiki/Getting-Started and the hello world app fails to build if zlib isn't installed. It started working after apt install zlib1g-dev (Ubuntu). Is it an actual Dlang dependency or a transitive dependency from its packages?

Also, freetype mentioned here #665 probably also should be listed as a dependency (libfreetype-dev on Ubuntu)

@whitebyte whitebyte changed the title zlib dependency Linux dependencies Oct 13, 2024
@GrimMaple
Copy link
Collaborator

Hi! Actually, there's std.zlib and that's where the dependency probably comes from. Have you checked if anything that uses std.zlib compiles? eg

import std.zlib;

void main()
{
    compress("whatever");
}

@GrimMaple
Copy link
Collaborator

As per freetype, as far as I understand, dlangui depends on bindbc-freetype and it should bring in the library when you dub. I main Windows 11, so I don't build on Linux often, and my Manjaro KDE laptop never had issues building any of dlangui projects.

If you can confirm that it's not the case -- feel free to add that to instructions :)

@whitebyte
Copy link
Contributor Author

whitebyte commented Oct 16, 2024

As per freetype, as far as I understand, dlangui depends on bindbc-freetype and it should bring in the library when you dub

It did not. The app started compiling only after I installed it through OS package manager.

Actually, there's std.zlib and that's where the dependency probably comes from. Have you checked if anything that uses std.zlib compiles? eg

It compiles and runs without issues. But again, I installed it via apt It works even with zlib1g-dev removed

@GrimMaple
Copy link
Collaborator

Thank you for your report! I'll try investigating this once I get a chance to work on Ubuntu

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

No branches or pull requests

2 participants