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

link error (dub windows) #50

Open
joelcnz opened this issue Jun 14, 2020 · 1 comment
Open

link error (dub windows) #50

joelcnz opened this issue Jun 14, 2020 · 1 comment

Comments

@joelcnz
Copy link

joelcnz commented Jun 14, 2020

What do I put for this - using dub?

lld-link: error: could not open '+..\DAllegro5\lib': no such file or directory
...
Then it lists a whole bunch of lib files not existing.

I have DAllegro source files and lib files there.

@SimonN
Copy link
Contributor

SimonN commented Nov 14, 2023

Hi, it's been over 3 years since your question, but I have a loose idea to for you to try.

I remember adding DAllegro 5 and wanting full control over the linkage. Add to your dubfile, assuming your dubfile is JSON, not SDLang:

"versions": ["ALLEGRO_NO_PRAGMA_LIB"],

Then explicitly name the wanted Allegro 5 libraries. Apparently, on Posix with pkg-config, it's enough to add the leaves (e.g., allegro_ttf-5) and they will implicitly pull in all dependencies (allegro_font-5 and allegro-5, presumably because pkg-config resolves allegro_ttf-5). For Windows, I've listed all libraries explicitly. Example:

"libs-posix": [
    "allegro_acodec-5",
    "allegro_image-5",
    "allegro_primitives-5",
    "allegro_ttf-5",
],
"libs-windows": [
    "allegro",
    "allegro_acodec",
    "allegro_audio",
    "allegro_font",
    "allegro_image",
    "allegro_primitives",
    "allegro_ttf",
],

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

No branches or pull requests

2 participants