-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
sdl2-net x64-linux not building #3505
Comments
I have a fix for this issue on this PR: #3564 The problem is that in vcpkg/ports/sdl2-net/CMakeLists.txt, there are Windows specific compile flags being passed, namely:
Wrapping this up in an if (MSVC) fixes the problem for me:
This allows for sdl-net to build properly on Ubuntu. However, when I attempt to link against sdl-net and sdl, both built with vcpkg, I have linker errors that require that I link against sndio and dl. Is this expected, or should the vcpkg cmake file specify public dependencies like these? |
Thanks for the PR! Watching your archived stream 76 ATM :) Some answers to questions you had during the stream:
[1] If you export cmake targets (not sure if you're familiar with that) the the |
Wow @ras0219-msft! Thanks so much for the detailed response -- and for actually watching my stream (how did you even figure out the link between my issue here and that specific stream?). As you can probably tell, my experience is mainly as a Windows dev, with some minor dabbling in the Linux world, so it's really great to have someone as helpful as you answer these questions of mine. I'm so glad that I'm now able to build my emulator on Linux using vcpkg in the same way I do on Windows! I tested running it on a clean Ubuntu install, and the only dependency that needed to be installed was sndio, so what you said about building it statically in vcpkg would be awesome. Does this mean you'd need someone to contribute sndio as a package for vcpkg? #6 explains what I was wondering about - why some of the ports had CMakeLists.txt while others did not; thank you for that. #7 - this was not a long delay at all :) Thank you very much for taking the time. I love vcpkg, and am so glad we finally have a tool like this on Windows -- and even better, on Linux and Mac as well! Cheers! |
PR #3564 was merged. So closed this issue! |
Output from shell:
Contents of /home/daroou/code/vcpkg/buildtrees/sdl2-net/install-x64-linux-dbg-out.log:
The text was updated successfully, but these errors were encountered: