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

Author Topic: AppCrash executing SFML Window  (Read 3338 times)

0 Members and 1 Guest are viewing this topic.

Sakurazaki

  • Newbie
  • *
  • Posts: 31
  • `お嬢様を守ります!
    • MSN Messenger - sakurazaki.setsunita@gmail.com
    • View Profile
AppCrash executing SFML Window
« on: July 03, 2015, 02:23:48 am »
Hi,

I'm using the tutorial code in an empty Visual Studio Community Edition 2015 Project, following step by step the Visual Studio setup.


Compiling goes fine, I included all the sfml-*-d.lib as I compiled in Debug mode and I also included the -d.dll in the folder but when executing the .exe file is just Crashes with the following message:



As you can see (ignore the spanish) the module with errors is sfml-system-2.dll but there is nothing else than the main.cpp file in the project. Am i doing something wrong?

I'm willing to provide more information so let me know and I'll update the post. Thanks!
こんな私も変われるのならもし変われるのなら白になる

dabbertorres

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • website/blog
Re: AppCrash executing SFML Window
« Reply #1 on: July 03, 2015, 03:49:21 am »
Did you get SFML from the download page? If so, that's your problem. SFML doesn't have an official release for VS 2015 yet. You'll have to compile SFML yourself (Different compiler versions matter in C++).

Sakurazaki

  • Newbie
  • *
  • Posts: 31
  • `お嬢様を守ります!
    • MSN Messenger - sakurazaki.setsunita@gmail.com
    • View Profile
Re: AppCrash executing SFML Window
« Reply #2 on: July 03, 2015, 04:18:50 pm »
Hi, thanks for your response.

I followed up the Compiling SFML with CMake tutorial and when compiling with Debug configuration for Win32 I get the following traceback:

All packages are already installed and there is nothing to restore.
NuGet package restore finished.
1>------ Operación Compilar iniciada: proyecto: sfml-audio, configuración: Debug Win32 ------
2>------ Operación Compilar iniciada: proyecto: sfml-graphics, configuración: Debug Win32 ------
1>     Creando biblioteca E:/Desktop/SFML-2.3/lib/Debug/sfml-audio-d.lib y objeto E:/Desktop/SFML-2.3/lib/Debug/sfml-audio-d.exp
2>     Creando biblioteca E:/Desktop/SFML-2.3/lib/Debug/sfml-graphics-d.lib y objeto E:/Desktop/SFML-2.3/lib/Debug/sfml-graphics-d.exp
1>flac.lib(stream_decoder.obj) : error LNK2019: símbolo externo ___iob_func sin resolver al que se hace referencia en la función _FLAC__stream_decoder_reset
1>flac.lib(stream_encoder.obj) : error LNK2001: símbolo externo ___iob_func sin resolver
1>flac.lib(win_utf8_io.obj) : error LNK2001: símbolo externo ___iob_func sin resolver
1>flac.lib(bitreader.obj) : error LNK2019: símbolo externo _fprintf sin resolver al que se hace referencia en la función _FLAC__bitreader_dump
1>flac.lib(bitwriter.obj) : error LNK2001: símbolo externo _fprintf sin resolver
1>flac.lib(win_utf8_io.obj) : error LNK2019: símbolo externo _vsnprintf_s sin resolver al que se hace referencia en la función _local_vsnprintf
1>MSVCRTD.lib(vsnprintf_s.obj) : error LNK2001: símbolo externo _vsnprintf_s sin resolver
1>MSVCRTD.lib(vsnprintf_s.obj) : error LNK2001: símbolo externo __vsnprintf_s sin resolver
1>E:\Desktop\SFML-2.3\lib\Debug\sfml-audio-d-2.dll : fatal error LNK1120: 4 externos sin resolver
2>freetype.lib(bdf.obj) : error LNK2019: símbolo externo _sprintf sin resolver al que se hace referencia en la función __bdf_parse_properties
2>jpeg.lib(jerror.obj) : error LNK2001: símbolo externo _sprintf sin resolver
2>jpeg.lib(jerror.obj) : error LNK2019: símbolo externo ___iob_func sin resolver al que se hace referencia en la función _output_message
2>jpeg.lib(jmemmgr.obj) : error LNK2019: símbolo externo _sscanf sin resolver al que se hace referencia en la función _jinit_memory_mgr
2>E:\Desktop\SFML-2.3\lib\Debug\sfml-graphics-d-2.dll : fatal error LNK1120: 3 externos sin resolver
========== Compilar: 0 correctos, 2 incorrectos, 5 actualizados, 0 omitidos ==========
 

flac.lib, freetype.lib and jpeg.lib seem to be throwing errors with printf functions.

Not sure if I'm doing something wrong, I followed step by step the CMake tutorial and everything went smooth with no errors.

Also, when are you planning to release a VS2015 build of SFML? I'm really willing to use it putting a lot of effort but I'm starting to feel like I won't be able to do it.
こんな私も変われるのならもし変われるのなら白になる

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9670
    • View Profile
    • development blog
    • Email
Re: AppCrash executing SFML Window
« Reply #3 on: July 03, 2015, 04:29:48 pm »
The forum search engine or Google are your friends. ;)

As said in multiple other threads before, you need to rebuild said external libraries, because VS 2015 breaks the C ABI.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

Sakurazaki

  • Newbie
  • *
  • Posts: 31
  • `お嬢様を守ります!
    • MSN Messenger - sakurazaki.setsunita@gmail.com
    • View Profile
Re: AppCrash executing SFML Window
« Reply #4 on: July 03, 2015, 07:10:16 pm »
I don't have that much knowledge to be rebuilding every single of the dependencies.

Are you planning to release  vs2015 version of SFML?
こんな私も変われるのならもし変われるのなら白になる

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 9670
    • View Profile
    • development blog
    • Email
AW: AppCrash executing SFML Window
« Reply #5 on: July 03, 2015, 08:28:03 pm »
Once VS 2015 is released we will support it.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

Sakurazaki

  • Newbie
  • *
  • Posts: 31
  • `お嬢様を守ります!
    • MSN Messenger - sakurazaki.setsunita@gmail.com
    • View Profile
Re: AppCrash executing SFML Window
« Reply #6 on: July 04, 2015, 01:29:02 am »
ok, then I'll look for an actually working alternative until then. Thanks for your support.
こんな私も変われるのならもし変われるのなら白になる

Hapax

  • Hero Member
  • *****
  • Posts: 3035
  • My number of posts is shown in hexadecimal.
    • View Profile
Re: AppCrash executing SFML Window
« Reply #7 on: July 05, 2015, 08:34:51 pm »
actually working alternative
SFML does work  :o

(for the majority of cases)
Selba Ward - SFML drawables
Kairos - Timing Library
Rectangular Boundary Collision - Rectangular SAT Collision

@Hapaxiation - Hapaxia on Twitter

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 877
    • View Profile
Re: AppCrash executing SFML Window
« Reply #8 on: July 06, 2015, 09:19:19 pm »
Check General discussions further above and you should find one or two threads regarding MSVC2015, which I think will also include some precompiled libraries. You're using them on your own risk though. :)