SDL 2 and OSx?

Mac OSX specific forum
Poshu
Enthusiast
Enthusiast
Posts: 459
Joined: Tue Jan 25, 2005 7:01 pm
Location: Canada

SDL 2 and OSx?

Post by Poshu »

Hello there,
I was wanting to use SDL 2 for its joystick features, but the readme tells me that :
To Install:
Copy the SDL2.framework to /Library/Frameworks

You may alternatively install it in <Your home directory>/Library/Frameworks
if your access privileges are not high enough.
Is there no other way? That would make program distribution hellish...
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: SDL 2 and OSx?

Post by luis »

You can use the .dylib from any dir you have access to, just use openlibrary with the right path.
"Have you tried turning it off and on again ?"
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: SDL 2 and OSx?

Post by Danilo »

I think you just add the framework to your *.app file. Look at some other applications,
they have a 'Framework' directory within the app file.

Check out topic "Import : EndImport - path?" for changing .dylib import directory/path by using install_name_tool,
and verify it by using otool. That's very important sometimes.

Found the trick in the book 'The Complete Friday Q&A: Volume I', which is a centralization of the blog at Mike Ash: Friday Q&A for Mac OS X/Cocoa ;)

Also check out: Mike Ash: Glider - First HD Video

Remembers me on my holiday 2013 in Zillertal/Austria, paragliding in the Alps:
- Danilo_-_Mega-Flug.mp4
- Danilo_-_Thermikflug_(1h_20min).mp4

And highest Bungee jumping from a bridge here in Europe ('Europabrücke' in Austria), 3rd highest Bungee in the world (192 meters):
- Bungee1.mp4

I think this is fun. My wife did also paragliding, I am so proud of her. First flight was
only 20 minutes, quite OK. Doing skydiving for 3 years myself before, it was no problem
for me. We wanted to do second flight for 2 or 3 hours by using thermal winds, but after
1 hour my wife had enough up and downs. :D
After 1 hour and 20 minutes I was satisfied too, so we just landed. My wife didn't want
to make the highest Bungee Jump in Europe, so I just did it myself. Just had to do it,
after I found it on Internet. :)
Believe me or not, it was the first time I really was worried somehow. Turning 37 years old in
2 month, married for over 5 years, having a house and 3,200 square meters ground in Thailand,
I was worried for the very first time in my life. The night before the big jump I couldn't sleep well.
I was worried first time in my life -- maybe I'm just too old now? Danilo, just getting old?
You just jump into nothing, and having nothing to loose, you just do it.Having family, kids and a house,
you become more careful automatically. Crazy, isn't it? :D

OK, I am still alive. Flying is the coolest thing in the world. My wife still loves me, although I am
a little bit crazy. Just doing crazy stuff and thinking big... I would like you to do the same.
Never give up, follow your dreams, and just do what you want to do. Freedom forever!
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: SDL 2 and OSx?

Post by srod »

I started paragliding lessons at the end of last summer, but the bad weather eventually got in the way. Am trying to save right now for a new wing and all necessary bits and bobs, but, boy, is it expensive! Might take me a while before I can purchase my own equipment. Great fun though, if a little scary at times! :) Managed to crash land once so far which hurt a tad. Still, nothing ventured, nothing gained... even if my only 'gain' is a gaping hole where my teeth used to be! :)
I may look like a mule, but I'm not a complete ass.
User avatar
Danilo
Addict
Addict
Posts: 3036
Joined: Sat Apr 26, 2003 8:26 am
Location: Planet Earth

Re: SDL 2 and OSx?

Post by Danilo »

Good luck for next summer! Sounds like you had some fun already... :D
Post Reply