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

Author Topic: Failed to activate the window's context  (Read 6150 times)

0 Members and 1 Guest are viewing this topic.

djm_jm

  • Newbie
  • *
  • Posts: 23
    • View Profile
Failed to activate the window's context
« on: January 17, 2017, 05:41:54 pm »
I installed SFML on windows and have one error. The screen of window is not drawned, only a white empty window.

I put one attachment (it has a image) to show the error.

My codeblock's version is 16.01 and the SFML's version is GCC 4.9.2 TDM (SJLJ) - 32-bit.

Anybody can help me fix that?
« Last Edit: January 17, 2017, 05:45:54 pm by djm_jm »

Mr_Blame

  • Full Member
  • ***
  • Posts: 192
    • View Profile
    • Email
Re: Failed to activate the window's context
« Reply #1 on: January 17, 2017, 05:58:54 pm »
Is your the compiler, with which SFML was built the exactly the same compiler as your? Did you install new drivers?
« Last Edit: January 17, 2017, 06:53:13 pm by Mr_Blame »

djm_jm

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Failed to activate the window's context
« Reply #2 on: January 17, 2017, 06:29:07 pm »
Is your the compiler, with which SFML was built the excavation same compiler as your? Did you install new drivers?

Good, now I downloaded other version of SFML and it appears a new problem. Now the program is no execute and is showing the message bellow on image attached.

EDIT: I can't install the visual c++, happens one error and the installation abort.
« Last Edit: January 17, 2017, 06:37:14 pm by djm_jm »

Mr_Blame

  • Full Member
  • ***
  • Posts: 192
    • View Profile
    • Email
Re: Failed to activate the window's context
« Reply #3 on: January 17, 2017, 06:53:55 pm »
Try to build SFML yourself from source

djm_jm

  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Failed to activate the window's context
« Reply #4 on: January 19, 2017, 07:26:36 pm »
Well, I cann't fix the error on windows 7, so I installed the Windows 10 and put the gcc/g++ compatible with SFML version. This time I don't use the codeblocks and I try build SFML myself from source through CMD prompt. Works fine!!!

I have a question:

What IDE you use with SFML?
« Last Edit: January 19, 2017, 07:29:30 pm by djm_jm »

Mr_Blame

  • Full Member
  • ***
  • Posts: 192
    • View Profile
    • Email
Re: Failed to activate the window's context
« Reply #5 on: January 20, 2017, 05:55:51 pm »
I use visual studio 2015 community, so I won't have to compile SFML myself plus I get not bad user interface and it's free.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Failed to activate the window's context
« Reply #6 on: January 20, 2017, 06:25:40 pm »
The compilation of SFML really has nothing to do with this. You most likely didn't have an up to date GPU driver.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/