-
-
Notifications
You must be signed in to change notification settings - Fork 349
Support linking with SDL2 2.0.10 (Ubuntu Focal). #1587
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
base: master
Are you sure you want to change the base?
Conversation
Focal is EOL, there is no need to put effort into it IMHO. |
I know (it's still in Ubuntu Pro support though) but unfortunately I still didn't get to update one of my dev machines yet so I looked into the recent linker errors. |
For security patches only, not supporting the most modern libs... The changes around SDL2main are interesting though. 👍 |
13e4544
to
d01bfcb
Compare
d01bfcb
to
ae66715
Compare
common.h) | ||
target_link_libraries(heif-view PRIVATE heif SDL2::SDL2main SDL2::SDL2) | ||
target_link_libraries(heif-view PRIVATE heif) | ||
target_include_directories(heif-view PRIVATE ${libheif_SOURCE_DIR}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this new explicit addition needed? AFAICT, the heif target should already carry over its include path definitions... Is something not working?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This got removed in 56e85c0 in the switch to the SDL2 components but is there for the other example apps, so I figured it might have been removed by accident.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it might have been removed by accident
It looks like it indeed, but it shouldn't be needed IMHO. It'd be interesting to see if it could also be removed elsewhere in a separate commit...
The introduction of different components like
SDL2::SDL2
/SDL2::SDL2main
happened in libsdl-org/SDL@dd1d8ab (2.0.12).Also use detection code from https://wiki.libsdl.org/SDL2/README-cmake to figure out when to link against
SDL2::SDLmain
.Only tested on different versions of Ubuntu, so more testing on Windows should be done before merging.