Rockbox Development > Starting Development and Compiling

Compiling rockbox using a mac?

(1/6) > >>

brogan:
I was wondering if someone can explain in detail how i could compile rockbox onto my nano using a macintosh(10.39)... I already have rockbox on my ipod, and i just figured out how to apply a patch to the source, but now im stuck on compiling, please help.. thanks

saratoga:
http://www.rockbox.org/twiki/bin/view/Main/DevelopmentGuide

brogan:
um... im still confused, it seems like everything is focused on compiling for windows or linux, and the linux part says.. "(or any unix based os)" .. or something like that so does that mean macs also.. or what.
and what exactly is a crosscompiler, what does that mean...
i tried following a simpleguidetocompiling, but i got stuck when it said to type make into terminal it. terminal said it wasn't a command, and apparrantly it's a linux command, and so how am i supposed to compile, if i don't know a compile command.... sorry if this didn't make sense, and i know i probably mixed things up, but thanks for your help


(*Chronon removed slang)

linuxstb:
A compiler is a program that takes source code and compiles it into executable code for a specific processor/architecture.

A cross-compiler is simply a compiler that you run on one architecture (the "host" - e.g. your Mac) and compiles source code to run on another architecture (the "target" e.g. your Nano).  A normal compiler is one where host and target are the same.

Firstly, you'll need to make sure you have all the standard OS X development tools installed (this includes programs such as "make" - a standard Unix command, NOT specific to Linux).  To do this, install "xcode" from Apple - if a copy didn't come on the CD/DVDs with your Mac, you can download it from Apple.

After that, the Linux/Unix instructions should work.

brogan:
thanks, that explained alot ...
alright, but i still want to make sure im doing this right...
so i followed the instructions here: http://www.rockbox.org/twiki/bin/view/Main/LinuxSimpleGuideToCompiling
after i dowloaded xcode legacy version(i have mac 10.39) from here: https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/304/wo/4l5Kl1PHgSVh2z60PUDKtFZmiGy/3.1.17.2.1.3.3.1.1.1.1.0.3.3.3.3.1

the problem was when the instructions said to type "make".. as before it said it wasn't a command
maybe i didn't download xcode right, but im pretty sure atleast i installed it right, jus maybe not the right version, please help
thanx

Navigation

[0] Message Index

[#] Next page

Go to full version