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

Author Topic: 1st Demo Using SFML - Only Get Console Window - HELP  (Read 13642 times)

0 Members and 1 Guest are viewing this topic.

Liosan

  • Newbie
  • *
  • Posts: 11
    • View Profile
1st Demo Using SFML - Only Get Console Window - HELP
« Reply #15 on: March 13, 2009, 12:10:57 pm »
Quote from: "Astrof"
I would try unplugging them and then trying it,


I'll quote myself again: not plugged in. So, no, I will not unplug them, because it seems impossible :)

Quote from: "Astrof"
but you said that the program works fine in Visual Studio?


Yes, it does. But I want to work with MinGW/g++4, not VS.  Although this does spoil the joystick theory, doesn't it? VS and g++ use separate libs, so I suppose there might be some sort of bug in the g++ version.

Liosan[/b]

Astrof

  • Full Member
  • ***
  • Posts: 135
    • View Profile
1st Demo Using SFML - Only Get Console Window - HELP
« Reply #16 on: March 13, 2009, 02:24:19 pm »
Sorry, when you said "I haven't"  I thought you meant you had not unplugged them.  My bad.  

Have you tried using the latest source through the SVN?

drpitch

  • Newbie
  • *
  • Posts: 18
    • View Profile
1st Demo Using SFML - Only Get Console Window - HELP
« Reply #17 on: March 16, 2009, 06:04:59 pm »
Hi,

First of all, congratulation to Laurent, you are doing a great job!

Now, I'm getting exactly the same problem. Only the console window is opened when running samples.

I have an usb wheel plugged into computer. As you said, if I unplug it and rerun samples, they work. Moreover, there's a strange behaviour:
- When mouse is moved in opengl sample, the performance of the rendering slows down dramatically. But if I plug the USB joystick when I'm running the sample, the scene runs smooth again, even when if I move the mouse.

Are these bugs fixed on the SVN version?

Thanks!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
1st Demo Using SFML - Only Get Console Window - HELP
« Reply #18 on: March 16, 2009, 08:17:16 pm »
Probably, but as it's pretty weird I can't be sure, you should check it by yourself :)
Laurent Gomila - SFML developer

drpitch

  • Newbie
  • *
  • Posts: 18
    • View Profile
1st Demo Using SFML - Only Get Console Window - HELP
« Reply #19 on: March 16, 2009, 09:31:13 pm »
Thanks for your answer, Laurent.

After posting I've used static linking and now it works all fine. It's really weird :|

Liosan

  • Newbie
  • *
  • Posts: 11
    • View Profile
1st Demo Using SFML - Only Get Console Window - HELP
« Reply #20 on: March 22, 2009, 07:57:47 pm »
Heh, talk about weird, I can't link against static, I get some weird errors...

Liosan

PS. I'll check the repository version when I find the time to :)

WorldRacer

  • Newbie
  • *
  • Posts: 16
    • View Profile
Bug
« Reply #21 on: May 21, 2009, 05:42:18 pm »
How can I avoid this bug? I mean that I can start my app with plugged usb-devices?

WorldRacer

  • Newbie
  • *
  • Posts: 16
    • View Profile
1st Demo Using SFML - Only Get Console Window - HELP
« Reply #22 on: May 22, 2009, 07:40:47 pm »
Nobody knows that? I think its a really bad bug, because many useres have usb hids.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
1st Demo Using SFML - Only Get Console Window - HELP
« Reply #23 on: May 22, 2009, 07:57:59 pm »
You can download the latest sources from SVN, and recompile SFML.

Linking to the static libraries should work as well.
Laurent Gomila - SFML developer