Mac OSX port would be lovely

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Mac OSX port would be lovely

Post by rude »

You're my new hero. :)
appleide wrote:I want to ask, where does libpng come into this??? : / Why is it not loaded....
libpng is used by DevIL. I don't know why it isn't loaded ...
appleide wrote:However when I run love, it results in segmentation fault when loading the timer module.
What was the solution to this?
appleide wrote:My compiler (g++/gcc)
Which version?

I'll check out the MAC-source right away, then get back to you.

Awesome work!
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: Mac OSX port would be lovely

Post by appleide »

rude wrote:You're my new hero. :)
appleide wrote:I want to ask, where does libpng come into this??? : / Why is it not loaded....
libpng is used by DevIL. I don't know why it isn't loaded ...
I reinstalled libpng AND DevIL and everything worked fine. Time to clean up my system...
rude wrote:
appleide wrote:However when I run love, it results in segmentation fault when loading the timer module.
What was the solution to this?
I removed "-shared" so I had to put something else in. It was replaced by "-bundle -undefined dynamic_lookup"
rude wrote:
appleide wrote:My compiler (g++/gcc)
Which version?
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
i686-apple-darwin8-g++-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)

Not the newest one but I think that works too.

:)
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: Mac OSX port would be lovely

Post by appleide »

qubodup wrote:Image

If you have a mac and find LÖVE stylish: port it, will ya? :D
That image is so cool I am going to use it for my avatar
User avatar
qubodup
Inner party member
Posts: 775
Joined: Sat Jun 21, 2008 9:21 pm
Location: Berlin, Germany
Contact:

Re: Mac OSX port would be lovely

Post by qubodup »

appleide wrote:That image is so cool I am going to use it for my avatar
Awesome, but don't forget to ÖBEY! :)

(optional, recommended) ;)
Attachments
ÖBEY APPLES TASTY!
ÖBEY APPLES TASTY!
love_apples_90.png (5.08 KiB) Viewed 6586 times
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Mac OSX port would be lovely

Post by rude »

Ok, on appleide's request (PM), here are a few obey-enhanced Apple avatars:
apple-obey.png
apple-obey.png (5.76 KiB) Viewed 6575 times
apple-obey2.png
apple-obey2.png (8.76 KiB) Viewed 6576 times
apple-obey3.png
apple-obey3.png (5 KiB) Viewed 6576 times
Sorry for not PM'ing, but looks like I can't attatch files that way.

Now, about the modified source:

I tried compiling the modified source in Windows .. and it works (no warnings), so I guess we can just keep the changes. :) Need to try it in Linux, though. I keep finding SDLMain.h/SDLMain.m all over. Can we put it in platform/mac/ or something?
User avatar
appleide
Party member
Posts: 323
Joined: Fri Jun 27, 2008 2:50 pm

Re: Mac OSX port would be lovely

Post by appleide »

Thanks!! ^^ The images looks awesome!! You're my hero too since you made LOVE with your friend mike . :mrgreen:

It's not going to compile for Linux.
The make files, I changed all the .so extensions to .dylib and the LD flags.
Either we make another set of make files just for mac, or I make some XCode Project files. I might give that a go tonight or tomorrow morning.

Also I want to ask something.... There's different 'modules' for LOVE right? So are we going to place them in the LOVE folder, or put them in the user's preferences folder so when they upgrade they keep the modules ? Either would be okay. I would just go with windows for now because LOVE would update heaps and might break compatibility with those modules every several versions? There seems to be currently a different scheme for windows and linux... so I am not sure.
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: Mac OSX port would be lovely

Post by rude »

appleide wrote:made LOVE with your friend mike
Oh, the puns. You've seen the pun thread, right? :D
appleide wrote:It's not going to compile for Linux.
Not with those makefiles, no. I was referring to the source code. ^^

Oh, and if you want to make XCode project files, that would be awesome too. (But that's up to you).
appleide wrote:Also I want to ask something.... There's different 'modules' for LOVE right? So are we going to place them in the LOVE folder, or put them in the user's preferences folder so when they upgrade they keep the modules ? Either would be okay. I would just go with windows for now because LOVE would update heaps and might break compatibility with those modules every several versions?
The .dylib modules should be placed in the LOVE folder, if it is common to do it that way in MacOS. Like you said, using arbitrary versions will break compatibility at some point.
appleide wrote:There seems to be currently a different scheme for windows and linux... so I am not sure.
In Windows, it's (fairly) common to put .dlls in the installation folder. On Linux, it's (supposedly) common to put them in /usr/lib/<appname>, if installed properly.

The different "schemes" are just these:
  • In Windows, modules are assumed to be in the same folder as love.exe.
  • In Linux, modules will be loaded either from the same folder as the love binary, or from /usr/lib/love. (Checked in that order).
In any case, it was never the intention that user should update these modules themselves, so keep them out of preferences/home folders. ^^

8-)
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 258 guests