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 - Dragnalith

Pages: [1]
1
General discussions / SFML runtime for OS X
« on: October 11, 2013, 12:35:17 am »
When you compile SFML on OS X, you need to install Freetype to run your SFML application ( at least in OS X 10.8 ). This is done with make install which copy freetype.framework at the right place. But when you distribute your app, you do not want the user to have to install the framework.

What are the right ways to solve this problem? Make an .app bundle with the freetype framework? An install script to copy the framework? Put the .framework in the same folder than your SFML application binary?

2
I am working on an SFML project driven by CMake: http://github.com/Dragnalith/Nawp
To avoid cross-platform dependency problems I have included SFML in my repo, managed with the subtree merge feature of git. SFML CMakeLists.txt is included in my main CMakeLists.txt with add_subdirectory. When I do the build, everything is built automatically, wonderful!

My problem is on OS X, because of Freetype you need to install SFML (e.g do a make install) to copy the framework on your system, otherwise you have a yld: Library not loaded. This step breaks my seamless build workflow.

I'd like to make my app look for the framework in the path of my project and not in /Library/Framework. How can I do that?

(On Windows, one solution would be to copy the .dll in the same folder as my .exe, but I don't know how it works on OS X)

3
General / Re: Starting with SFML - coming form a java world!
« on: May 05, 2013, 11:15:36 am »
Yes, in C++ you have to worry about destroying objects if they have been created dynamically (it means "with the new operator"). New thing in C++ which doesn't exist in Java is the destructor method of a class. It lets you define what to do when your object is destroyed ("how to destroy attributes").

4
General discussions / Re: SFML 2.0 tagged in repository
« on: April 07, 2013, 09:39:54 am »
After the release it could be interested to have a postmortem about the development of 2.0. I would love to know how SFML 2.0 has been developed. What is the idea behind, why 2.0 and not 1.7, what difficulties did you suffer from, the history…

5
General discussions / Re: Go binding for SFML
« on: July 22, 2012, 07:45:51 pm »
I don't find a way to do that. But you can convert it to a C.Rectf, then copy the four attribute.

6
General discussions / Re: Go binding for SFML
« on: July 20, 2012, 08:36:58 pm »
No… I guess it's possible but I didn't find any document for Go to C. But where do you need to cast Go struct to C ?

7
General discussions / Re: Go binding for SFML
« on: July 19, 2012, 08:38:24 pm »
That's great! I'm also new on Go universe, so I don't know either if my binding would follow the right convention. I check out your work, is really great. Did you write it by hand or is it generated?
You follow the same convention as me, so I like it!

8
General discussions / Re: Go binding for SFML
« on: July 15, 2012, 12:24:41 pm »
I begin to bind some function, just the Window functions for testing.
But I have an error Cannot create a window from a worker thread. (OS X limitation). I sure is because of the thread go use for his runtime. But that mean on Mac OS X the binding can be hard to do because I can't force Go to execute my app in the main thread.

9
General / Re: SFML2 - Compile XCode template - link error
« on: July 12, 2012, 10:14:28 pm »
Thank you. I guess it was a bad idea to download the RC. Let's get back to git checkout and CMake.

10
General discussions / Re: Go binding for SFML
« on: July 12, 2012, 09:16:47 pm »
In fact SWIG will probably generate this intermediate C binding automatically for languages that can't link to C++.

Yes that's true. But SWIG will detect a class and bind it to go using interface and not giving the object struct pointer as first arguments.
Anyway, I'm sure the best is doing it by hand. I will try.

11
General discussions / Re: Go binding for SFML
« on: July 12, 2012, 11:33:10 am »
That's true, it's another possibilities, doing the Go binding from the C binding.
But it's a bit weird to do a binding from another binding, isn't? Seems not very clean… (maybe it's still the best idea)

12
General / SFML2 - Compile XCode template - link error
« on: July 12, 2012, 08:12:13 am »
I have just install SFML2 RC on my Mac with the wizard. I run Xcode and choose the SFML template. Then I try to compile it but I have a
Quote
ld: library not found for -lsfml-system-d
link error.

I have check /usr/local/lib and /Library/Framework and there no .a file just the .dylib. I guess that's why Xcode can't link.
It's the first time I develop with with Mac, but it's not weird not to have .a file for linking?

13
General discussions / Go binding for SFML
« on: July 12, 2012, 07:26:04 am »
Some weeks go I fell in love of Go (golang.org), and because I really like SFML I would like to use it with Go.
There is no binding yet, so instead of waiting for someone doing, I should do it myself.

Right now, the only way to bind C++ to Go is using SWIG. I have read an old post speaking about SWIG. Are PySFML and rbSFML using SWIG ?
Is there some work used for the previous binding I can use ?

14
General discussions / List of modifications from SFML 1.6 to 2.0
« on: October 24, 2011, 04:45:28 am »
Hi,
I have just saw the topic about the graphical API refactoring. Does it mean it's a bad idea to use unstable SFML 2.0 today because a lot of thing will change soon ?

Pages: [1]