SFML community forums

Help => Graphics => Topic started by: OniLinkPlus on December 05, 2010, 02:16:53 am

Title: wxWidgets with SFML2?
Post by: OniLinkPlus on December 05, 2010, 02:16:53 am
Does the SFML 1.6 tutorial for binding wxWidgets and SFML together work for SFML2?
Title: wxWidgets with SFML2?
Post by: Groogy 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.
Title: wxWidgets with SFML2?
Post by: OniLinkPlus 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.
Title: wxWidgets with SFML2?
Post by: Laurent 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?
Title: wxWidgets with SFML2?
Post by: OniLinkPlus 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?
Title: wxWidgets with SFML2?
Post by: danman 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)
Title: wxWidgets with SFML2?
Post by: Laurent 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?