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

Author Topic: Unable to build SFML 2.2 graphics from source  (Read 4821 times)

0 Members and 1 Guest are viewing this topic.

kinglime

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Github
    • Email
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.

Gambit

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
Re: Unable to build SFML 2.2 graphics from source
« Reply #1 on: February 05, 2015, 06:20:24 am »
Visual Studio 2015 is not officially supported yet due to it still being in preview, and I'm going to assume Windows 10 is in the same boat.

As for the problem, I'm not sure its the fault of SFML, since the errors are occuring in jpeg.lib and freetype.lib by the look of the errors.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: Unable to build SFML 2.2 graphics from source
« Reply #2 on: February 05, 2015, 07:59:26 am »
You'll most likely have to rebuild some of SFML's dependencies.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

kinglime

  • Newbie
  • *
  • Posts: 8
    • View Profile
    • Github
    • Email
Re: AW: Unable to build SFML 2.2 graphics from source
« Reply #3 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!  :)

 

anything