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
| | |-+  Make errors
« previous next »
  • Print
Pages: [1]

Author Topic: Make errors  (Read 4281 times)

Offline seren

  • Member
  • *
  • Posts: 8
Make errors
« on: May 28, 2011, 03:38:25 AM »
Hello,
I've spent several days trying to integrate a patch and compile.  I went through some trial and errors.  Finally I was able to put a Ubuntu virtual machine together and got the code version 29198, together with a patch to compile.
I followed the instruction, issued the command "../tools/configure".  It seemed to run fine.  This is what I got:

Platform set to sansae200
Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, (C)heckWPS, (D)atabase tool, (I)nstaller, (M)anual: (Defaults to N)
N
Normal build selected
Using source code root directory: /home/ubuntu/rockbox
Using arm-elf-eabi-gcc 4.4.4 (404)
Using arm-elf-eabi-ld 2.20.1.20100303
Created Makefile
ubuntu@ubuntu-desktop:~/rockbox/newbuild$

It looked fine, right?  But then when I tried to run the "make", this is what I got:

ubuntu@ubuntu-desktop:~/rockbox/newbuild$ make
/home/ubuntu/rockbox/tools/version.sh: 114: svnversion: not found
/home/ubuntu/rockbox/tools/version.sh: 114: svnversion: not found
Generating dependencies
/bin/sh: /home/ubuntu/rockbox/tools/addtargetdir.pl: not found
make: *** No rule to make target `/home/ubuntu/rockbox/newbuild/make.dep', needed by `all'.  Stop.
ubuntu@ubuntu-desktop:~/rockbox/newbuild$

Can someone tell me what I did wrong?  Is there any log file that I can look at that will tell me what I did wrong? 
Thanks.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Make errors
« Reply #1 on: May 28, 2011, 06:21:09 AM »
You're definitely missing the svn client on your machine, and parts of the source.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline seren

  • Member
  • *
  • Posts: 8
Re: Make errors
« Reply #2 on: May 28, 2011, 12:20:53 PM »
You are right about svn client.  I used Tortoise SVN client, download the source to my Windows box, then copy the whole thing into the Ubuntu virtual machine.  Thanks for your answer.  I'll install the svn client and try again.

Post Merge: May 28, 2011, 01:06:05 PM
OK.  I installed SVN client, and it seems to be a lot better now.  But I still got the missing addtargetdir.pl file from the tools directory.  Is that a downloaded file, or is that a created file? 

ubuntu@ubuntu-desktop:~/rockbox/newbuild$ make
Generating dependencies
/bin/sh: /home/ubuntu/rockbox/tools/addtargetdir.pl: not found
make: *** No rule to make target `/home/ubuntu/rockbox/newbuild/make.dep', needed by `all'.  Stop.
ubuntu@ubuntu-desktop:~/rockbox/newbuild$ make fullzip
Generating dependencies
/bin/sh: /home/ubuntu/rockbox/tools/addtargetdir.pl: not found
/bin/sh: /home/ubuntu/rockbox/tools/buildzip.pl: not found
make: *** [fullzip] Error 127
ubuntu@ubuntu-desktop:~/rockbox/newbuild$


Post Merge: May 28, 2011, 01:18:12 PM
OK.  I checked the rockboxk/tools directory and the addtargetdir.pl and buildzip.pl files are there.  So is this the case where the make process don't know how to find the tools directory?  How do I make it know where to find it?  I did both the "which arm-elf-eabi-gcc" and "which perl".
« Last Edit: May 28, 2011, 01:18:12 PM by seren »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Make errors
« Reply #3 on: May 28, 2011, 01:29:56 PM »
Delete your current check out and check it out again this time using the regular svn client.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Make errors
« Reply #4 on: May 28, 2011, 02:56:42 PM »
Do NOT use a Windows svn client to check out a working copy to be used with a Linux / Cygwin environment. This WILL break (well, unless you really know what you're doing).
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline seren

  • Member
  • *
  • Posts: 8
Re: Make errors
« Reply #5 on: May 28, 2011, 06:48:16 PM »
OK.  I downloaded the sources again, and redo the whole thing.  And it worked.  But now that I have a new rockbox-full.zip, how do I install it into my Sansa?  Sorry for the stupid question.  But I can't find how to install my compiled version with the Rockbox utility.
Logged

Offline gbl08ma

  • Member
  • *
  • Posts: 249
    • My blog
Re: Make errors
« Reply #6 on: May 28, 2011, 07:21:12 PM »
You extract that file on the root of your player (not inside any folders), overwriting any files and folders that already exist. That means, if the extraction creates folders like ".rockbox (2)", you have done it wrong.

Assuming the extraction was done properly, unplug your player and if it asks you to reboot it, select Yes, if it doesn't, shut it down manually then turn it on again. Your compiled version should run.
Logged
http://gbl08ma.com | http://i.tny.im

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Make errors
« Reply #7 on: May 28, 2011, 07:35:25 PM »
Rockbox Utility does (intentionally) not install builds other than the official ones. Follow the manual installation instructions.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline seren

  • Member
  • *
  • Posts: 8
Re: Make errors
« Reply #8 on: May 28, 2011, 09:59:06 PM »
Thanks for all your help.  Everything is working now including the extra sleep timer patch added.  It's a cool exercise
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Make errors
 

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

Page created in 0.085 seconds with 17 queries.