Page 1 of 1
bus error on mac os x 10.5
Posted: Mon Mar 23, 2009 3:29 am
by notmmao
I download source code from
http://downloads.sourceforge.net/love/l ... -0.tar.bz2.
then [./configure ;make ;sudo make install ].
finally i get a unix shell exec file named love.
when i run it,i get the bug error.
This is LOVE 0.5.0 (Salted Nuts).
INIT love.filesystem [PhysFS]
INIT love.graphics [OpenGL/DevIL/FreeType]
INIT love.audio [SDL_mixer]
INIT love.timer [SDL]
INIT love.mouse [SDL]
INIT love.keyboard [SDL]
INIT love.physics [Box2D]
INIT love.lib [LuaSocket]
INIT love.joystick [SDL]
INIT love.system [Generic]
Usage: love [FILE]
Examples:
love demo01.love
love /home/nyan/mygame
Bus error
thanks for read this words.
Re: bus error on mac os x 10.5
Posted: Mon Mar 23, 2009 12:31 pm
by appleide
If you really want to compile your own version, you need to use XCode, plus get all the necessary binaries and frameworks, which you can find in the current mac binary. I've uploaded some project files which you place in the source folder: love-0.5/platform/macosx . The project files can be found on svn trunk. I think they might be on some thread on the forums too...
Otherwise just download love.app mac binary from the download page!
Re: bus error on mac os x 10.5
Posted: Mon Mar 23, 2009 2:53 pm
by marzubus
I have also just tried to build on my iMac and have checked out the code from SVN:trunk
However when opening the trunk/platform/macosx/love.xcodeproj I get a error from xcode saying that
the project.pbxproj is missing. Can someone please check that into SVN?
Kegan
Re: bus error on mac os x 10.5
Posted: Mon Mar 23, 2009 10:52 pm
by appleide
I need a new SVN client... I think my current one saw my .xcodeproj has a file and only uploaded the directory not its contents........
Try and see if this works.
Re: bus error on mac os x 10.5
Posted: Tue Mar 24, 2009 3:25 am
by notmmao
appleide wrote:I need a new SVN client... I think my current one saw my .xcodeproj has a file and only uploaded the directory not its contents........
Try and see if this works.
ah,i have check out the svn trunk yesterday, it seems not complete.
thanks for upload the xcode porject file here.
In fact,I want to porting Love2d to Iphone,so i need recompile all the libraries which it's dependably.
first step is run it on Mac os x,appleide's UB contains some frameworks that ensures love2d run on mac os x,but i need those static library not framework.
Unfortunately,i get the bus error at the runtime.
...
when i use IL.Framework From the UB to replace libil.a which i compiled,it work well.
so i need to check the OpenIL and the bus error is not about love2d.
I'm sorry my English is so poor,hope you can understand my word.
Re: bus error on mac os x 10.5
Posted: Tue Mar 24, 2009 5:05 am
by appleide
when i use IL.Framework From the UB to replace libil.a which i compiled,it work well.
It's probably something to do with IL.framework then.... I had to make my own IL.framework too and IL's developer i think said he had trouble making everything works okay when he tried to do his own OS X framework. I didn't see any problems, so maybe I just skipped them without knowing.
What version of OS X do you use? 10.4, 10.5 etc?
If you need static library you might need to check the different licenses of the libs... IIRC you can't do it if they're LGPL.
Re: bus error on mac os x 10.5
Posted: Thu Apr 02, 2009 8:54 am
by notmmao
appleide wrote:
If you need static library you might need to check the different licenses of the libs... IIRC you can't do it if they're LGPL.
Thank you for the warning.
Finally, I use sdl_image replaced the devil.
Re: bus error on mac os x 10.5
Posted: Thu Apr 09, 2009 7:16 am
by appleide
Good luck with it!
By the way I've managed to compile the latest SVN and uploaded macosx xcode project files. (Should actually be there this time...)
If you're on mac and you want to compiled SVN version you need to replace all instances of "#include <alut.h>" with "#include <al.h>" .
Mac's OpenAL framework doesn't have alut.h header; apparently its not official or something, according to google search.
Reference:
http://developer.apple.com/qa/qa2006/qa1504.html
And you need SDL_sound.framework too. I had to take a couple of minutes to compile it myself.