Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

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.


Messages - kinglime

Pages: [1]
1
General discussions / Re: SFML 2.2 Visual Studio 2015 Binaries + Template
« on: February 07, 2015, 06:45:05 am »
I probably would have waited until VS2015 was out of preview. Microsoft themselves have a disclaimer on it saying that it should NOT be used for production code. Regardles, good work. I'm sure it will help some people.

That is true and thank you. I personally like to always be on the bleeding edge of technology. If people wanted I could build binaries for VS 2013.

Edit: I decided to add VS 2013! Cheers everyone  ;D

2
General discussions / Re: SFML 2.1 Visual Studio 2013 Binaries + Template
« on: February 07, 2015, 06:07:02 am »
I am glad to see I have helped many other developers. I'd like to let you all know I have posted new binaries here:)

3
Graphics / Re: AW: Unable to build SFML 2.2 graphics from source
« on: February 07, 2015, 06:05:19 am »
You'll most likely have to rebuild some of SFML's dependencies.

Thank you. I ended up rebuilding jpeg and freetype. I have posted my binaries here. Cheers!  :)

4
SFML 2.2 Visual Studio 2013 / 2015 Binaries + Template

After the success of my last post, I thought I would share again. It was time to rebuild after upgrading to Windows 10 and Visual Studio 2015, plus I needed to upgrade to SFML 2.2.

Links
VS 2013
VS 2015

I had to rebuild both jpeg and freetype before I could build SFML for VS 2015. Everything is working fine on my end but please let me know if something goes awry. I compiled using cmake-gui and nmake.

Instructions
  • Download the zip archive and extract it. Inside the folder there will be a folder named SFML, a batch file named install_template.bat and another archive named SFML-TEMPLATE.zip.
  • Copy the folder SFML to C:\SFML. If you want to use a different directory the template will not work.
  • If you would like to use the Visual Studio template you can run install_template.bat. If you do not trust or simply do not want to use the batch file you can manually copy SFML-TEMPLATE.zip to "%USERPROFILE%\Documents\Visual Studio (2013 / 2015)\Templates\ProjectTemplates\Visual C++ Project".

I hope I was able to help!  ;D

P.S. Special thanks to LanceJZ for showing me how to automatically include the dll files.

5
Graphics / Unable to build SFML 2.2 graphics from source
« on: February 05, 2015, 04:35:41 am »
I keep trying to build SFML 2.2 from source and all the modules build except for graphics. I am running Windows 10 / VS2015. I tried building with nmake and from VS itself. I keep getting the following error:

Quote
freetype.lib(bdf.obj) : error LNK2019: unresolved external symbol _sprintf referenced in function __bdf_parse_properties
jpeg.lib(jerror.obj) : error LNK2001: unresolved external symbol _sprintf
jpeg.lib(jerror.obj) : error LNK2019: unresolved external symbol _fprintf referenced in function _output_message
jpeg.lib(jerror.obj) : error LNK2019: unresolved external symbol ___iob_func referenced in function _output_message
jpeg.lib(jmemmgr.obj) : error LNK2019: unresolved external symbol _sscanf referenced in function _jinit_memory_mgr

C:\Users\Robert\Desktop\build\lib\Debug\sfml-graphics-d-2.dll : fatal error LNK1120: 4 unresolved externals

Also I am trying to build the dynamic libraries, not static.

6
Network / Re: Receiving enum via sf::Packet
« on: November 28, 2013, 05:40:28 am »
Seconds later I believe I have found the solution to my mistake  :)

I did the following:
Code: [Select]
int x;
incomingPacket >> x;
networkHeaders header;
header = (networkHeaders) x;

That seems to do the trick. I don't know if that is the best way to do this, if there is a better way please let me know. Thanks!

Edit: Is there some way to modify sf::Packet& operator >> to do this automatically?

7
Network / Receiving enum via sf::Packet
« on: November 28, 2013, 05:37:08 am »
I have my packets set up so that the first thing I send in them is a header. My headers are stored in an enum, like so:
Code: [Select]
enum networkHeaders {PlayerMove, ClientDisconnect, Test};
I can send the packet just fine, like so:
Code: [Select]
outgoingPacket << header
But I cannot receive the packet, like so:
Code: [Select]
incomingPacket >> header
Also this is my header variable:
Code: [Select]
networkHeaders header;
I would appreciate some help here, I tried searching the forums. Enums and networking are new concepts to me but I'm eager to learn. Thanks in advance.

8
General discussions / SFML 2.1 Visual Studio 2013 Binaries + Template
« on: November 13, 2013, 04:04:23 am »
SFML 2.1 Visual Studio 2013 Binaries + Template

I just compiled the binaries on my machine and I figured I would share them.

Link: (Binaries) http://www.mediafire.com/download/utc43i4zaptur3e/SFML.zip
(Template) http://www.mediafire.com/download/1r3818e8k7sgn0u/SFML-template.zip

I compiled using CMake and then NMake. Everything works fine on my end, if you run into errors let me know.

Instructions:
  • Download the files
  • Extract SFML.zip to C:\SFML\
  • Copy SFML-template.zip to C:\Users\%user%\Documents\Visual Studio 2013\Templates\ProjectTemplates\
  • Create a new SFML project
  • Copy "sfml-audio-d-2.dll", "sfml-graphics-d-2.dll", "sfml-network-d-2.dll", "sfml-system-d-2.dll", "sfml-window-d-2.dll" to C:\Users\%user%\Documents\Visual Studio 2013\Projects\%project%\Debug\
  • Copy "sfml-audio-2.dll", "sfml-graphics-2.dll", "sfml-network-2.dll", "sfml-system-2.dll", "sfml-window-2.dll" to C:\Users\%user%\Documents\Visual Studio 2013\Projects\%project%\Release\

Again, let me know if you run into any issues. I hope I was able to help! ;D By the way, I'm running VS Express 2013 for Desktop if it matters.

Edit: If anyone knows how to automatically copy the .dll files as part of the template, please instruct me on how to do so.

Pages: [1]
anything