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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Seriously Need Some Help With Building Errors
« previous next »
  • Print
Pages: [1]

Author Topic: Seriously Need Some Help With Building Errors  (Read 4286 times)

Offline GuitarRocker2562

  • Member
  • *
  • Posts: 57
Seriously Need Some Help With Building Errors
« on: July 01, 2007, 12:25:03 AM »
OK, I am learning to compile RockBox for my iPod, and I can do it, the build works and
everything, but every single time I want to run make (after configuring) I ALWAYS need to add /usr/local/arm-elf/bin to my PATH via this command "PATH=$PATH:/usr/local/arm-elf/bin" and it can be a real pain in the butt. How do I fix this. If it matters (and it might) I am using ubuntu 7.04 (Feisty Fawn) to do this.


P.S. A less annoying problem, but still a problem is that every time I type the command "make zip" I get these errors

cp: cannot stat `/home/ian/Rockbox/Building/rockbox-20070630/apps/plugins/sokoban.levels': No such file or directory
cp: cannot stat `/home/ian/Rockbox/Building/rockbox-20070630/docs/sample.icons': No such file or directory
beep, no dir to copy WPS from!

It is worth noting that I still get a ZIP file and I seem to have no problem using it on my iPod.
« Last Edit: July 01, 2007, 10:47:17 PM by GuitarRocker2562 »
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: WTH? Seriously Need Some Help
« Reply #1 on: July 01, 2007, 10:14:41 AM »
1,  Please use a descriptive line for your Subject line, in posting.  Otherwise, a great number of postings here would have the same unhelpful Subject heading, "Need help," and no one will look inside the threads.  And you may want to try putting compiling issue questions under the Getting Started and Compiling board.

2.  Did you try searching here?  See if this helps you.

http://forums.rockbox.org/index.php?topic=10680.msg81434;topicseen#msg81434

Quote
This worked for me in an equivalent circumstance, where the m68k file could not be found:

Edit the .bash_profile file in your home directory (cygwin\home\[your name]\.bash_profile), to include the path line at top,

PATH=/opt/m68k/bin:${PATH}

Use Notepad++ or a similar code editor to edit the file (seemingly NOT Windows WordPad or NotePad, which add in line endings).  Notepad++ is freely available (for free) on the web.

Presumably, here for you, you would add the path line to the .bash_profile file,

PATH=/opt/arm/bin:${PATH}

As it was explained in a thread here, the path line change can be added into a different file, as noted in the Rockbox Cygwin install instructions, but that file would get overwritten with a new Cygwin version install; the solution here, recommended in the forums, is said to avoid that issue.

I hope this helps.

3.  With all due respect, the issues noted in your post, each of which doesn't impede ultimate use, don't seem to rise to your "WTH" level, although the first is an irritation, admittedly (and hopefully now is solved).  Perhaps save that for when the compiler won't compile or Rockbox won't rock?  I've also gotten messages similar to the error messages you received and they never have impeded use--I have assumed that they related to files that were deleted for whatever reason and they always have gone away over time, presumably as links/commands/files were amended.
« Last Edit: July 01, 2007, 10:32:10 AM by Mikerman »
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: WTH? Seriously Need Some Help
« Reply #2 on: July 01, 2007, 10:46:33 AM »
A simple solution would be to use SVN instead of the source archive, for the second one.
Logged

Offline GuitarRocker2562

  • Member
  • *
  • Posts: 57
Re: Seriously Need Some Help With Building Errors
« Reply #3 on: July 01, 2007, 10:48:35 PM »
Ok, I changed the name. Anyway, I know nothing about svn, when I type svn in the terminal it says it isn't installed, where can I go to install it, and how do I use it? I have never built any program before, ever.
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: Seriously Need Some Help With Building Errors
« Reply #4 on: July 02, 2007, 12:23:43 AM »
First, you know, don't you, that you don't have to download the source code and compile it, but can download the already compiled code in the Downloads section, right?  That's the easiest way to get Rockbox.  I assume that you are downloading the source and compiling it so that you can add patches, but I just wanted to make sure.

Second, for a guide to SVN and compiling, a good source:  http://www.rockbox.org/twiki/bin/view/Main/SimpleGuideToCompiling.  Also helpful, http://www.rockbox.org/twiki/bin/view/Main/DevelopmentGuide,  http://www.rockbox.org/twiki/bin/view/Main/HowToCompile, and http://www.rockbox.org/twiki/bin/view/Main/UsingSVN.  A main benefit of using SVN is that you only need to download the updated code when you update, and not the entire code; SVN gets that for you automatically.  Assuming that you already are compiling, using SVN should be a piece of cake.

Good luck--
Logged

Offline GuitarRocker2562

  • Member
  • *
  • Posts: 57
Re: Seriously Need Some Help With Building Errors
« Reply #5 on: July 02, 2007, 03:15:47 PM »
I know I can download the binary, but I am compiling because I want to learn how to add patches and eventually offer a custom build for iPod users like Senab used to do.
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: Seriously Need Some Help With Building Errors
« Reply #6 on: July 02, 2007, 04:40:57 PM »
Did you _try_ following the guides for either cygwin, vmware or colinux?
Logged

Offline krazykit

  • Member
  • *
  • Posts: 105
    • Biomoose
Re: Seriously Need Some Help With Building Errors
« Reply #7 on: July 02, 2007, 06:28:21 PM »
Quote from: Bagder on July 02, 2007, 04:40:57 PM
Did you _try_ following the guides for either cygwin, vmware or colinux?

And note that while these are for Windows, most of the steps are close enough that you should be able to figure out what needs to be done to get it working properly on a *nix system.
Logged

Offline GuitarRocker2562

  • Member
  • *
  • Posts: 57
Re: Seriously Need Some Help With Building Errors
« Reply #8 on: July 03, 2007, 02:05:42 AM »
I used this guide: http://www.rockbox.org/twiki/bin/view/Main/HowToCompile
Logged

Offline GuitarRocker2562

  • Member
  • *
  • Posts: 57
Re: Seriously Need Some Help With Building Errors
« Reply #9 on: July 03, 2007, 02:33:09 AM »
my dirty fix to this is a script I wrote, but is there any way to fix that stupid PATH thing? The script is below.

PATH=$PATH:/usr/local/arm-elf/bin
cd ~/Rockbox/Building/rockbox-latest/build/
../tools/configure
make
make fullzip
Logged

Offline robin0800

  • Member
  • *
  • Posts: 291
  • Freeman
Re: Seriously Need Some Help With Building Errors
« Reply #10 on: July 03, 2007, 04:46:30 PM »
This is Step 4 Of Setting up cygwin on windows

Step 4: Add the cross-compiler directory to your path
To successfully compile rockbox, the cross compiler directory has to be in your path.

This is automatically done by the installation script. If that fails for some reason, there are a couple ways of doing so, here's one:

Edit using nano or vi (not Notepad or Wordpad in Windows) /etc/profile and add ":/opt/sh/bin:/opt/m68k/bin:/opt/arm/bin" (without the quotation marks) to the end of the line that says:

     PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin...
so that it reads:      PATH=/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/opt/sh/bin:/opt/m68k/bin:/opt/arm/bin:$PATH
Save the changes, exit cygwin and restart cygwin.

This may help with your path problem.
Logged

Offline Mikerman

  • Artist
  • Member
  • *
  • Posts: 721
Re: Seriously Need Some Help With Building Errors
« Reply #11 on: July 03, 2007, 10:06:22 PM »
And did you tried what I noted above, with the bash file?  Worked without a hitch for me.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Seriously Need Some Help With Building Errors
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.144 seconds with 22 queries.