106
D / Re: DSFML-C "Nightlies"
« on: December 30, 2013, 05:50:21 am »
Just updated the first post to include a user contributed OS X build as well as a 32bit Linux build.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
So if it is finding the lib files automatically when building DSFML, where do I put the new ones I just downloaded for it to build against? Will what you posted (the dmd main.d line) work for building DSFML too?
OK, I did manage to find the instructions a little buried, but doesn't it build against the DSFML-C libraries?
Buried? There was a link to the build instructions on the page I linked above. And it wouldn't build correctly if it couldn't find the dsfml-xxx.lib files. Those are what connect it to the dll's.
Edit:
Some of the wording in the wiki could probably be improved. I'll look into this and see what I can fix.QuoteHow do I tell it where to look? It seems to succeed automatically, but I don't know how to guarantee it's building against the latest libs.
On Windows, you need to use the -L+Path compiler option. For example:dmd main.d -L+C:\Users\Jeremy\Desktop\dsfml\ dsfml-graphics.lib dsfml-window.lib dsfml-system.lib
This looks for all the .lib files in C:\Users\Jeremy\Desktop\dsfml\
You have to make sure the right dll's end up in the exe directory though.
OK, I did manage to find the instructions a little buried, but doesn't it build against the DSFML-C libraries?
How do I tell it where to look? It seems to succeed automatically, but I don't know how to guarantee it's building against the latest libs.
Also, the message I get in console is
Stream closed?
Stream closed?
Yes, I get it twice for one file operation.
Also, for those who were used to building things in the past, is this download that is now linked to everywhere everything we need to get DSFML working on our system? I.E. this has DSFML and DSFML-C all wrapped up and we don't need to build DSFML on these seemingly DSFML-C files?
Correct.
QuoteShouldn't it be theoretically possible though? If you built a static version of csfml and sfml, and then linked all dependencies? Unless I am missing something, in which case I will feel very silly.You wouldn't be able to link a static version of CSFML, since it's written in C++. Your C linker would complain about all these crazy C++ symbols that it doesn't know about.
Sorry for making you feel silly
There's no static version of CSFML.