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

Author Topic: SFML 2 for OS X comes true!  (Read 95024 times)

0 Members and 1 Guest are viewing this topic.

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
SFML 2 for OS X comes true!
« Reply #150 on: April 03, 2011, 01:52:59 pm »
From what I read, the dynamic libraries on Mac OS X are now correctly built and linked against the 10.5 SDK if one chooses to do so. But it's being built for Intel 64 bits only (though you were doing good while you were planning to support PPC). I suppose the libraries should be built for Intel 32 bits too.
Want to play movies in your SFML application? Check out sfeMovie!

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
SFML 2 for OS X comes true!
« Reply #151 on: April 03, 2011, 05:51:32 pm »
Yes, I'm aware of this and, in fact, it's already fixed on my local git repo. I didn't release it yet because I'm working on the frameworks now.  :wink:
SFML / OS X developer

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
SFML 2 for OS X comes true!
« Reply #152 on: April 03, 2011, 05:56:09 pm »
Great :D
I don't know how you'll handle the install name thing but I'd love to see that, because I tried to set it with CMake but I couldn't get it working.
Want to play movies in your SFML application? Check out sfeMovie!

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
SFML 2 for OS X comes true!
« Reply #153 on: April 03, 2011, 06:07:49 pm »
Well, I'll have to use the cmake mailing list to figure it out. So you might not see the update tomorrow.
SFML / OS X developer

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
SFML 2 for OS X comes true!
« Reply #154 on: April 10, 2011, 12:38:19 pm »
According to the cmake mailing list (that is, 0 answer is two weeks) this is kind of tricky.  :?

Would anyone be offended if both release and debug Frameworks have exactly the same name (without -d for debug) ?
SFML / OS X developer

mercurio7891

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
SFML 2 for OS X comes true!
« Reply #155 on: April 13, 2011, 04:44:01 pm »
if the frame work has the same name, does it mean we have to use hard path in the command line??

e.g

g++ -framework Cocoa -framework /sfml/release/sfml test.c
g++ -framework Cocoa -framework /sfml/debug/sfml test.c

regards

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
SFML 2 for OS X comes true!
« Reply #156 on: April 13, 2011, 08:14:04 pm »
What do you want to do? (the lines you wrote don't mean anything)
Want to play movies in your SFML application? Check out sfeMovie!

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
SFML 2 for OS X comes true!
« Reply #157 on: April 13, 2011, 08:14:42 pm »
Unfortunately yes.

(I think he want to say something like
Code: [Select]
g++ -framework Cocoa -framework /somePath/sfml-system.framwork test.c
where somePath depends on the configuration debug vs release.
Maybe one can play with -F option but this would have other issue at runtime I think.
Am I right ? )

There is another way to handle debug/release frameworks with the same name but I have no clue how to do it with cmake (I've found nothing in the mailing list archives to help me). Moreover, I don't know how to use it with gcc (well, Google should know...).

It consists in adding a second binary to the framework (let's say sfml-system) by appending _debug to the release binary name. So the framework should looks like :

Code: [Select]

sfml-system.framework/
                      sfml-system            (release binary)
                      sfml-system_debug
                      Versions/
:
:


So if any of you guys know how to do it please step forward. =)
SFML / OS X developer

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Want to play movies in your SFML application? Check out sfeMovie!

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
SFML 2 for OS X comes true!
« Reply #159 on: April 13, 2011, 09:14:46 pm »
Yes, I've already read this one and the answer is not so conclusive. http://www.cmake.org/pipermail/cmake/2008-August/023326.html

Anyway, thanks for the input.
SFML / OS X developer

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
SFML 2 for OS X comes true!
« Reply #160 on: April 13, 2011, 09:33:42 pm »
What about this? http://developer.apple.com/library/mac/#technotes/tn2004/tn2124.html%23SECDEBUGLIB

Edit: and when looking at the dyld man page you can have some more information about the DYLD_IMAGE_SUFFIX env var.
Want to play movies in your SFML application? Check out sfeMovie!

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
SFML 2 for OS X comes true!
« Reply #161 on: April 24, 2011, 07:18:45 pm »
I haven't the time to try it more deeply, however I've sent a second email to cmake mailing list during last week and still haven't got any answer... I'm kind of disappointed by this.
SFML / OS X developer

vidjogamer

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
SFML 2 for OS X comes true!
« Reply #162 on: May 01, 2011, 05:11:32 am »
Whats the status on SFML 2.0 development for Mac?

Do we have any projected dates for completion?
What are the current issues?

Keep up the good work guys! =)

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
SFML 2 for OS X comes true!
« Reply #163 on: May 01, 2011, 11:46:44 am »
It's almost done : the main features are available and working.

You can find the remaining tasks and issues here : https://github.com/SFML/SFML/issues/assigned/mantognini

But I can't give you any date for complete completion.
SFML / OS X developer

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
SFML 2 for OS X comes true!
« Reply #164 on: May 01, 2011, 12:09:58 pm »
I don't remember if we already discussed this... anyway :

Currently, that is with OS X 10.5 and 10.6, OpenGL 2.1 is the highest version supported (by software rendering at least). Moreover, there is no way to create a context against any specific version of OpenGL on Mac.

(For the curious among you : http://developer.apple.com/graphicsimaging/opengl/capabilities/ )

Maybe something should be written in the doc/tutorial/whatever to make sure the SFML-users are aware of that.

I hope this will change with 10.7 coming out...
SFML / OS X developer

 

anything