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

linking error when building #2

Open
jimzrt opened this issue Mar 6, 2020 · 2 comments
Open

linking error when building #2

jimzrt opened this issue Mar 6, 2020 · 2 comments

Comments

@jimzrt
Copy link

jimzrt commented Mar 6, 2020

Since the "Compatibility for libtesla 1.2.0" commit I get an error when linking.
output:
linking TextReaderOverlay-NX.elf /opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: cannot find -lharfbuzz /opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: cannot find -lglib-2.0 /opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: cannot find -lpcre /opt/devkitpro/devkitA64/lib/gcc/aarch64-none-elf/9.2.0/../../../../aarch64-none-elf/bin/ld: cannot find -lgraphite2 collect2: error: ld returned 1 exit status
this is due to libs added by pkg-config --libs --static freetype2 which gets -lfreetype -lbz2 -lz -lpng16 -lm -lm -lz -lharfbuzz -lm -lglib-2.0 -pthread -lpcre -pthread -lgraphite2

I did not find some of these dependencies in dkp-libs.
Did you compile them yourself?

@jimzrt
Copy link
Author

jimzrt commented Mar 6, 2020

workaround for me:
replaced pkg-config --libs --static freetype2 with freetype-config --libs --static (with backticks). Same for CFLAGS.

@diwo
Copy link
Owner

diwo commented Mar 10, 2020

Thanks for reporting this, it was using pkg-config from core. I've updated the makefile as suggested and it should now build with dkp-libs/switch-freetype

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