forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mac mini

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
mharris



Joined: 25 Jan 2004
Posts: 155
Location: Annapolis, MD, USA

PostPosted: Sun Mar 06, 2005 5:27 am    Post subject: Mac mini Reply with quote

I just got a Mac mini. I love it.

I have successfully moved all my ps2dev crap from my ancient Linux machine (600MHz P3 w/ 128M RAM) to this little jewel, and everything's working wonderfully, including Oopo's toolchain, pksh, etc. A real unix system with an awesome UI... and for under US$800 (starting under $500, but I had to throw on a few extras ;-)

I may try my hand at getting Xcode to work. Seems like a decent IDE, anyone have any experience with getting it to work in a cross-development world?
Back to top
View user's profile Send private message AIM Address
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Mar 06, 2005 7:10 am    Post subject: Reply with quote

I've done Mac proggies in XCode... it's nice. I thought about using it for cross-platform, but never got around to trying it. If you get that going, please share - I'd love to move my PS2 development to my iMac and xcode. :)
Back to top
View user's profile Send private message AIM Address
Guest






PostPosted: Sun Mar 06, 2005 12:13 pm    Post subject: Reply with quote

How timely. I picked up a Mac mini last night.

I have been using my powerbook all along for dev work but wanted to setup the mini as a mini-server.

I also thought about trying out Xcode for the cross-compiler toolchain but it was only a thought since I have always been a command-line kinda guy. :)
Back to top
mharris



Joined: 25 Jan 2004
Posts: 155
Location: Annapolis, MD, USA

PostPosted: Mon Mar 07, 2005 2:30 am    Post subject: Reply with quote

gorim wrote:
I also thought about trying out Xcode for the cross-compiler toolchain but it was only a thought since I have always been a command-line kinda guy. :)
Yeah, me too, for the most part. I generally use Emacs (which does allow you to compile within the editor, and jump to compilation errors, which is handy), but I'd hardly call it an IDE...

And yes, I noticed that OSX does preinstall Emacs, but I'd rather get with the 1990s, at least...
Back to top
View user's profile Send private message AIM Address
Guest






PostPosted: Mon Mar 07, 2005 1:34 pm    Post subject: Reply with quote

My preferred IDE is "vi" + "make". 90s folx are wussies. :)
Back to top
dreamtime



Joined: 02 Feb 2004
Posts: 15
Location: Melbourne, Australia

PostPosted: Fri Mar 18, 2005 9:01 pm    Post subject: Reply with quote

Gorim, I prefer "vi" + "make" too.

So, do you guys know of any online tutorials for building MacOS apps using "make" (I don't mean just simple console apps)? I'm just starting to tinker with Carbon and Cocoa using Xcode...but can't seem to find any "Export Makefile" menu item to see some examples of how to use/link Nibs and Frameworks with Makefiles (i think that's what they were called).

I've had the Mini for about 3 weeks now and absolutely love it. It's probably the most versatile and sexy little box I've ever owned.
Back to top
View user's profile Send private message Visit poster's website
modman



Joined: 12 Feb 2005
Posts: 31
Location: Philadelphia, PA

PostPosted: Sat Mar 19, 2005 1:31 am    Post subject: Reply with quote

hi everyone

helpfull links?:

http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/PortingUnix.pdf

http://developer.apple.com/tools/gcc_overview.html

http://developer.apple.com/documentation/DeveloperTools/Conceptual/XcodeWorkflow/wf_basics/chapter_2_section_4.html

http://developer.apple.com/documentation/DeveloperTools/Conceptual/Build_System/index.html#//apple_ref/doc/uid/TP40001066

this last one is prob what your after:

http://developer.apple.com/documentation/DeveloperTools/Conceptual/Build_System/index.html#//apple_ref/doc/uid/TP40001066

and maybe an example will help (taken from some poor souls tarball):

http://staff.philau.edu/barberej/stuff/Makefile
_________________
SCPH-50001/N
HD SCPH-20401 U
Eyetoy SLEH-00031
Network Adaptor SCPH-10281
Logitech Z680 via FIber w00t!
Sony Wega TV + USB Keyboard
http://staff.philau.edu/barberej/
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
mharris



Joined: 25 Jan 2004
Posts: 155
Location: Annapolis, MD, USA

PostPosted: Sat Mar 19, 2005 2:50 am    Post subject: Reply with quote

dreamtime wrote:
...but can't seem to find any "Export Makefile" menu item to see some examples of how to use/link Nibs and Frameworks with Makefiles

From what I can gather, Xcode does not use makefiles at all, unless you specify that the project uses an external makefile (in which case you manage it yourself). As fas as I can tell, for native apps, all of the dependencies, etc. are all in the XML files that Xcode manages. It might not be super tough to write an XML-to-Makefile converter, especially since Java 1.4.2 (bundled with OSX) includes all of the Xerces XML classes...

In other news, I've got a ghetto cross-compiler environment set up in Xcode, so that it builds EE elfs, highlights compile-time errors, etc. 'Executing' the elf calls the pksh eeexec binary. It's based on the 'external makefile' project type, and is still pretty kludgey, but as a proof-of-concept, it seems to do everything it needs to do.

I had to add a file, ~/.MacOSX/environment.plist to set the environment variables (.bash_profile is only executed when you're in a terminal session):
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>PS2DEV</key>
        <string>/usr/local/ps2dev</string>
        <key>PS2SDK</key>
        <string>/usr/local/ps2dev/ps2sdk</string>
</dict>
</plist>

I also had to change $(PS2DEV)/Makefile.prefs to insert the full pathnames:
Code:
EE_PREFIX = ee-
EE_CC = $(PS2DEV)/ee/bin/$(EE_PREFIX)gcc
EE_CXX= $(PS2DEV)/ee/bin/$(EE_PREFIX)g++
EE_AS = $(PS2DEV)/ee/bin/$(EE_PREFIX)as
EE_LD = $(PS2DEV)/ee/bin/$(EE_PREFIX)ld
EE_AR = $(PS2DEV)/ee/bin/$(EE_PREFIX)ar
EE_OBJCOPY = $(PS2DEV)/ee/bin/$(EE_PREFIX)objcopy
EE_STRIP = $(PS2DEV)/ee/bin/$(EE_PREFIX)strip

IOP_PREFIX = iop-
IOP_CC = $(PS2DEV)/iop/bin/$(IOP_PREFIX)gcc
IOP_AS = $(PS2DEV)/iop/bin/$(IOP_PREFIX)as
IOP_LD = $(PS2DEV)/iop/bin/$(IOP_PREFIX)ld
IOP_AR = $(PS2DEV)/iop/bin/$(IOP_PREFIX)ar
IOP_OBJCOPY = $(PS2DEV)/iop/bin/$(IOP_PREFIX)objcopy
IOP_STRIP = $(PS2DEV)/iop/bin/$(IOP_PREFIX)strip
Back to top
View user's profile Send private message AIM Address
mharris



Joined: 25 Jan 2004
Posts: 155
Location: Annapolis, MD, USA

PostPosted: Sat Mar 19, 2005 5:42 am    Post subject: Reply with quote

Quote:
As fas as I can tell, for native apps, all of the dependencies, etc. are all in the XML files that Xcode manages. It might not be super tough to write an XML-to-Makefile converter, especially since Java 1.4.2 (bundled with OSX) includes all of the Xerces XML classes...

Oops, they're not XML, it's a mixture of some sort of pseudo-C code and some binary files. The text files are probably still failrly easy to parse if you have decent skills with flex and bison. The binaries in (*.pbxindex) appear to be just for source-code browsing, etc., but I'm not sure of that. In any event, the text files are probably sufficient to generate a makefile, once you analyze their structure.

I just tried xcodebuild, the command-line version of xcode. I'm at work and ssh'd into the mini at home: it works :-)
Back to top
View user's profile Send private message AIM Address
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sat Mar 19, 2005 7:16 am    Post subject: Reply with quote

If you're looking for an editor with syntax hilighting, support for projects, setting the environment vars, and running makefiles, try CUTE. It's really nice. It's got just the right balance of general project support versus monstrous project handling that takes months to learn (cough - eclipse - cough).

It's a small program meant to handle things just like PS2Dev. Give it a try - maybe it'll become the standard project manager for PS2Dev.

One note - they're close to releasing the Windows version. If you use Windows for PS2Dev, you might email to guy testing the Windows version to see if he'll let you help "test" it as well. ;)

I just installed the i386 RPM on my FC3 setup and it works nice. One note there - the RPM complains about two missing dependencies which really aren't missing. Just use "--nodeps" when installing to get around that.
Back to top
View user's profile Send private message AIM Address
dreamtime



Joined: 02 Feb 2004
Posts: 15
Location: Melbourne, Australia

PostPosted: Mon Mar 21, 2005 10:49 pm    Post subject: Reply with quote

@modman & mharris: Thanks guys. Exactly what I was after. Modman, thanks for the sample Makefile.

@J.F: I could never use something called CUTE! :) Vim all the way!!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> General Discussion All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group