Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upBetter documentation and support for finding native libs on windows #138
Comments
crumblingstatue
added
Help required!!!
windows
labels
Oct 8, 2016
bookdude13
referenced this issue
Mar 3, 2017
Merged
Finding CSFML and SFML dependencies on Windows #157
This comment has been minimized.
This comment has been minimized.
|
Mentioning #165 for reference. |
This comment has been minimized.
This comment has been minimized.
|
I just got a rust-sfml window running on Windows with MSVC. It was painful because the documentation for building sfml/csfml with CMake is pretty much nonexistent to begin with. Apparently, CSFML needs to be built as dynamic libraries, but use SFML as static libraries. So this is what I did, ending up with the following:
I had to rename the sfml-XXX-s.lib to remove the "-s" suffix from the name, because this crate wants the clean name. I don't know if this suffix is something peculiar to the CMake build of SFML or what. But, thinking about it more... if CSFML are DLLs containing a statically linked SFML, and the rust-sfml crate only interfaces with CSFML, then rust-sfml should not need to link with SFML at all, since it does not use it. Is this correct? |
This comment has been minimized.
This comment has been minimized.
This might be true on windows, you could test it if you have the time. In the long term, I'm planning to skip CSFML entirely, and use bindgen to bind directly to SFML, but I don't know yet what will come of that. |
This comment has been minimized.
This comment has been minimized.
lernrust
commented
Dec 31, 2017
•
|
Hi. I have problem. SFML 2.4.0 E:\Users\Admin\projects\rust-sfml> cargo build --verbose ... error: linking with ... error: Could not compile CSFML_HOME and SFML_HOME is fine. other msvc c++ projects with sfml work fine with 32bit. ... SFML 2.4.0 It work, but how i can create static 32 bit project? |
This comment has been minimized.
This comment has been minimized.
|
So it should be possible to skip the reference to sfml libraries in windows only? Can that be checked in the various build.rs ffi files that emit both libraries (or the sfml-build lib.rs file itself)? (I don't know about that stuff, learning as I go) |
This comment has been minimized.
This comment has been minimized.
Yes, this should be possible using build scripts. One could check the value of |
TheJare
referenced this issue
Dec 31, 2017
Merged
Do not include static SFML libraries in windows builds because CSFML … #181
This comment has been minimized.
This comment has been minimized.
metavee
commented
Aug 25, 2018
|
I just wanted to document some differences I found between what I had to do and what was in the wiki. For reference, I'm on 64-bit Windows 10, with
|
crumblingstatue commentedOct 8, 2016
•
edited
Additional things that can be done