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

Author Topic: wxWidgets with SFML2?  (Read 3108 times)

0 Members and 1 Guest are viewing this topic.

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
wxWidgets with SFML2?
« on: December 05, 2010, 02:16:53 am »
Does the SFML 1.6 tutorial for binding wxWidgets and SFML together work for SFML2?
I use the latest build of SFML2

Groogy

  • Hero Member
  • *****
  • Posts: 1469
    • MSN Messenger - groogy@groogy.se
    • View Profile
    • http://www.groogy.se
    • Email
wxWidgets with SFML2?
« Reply #1 on: December 05, 2010, 02:20:05 am »
I've never done anything like it, but from what I can see in the tutorial, yes it shouldn't be any different from my point of view.

My advice is to try it out and see if it works. Can't hurt.
Developer and Maker of rbSFML and Programmer at Paradox Development Studio

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
wxWidgets with SFML2?
« Reply #2 on: December 05, 2010, 02:32:13 am »
Quote from: "Groogy"
I've never done anything like it, but from what I can see in the tutorial, yes it shouldn't be any different from my point of view.

My advice is to try it out and see if it works. Can't hurt.
Tried it, it appears to work, but the GTK part of it is so very broken. On Arch Linux, I have to go through and manually add the search paths for pretty much every include file for GTK2.
I use the latest build of SFML2

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
wxWidgets with SFML2?
« Reply #3 on: December 05, 2010, 10:14:53 am »
Quote
On Arch Linux, I have to go through and manually add the search paths for pretty much every include file for GTK2.

Do you use pkg-config?
Laurent Gomila - SFML developer

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
wxWidgets with SFML2?
« Reply #4 on: December 07, 2010, 03:43:28 am »
Quote from: "Laurent"
Quote
On Arch Linux, I have to go through and manually add the search paths for pretty much every include file for GTK2.

Do you use pkg-config?
Uhhh, never heard of it?
I use the latest build of SFML2

danman

  • Hero Member
  • *****
  • Posts: 1121
    • View Profile
    • Email
wxWidgets with SFML2?
« Reply #5 on: December 07, 2010, 07:29:31 am »
could you give us your /etc/ld.so.conf and the results of :

locate libgtk | grep .so

?

(install slocate package from pacman, and launch "sudo updatedb" if you don't have locate)
Pointilleur professionnel

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
wxWidgets with SFML2?
« Reply #6 on: December 07, 2010, 08:00:52 am »
Quote
Uhhh, never heard of it?

As far as I know, this is the standard way for providing compiler and linker flags for GTK2.
Quote
`pkg-config --cflags --libs gtk+-2.0`

Have you read any tutorial about how to compile a GTK2 app?
Laurent Gomila - SFML developer