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

Fix psp-pkg-config --libs output for all libraries #43

Closed
sharkwouter opened this issue Mar 31, 2022 · 4 comments
Closed

Fix psp-pkg-config --libs output for all libraries #43

sharkwouter opened this issue Mar 31, 2022 · 4 comments
Assignees

Comments

@sharkwouter
Copy link
Member

When using psp-pgk-config with the -libs flag, it should return all libraries required for linking to work. This is a big problem for the SDL helper libraries for example.

@sharkwouter
Copy link
Member Author

SDL2 is only missing SDL2main. SDL2_ttf now has support for setting the libraries in the pc file per platform through CMake, the ones for PSP just need to be added.

In a branch for OceanPop where I'm trying to clean up the CMakeLists.txt file by using pkg-config for the PSP build I still need to add the following dependencies manually for it to work:

    if(PSP)
        list(APPEND SDL2_LIBRARIES SDL2main)
        list(APPEND SDL2_MIXER_LIBRARIES vorbisfile vorbis ogg)
        list(APPEND SDL2_IMAGE_LIBRARIES jpeg png z)
        list(APPEND SDL2_TTF_LIBRARIES freetype)

For other libraries I do not know what is needed.

@sharkwouter
Copy link
Member Author

For sdl2-ttf this is now fixed.

@diamant3
Copy link
Member

diamant3 commented Feb 2, 2023

Hello again! Can I try to fix this issue?

@sharkwouter
Copy link
Member Author

Go for it, it would be appreciated. I don't have a list of which ones are wrong, though. Might not be many if we're lucky.

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