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

Author Topic: I still can't create a window after reading the tutorial  (Read 6188 times)

0 Members and 1 Guest are viewing this topic.

AB

  • Newbie
  • *
  • Posts: 19
    • View Profile
I still can't create a window after reading the tutorial
« on: April 23, 2013, 01:06:59 pm »
I followed the tutorial on "getting started" and "opening a window". I used the source code directly from the "opening a window" tutorial and it compiles without error in CodeBlocks. When I run the executable I don't get a window though. I've tried creating both a "console application" and "SFML project" in CodeBlocks but the result is always the same. What am I doing wrong?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: I still can't create a window after reading the tutorial
« Reply #1 on: April 23, 2013, 01:23:17 pm »
OS?
Version of SFML?
Graphics card?
Laurent Gomila - SFML developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
AW: I still can't create a window after reading the tutorial
« Reply #2 on: April 23, 2013, 01:26:38 pm »
You should always start with an empty project.
Besides that I guess you ran into the ATI bug, i.e. you're using SFML 1.6 and an AMD card, right? :D
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

AB

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: I still can't create a window after reading the tutorial
« Reply #3 on: April 23, 2013, 01:32:13 pm »
OS?
Version of SFML?
Graphics card?

Windows 7
SFML 1.6
AMD Radeon HD 7700

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10815
    • View Profile
    • development blog
    • Email
AW: Re: I still can't create a window after reading the tutorial
« Reply #4 on: April 23, 2013, 01:39:59 pm »
Windows 7
SFML 1.6
AMD Radeon HD 7700
I can read minds! :P

So it's indeed the ATI bug. You should use SFML 2 or link statically. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

AB

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: AW: Re: I still can't create a window after reading the tutorial
« Reply #5 on: April 23, 2013, 02:19:12 pm »
So it's indeed the ATI bug. You should use SFML 2 or link statically. ;)

I'm not having any luck with SFML 2 either. I downloaded the Windows 32 bits - GCC SJLJ (Code::Blocks) version, deleted all files from 1.6, redid libs and include steps, used the "release" versions of the files, and used the source code from http://www.sfml-dev.org/tutorials/2.0/start-cb.php. It compiles without error but crashes when run.

Quote
Problem signature:
  Problem Event Name:   APPCRASH
  Application Name:   Tetris.exe
  Application Version:   0.0.0.0
  Application Timestamp:   5176788c
  Fault Module Name:   sfml-window-2.dll
  Fault Module Version:   0.0.0.0
  Fault Module Timestamp:   4f849b51
  Exception Code:   c0000005
  Exception Offset:   00004af9
  OS Version:   6.1.7600.2.0.0.256.1
  Locale ID:   1040
  Additional Information 1:   0a9e
  Additional Information 2:   0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:   0a9e
  Additional Information 4:   0a9e372d3b4ad19135b953a78882e789
« Last Edit: April 23, 2013, 02:22:37 pm by AB »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: I still can't create a window after reading the tutorial
« Reply #6 on: April 23, 2013, 02:23:56 pm »
You must recompile SFML, or download a nightly build (see the "General discussions" forum), or wait for the official release next week :P
Laurent Gomila - SFML developer

AB

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: I still can't create a window after reading the tutorial
« Reply #7 on: April 23, 2013, 03:35:03 pm »
You must recompile SFML, or download a nightly build (see the "General discussions" forum), or wait for the official release next week :P

I downloaded a nighly build but I don't know how to compile the files in the include folder.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: I still can't create a window after reading the tutorial
« Reply #8 on: April 23, 2013, 03:38:27 pm »
The purpose of a nightly build is to provide a built version. You don't have to compile it, you already have the binaries.
« Last Edit: April 23, 2013, 03:49:04 pm by Laurent »
Laurent Gomila - SFML developer

AB

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: I still can't create a window after reading the tutorial
« Reply #9 on: April 23, 2013, 03:45:58 pm »
The purpose of a nightly build is to provide a built version. You don't have to compile it, you already have the binaries.

You're right, the dll files are in the bin folder.
« Last Edit: April 23, 2013, 03:48:59 pm by Laurent »

eigen

  • Jr. Member
  • **
  • Posts: 64
  • Brobdingnagian ding dong
    • View Profile
    • Pioneersgame.com
Re: I still can't create a window after reading the tutorial
« Reply #10 on: February 25, 2015, 04:15:49 pm »
Sorry for bumping an ancient thread but it's still a problem with SFML 2.2 for my game. I'm yet to get the details from the user but I'm guessing they have an AMD card too (they always do...). Are you saying that statically linking would solve the problem?

Quote
Problem signature:
  Problem Event Name:   APPCRASH
  Application Name:   Pioneers.exe
  Application Version:   0.0.0.0
  Application Timestamp:   54ece7af
  Fault Module Name:   sfml-window-2.dll
  Fault Module Version:   0.0.0.0
  Fault Module Timestamp:   54b7f216
  Exception Code:   c0000005
  Exception Offset:   0000a070
  OS Version:   6.1.7600.2.0.0.256.1
  Locale ID:   1033
  Additional Information 1:   0a9e
  Additional Information 2:   0a9e372d3b4ad19135b953a78882e789
  Additional Information 3:   0a9e
  Additional Information 4:   0a9e372d3b4ad19135b953a78882e789

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: I still can't create a window after reading the tutorial
« Reply #11 on: February 25, 2015, 04:24:53 pm »
This bug applies to SFML 1.6 only. Your problem is a different one.
Laurent Gomila - SFML developer

eigen

  • Jr. Member
  • **
  • Posts: 64
  • Brobdingnagian ding dong
    • View Profile
    • Pioneersgame.com
Re: I still can't create a window after reading the tutorial
« Reply #12 on: February 25, 2015, 04:43:22 pm »
But what could cause a problem in sfml-window-2.dll? As I understand no window appears, it crashes before that.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: I still can't create a window after reading the tutorial
« Reply #13 on: February 25, 2015, 04:49:14 pm »
Quote
But what could cause a problem in sfml-window-2.dll?
Is it the code, or the environment which causes the problem? In other words, can this user run a simple SFML hello world window application?
Laurent Gomila - SFML developer