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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - shoulder_rats

Pages: [1]
1
General discussions / Re: Go binding for SFML
« on: February 10, 2013, 07:57:34 pm »
Hi Guys,

Thanks for making the Go wrapper.

I'm getting this error when I try to build the gosfml2 wrapper in Windows:

C:\Go\src\pkg\gosfml2>go build
# gosfml2
circleShape.go:15:39: fatal error: SFML/Graphics/CircleShape.h: No such file or directory compilation terminated.

I found in CircleShape.go that it is searching here:
// #include "SFML/Graphics/CircleShape.h"

I've even tried hard coding straight to this, but that doesn't seem to work.
// #include "C:\sfml\include\SFML\Graphics\CircleShape.h"

I even tried setting the environment path to it:
GOPATH=C:\GO;C:\sfml\include;C:\sfml\lib
GOROOT=C:\Go

For what it's worth I compiled SFML RC version 134 statically beforehand with these commands:
cmake -G "MinGW Makefiles" -D CMAKE_BUILD_TYPE=Release -D BUILD_SHARED_LIBS=FALSE C:\sfml
mingw32-make
cmake -G "MinGW Makefiles" -D CMAKE_BUILD_TYPE=Debug -D BUILD_SHARED_LIBS=FALSE C:\sfml
mingw32-make

The compiling went ok.

Is there a way I can get Go or GCC to find the header files? Is there like some parameter I need to add to 'go build', an environment variable to see, or a config file?

2
Hi Guys,

I've had this bug for quite some time. However, I just by mistake found a work around. I had the bug when the font size was at 40, with SFML 2.0 RC 16. However, when I set the font size to 20, the boxes around the letters disappeared. I'm not sure what the magic break size is for that. I'm just using the default font and compiling with the Visual Studio 2011 beta compiler. And the graphics chipset I've got is an old laptop ATI Mobility Radeon HD 4650, with 1gb dedicated ram. I only mention it because older posts attributed it to the graphics card. I've seen the same issue though on my Nvidia chipset in my other computer. I don't remember the chipset at the moment though.

This isn't all the code, but its the initializer code I'm using:

sf::Text mySfText;   
sfText.setFont(sf::Font::getDefaultFont());
sfText.setCharacterSize(40); //note, 40 causes the bug, 20 doesn't seem to.
sfText.setColor(sf::Color::Green);

Hope that helps. -Brett

Pages: [1]
anything