Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Compiling rockbox using a mac?
« previous next »
  • Print
Pages: 1 [2]

Author Topic: Compiling rockbox using a mac?  (Read 7737 times)

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: Compiling rockbox using a mac?
« Reply #15 on: October 24, 2008, 04:28:07 AM »
He's not using Linux...
Logged

Read The Manual Please

Offline robin0800

  • Member
  • *
  • Posts: 291
  • Freeman
Re: Compiling rockbox using a mac?
« Reply #16 on: October 24, 2008, 12:25:56 PM »
Well that is one of the symptoms I had and the path was not found because arm-elf-gcc  had not been made properly..
Logged

Offline brogan

  • Member
  • *
  • Posts: 17
Re: Compiling rockbox using a mac?
« Reply #17 on: October 24, 2008, 08:24:02 PM »
So what should I do? When I typed find / -name "arm-elf-gcc" -print, it said, find: /.Spotlight-V100/.journalHistoryLog: Permission denied
find: /.Spotlight-V100/.store.db: Permission denied
find: /.Spotlight-V100/_rules.plist: Permission denied
find: /.Spotlight-V100/ContentIndex.db: Permission denied
find: /.Spotlight-V100/store.db: Permission denied
find: /.Spotlight-V100: Permission denied
find: /.Trashes: Permission denied
,
So that didn't work, and like Godeater said, I'm not using Linux, so sudo CPPFLAGS=-U_FORTIFY_SOURCE ./rockboxdev.sh
, so that didn't work either.
What should I try doing, should I delete the files and rerun rockboxdev.sh? Thanks
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: Compiling rockbox using a mac?
« Reply #18 on: October 24, 2008, 08:54:10 PM »
Quote from: brogan on October 24, 2008, 08:24:02 PM
should I delete the files and rerun rockboxdev.sh?

That sounds like a good idea.  You probably need to run the script with sudo, too.
Logged

Offline brogan

  • Member
  • *
  • Posts: 17
Re: Compiling rockbox using a mac?
« Reply #19 on: October 24, 2008, 09:11:02 PM »
And so how do I run the script with sudo?
I deleted the files and reran rockboxdev.sh and i noticed that near the end in terminal it said,

make[3]: *** [crtbegin.o] Error 1
make[2]: *** [extra] Error 2
make[1]: *** [stmp-multilib] Error 2
make: *** [all-gcc] Error 2
ROCKBOXDEV: gcc/make install to /usr/local/arm-elf
/bin/sh ../gcc-4.0.3/mkinstalldirs /usr/local/arm-elf /usr/local/arm-elf
mkdir -p -- /usr/local/arm-elf /usr/local/arm-elf
mkdir: /usr/local/arm-elf: Permission denied
mkdir: /usr/local/arm-elf: Permission denied
make: *** [installdirs] Error 1
Cleaning up build folder

Done!

Make your PATH include :/usr/local/arm-elf/bin
============================ Summary ============================
target:              arm-elf
gcc version:         4.0.3
gcc patch:           rockbox-multilibs-arm-elf-gcc-4.0.3_2.diff
binutils:            2.16.1
installation target: /usr/local/arm-elf

When done, append /usr/local/arm-elf/bin to PATH

So there was no usr/local/arm-elf/ folder, it said permission denied and didn't create arm-elf/. Now what should I try doing? If I need to, I do have access to a vista. Thanks
« Last Edit: October 24, 2008, 09:13:04 PM by brogan »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Compiling rockbox using a mac?
« Reply #20 on: October 24, 2008, 09:14:19 PM »
Quote from: brogan on October 24, 2008, 09:11:02 PM

So there was no usr/local/arm-elf/ folder, it said permission denied and didn't create arm-elf. Now what should I try doing? If I need to, I do have access to a vista. Thanks


This is because you didn't run it with sudo.

Quote from: brogan on October 24, 2008, 09:11:02 PM
And so how do I run the script with sudo?

By typing sudo before the command, as noted in the instructions you said you were following.
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: Compiling rockbox using a mac?
« Reply #21 on: October 24, 2008, 10:02:43 PM »
Maybe my wording made it sound like there was a separate "script with sudo"?  I meant you need to run rockboxdev.sh ("the script") with sudo:
Code: [Select]
sudo ./rockboxdev.sh
Logged

Offline brogan

  • Member
  • *
  • Posts: 17
Re: Compiling rockbox using a mac?
« Reply #22 on: October 24, 2008, 11:16:45 PM »
Alright, thanks again.. I got rockboxdev.sh to work using sudo, so thanks, but when I type make, it says

Created Makefile
localhost:~/desktop/rockbox-18826/build _____$ make
Consider upgrading to GNU make 3.81+ for optimum build performance.
/Users/______/desktop/rockbox-18826/tools/svnversion.sh: line 1: svnversion: command not found
/Users/______/desktop/rockbox-18826/tools/svnversion.sh: line 1: svnversion: command not found
make[1]: `rdf2binary' is up to date.
make[1]: `convbdf' is up to date.
/usr/bin/gcc     codepages.c   -o codepages
ld: Undefined symbols:
_cp1250_to_uni
_cp1251_to_uni
_cp1256_to_uni
_cp932_table
_cp936_table
_cp949_table
_cp950_table
_iso8859_2_to_uni
_iso8859_7_to_uni
make[1]: *** [codepages] Error 1
make: *** [tools] Error 2


What do I need to do? Is there just some software I need to dowload/update?.... Thanks
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: Compiling rockbox using a mac?
« Reply #23 on: October 24, 2008, 11:52:54 PM »
You're missing subversion.  I don't have a Mac so I'm not sure if it was supposed to be included in Xcode or what...
Logged

Offline brogan

  • Member
  • *
  • Posts: 17
Re: Compiling rockbox using a mac?
« Reply #24 on: October 25, 2008, 11:45:10 AM »
So does anyone know where I can get subversion for Mac, or what to do.... Thanks
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Compiling rockbox using a mac?
« Reply #25 on: October 25, 2008, 11:58:30 AM »
http://www.google.com/search?q=subversion+on+mac+os+x
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline brogan

  • Member
  • *
  • Posts: 17
Re: Compiling rockbox using a mac?
« Reply #26 on: October 25, 2008, 05:17:01 PM »
Ok, I'm pretty sure I installed subversion and put it in the PATH, so now when I type make, it says,
Created Makefile
localhost:~/desktop/rockbox-18826/build _____$ make
Consider upgrading to GNU make 3.81+ for optimum build performance.
make[1]: `rdf2binary' is up to date.
make[1]: `convbdf' is up to date.
/usr/bin/gcc     codepages.c   -o codepages
ld: Undefined symbols:
_cp1250_to_uni
_cp1251_to_uni
_cp1256_to_uni
_cp932_table
_cp936_table
_cp949_table
_cp950_table
_iso8859_2_to_uni
_iso8859_7_to_uni
make[1]: *** [codepages] Error 1
make: *** [tools] Error 2

So what does this mean, did I install subversion? What's the problem? Thanks
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: Compiling rockbox using a mac?
« Reply #27 on: October 26, 2008, 06:35:50 AM »
Looks like subversion is installed properly, as evidenced by the lack of "svnversion: command not found" errors.

I'm not sure what's going on there.  You could try with a fresh build directory (i.e. create a new directory and do the ../tools/configure again).

If the source has been patched, perhaps the patch is broken.  You can do "svn revert -R ." in the rockbox-18826 directory to remove any patches, and then try compiling just the vanilla source.
Logged

Offline brogan

  • Member
  • *
  • Posts: 17
Re: Compiling rockbox using a mac?
« Reply #28 on: October 26, 2008, 10:59:32 AM »
Thanks, that's probably the problem, I used 3 different patches... so there's probably atleast one that didn't work right. So I'll try a new source. Thanks
Logged

  • Print
Pages: 1 [2]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Compiling rockbox using a mac?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.104 seconds with 14 queries.