Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: Timbergetter on December 30, 2014, 11:03:55 PM

Title: Updated Install Directions Sought
Post by: Timbergetter on December 30, 2014, 11:03:55 PM
I think my problem is a little more extensive than indicated in my previous post.  I have now tried to install the additional packages advised in “The Simple Guide To Compiling In Linux” with none of these packages being found.

What is the current advice for getting the Rockbox development package operating?  Do you stick with Ubuntu 11.04/11.10 and somehow track down the repositories for unsupported software, or do you restart with current Ubuntu release and try to deduce what had been added to / removed from the published 11.04 image?
Please consider that I am a Linux novice for most purposes
Title: Re: Updated Install Directions Sought
Post by: saratoga on December 30, 2014, 11:30:23 PM
If you use the Dev image you don't need to install anything most likely.

If you want to start from scratch then I would use a modern Ubuntu image.
Title: Re: Updated Install Directions Sought
Post by: [Saint] on January 02, 2015, 01:39:37 AM
This points to something VERY wrong with your system.

Not a single one of the packages listed in the Simple Guide are in any way exotic, in fact many are essential, and all are currently valid. The instructions work the same way now on any given debian-esque system as the day they were written.

Did you perhaps fail to update your sources list before trying this? Even so...I would expect at least one or two packages to be present, ALL of the packages failing is highly suspect.


[Saint]
Title: Re: Updated Install Directions Sought
Post by: saratoga on January 02, 2015, 01:40:58 AM
Its possible that the original ubuntu mirrors no longer exist given that the version is unsupported.  Can probably find new ones on google, but I don't see why you'd need to?
Title: Re: Updated Install Directions Sought
Post by: Timbergetter on January 02, 2015, 08:07:39 PM
I have gone back and started with a fresh Ubuntu image.
I have run apt-get update and found that “some index files failed to download.”
If I then issue apt-get install automake I get following result:

ubuntu@ubuntu-VirtualBox:/etc/apt$ sudo apt-get install automake
[sudo] password for ubuntu:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  autoconf autotools-dev m4
Suggested packages:
  autoconf2.13 autoconf-archive gnu-standards autoconf-doc libtool
The following NEW packages will be installed:
  autoconf automake autotools-dev m4
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,344 kB of archives.
After this operation, 4,735 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  m4 autoconf autotools-dev automake
Install these packages without verification [y/N]? y
Err http://it.archive.ubuntu.com/ubuntu/ oneiric/main m4 i386 1.4.16-1
  404  Not Found [IP: 193.206.139.45 80]
Err http://it.archive.ubuntu.com/ubuntu/ oneiric/main autoconf all 2.68-1ubuntu1
  404  Not Found [IP: 193.206.139.45 80]
Err http://it.archive.ubuntu.com/ubuntu/ oneiric/main autotools-dev all 20110511.1
  404  Not Found [IP: 193.206.139.45 80]
Err http://it.archive.ubuntu.com/ubuntu/ oneiric/main automake all 1:1.11.1-1ubuntu1
  404  Not Found [IP: 193.206.139.45 80]
Failed to fetch http://it.archive.ubuntu.com/ubuntu/pool/main/m/m4/m4_1.4.16-1_i386.deb  404  Not Found [IP: 193.206.139.45 80]
Failed to fetch http://it.archive.ubuntu.com/ubuntu/pool/main/a/autoconf/autoconf_2.68-1ubuntu1_all.deb  404  Not Found [IP: 193.206.139.45 80]
Failed to fetch http://it.archive.ubuntu.com/ubuntu/pool/main/a/autotools-dev/autotools-dev_20110511.1_all.deb  404  Not Found [IP: 193.206.139.45 80]
Failed to fetch http://it.archive.ubuntu.com/ubuntu/pool/main/a/automake1.11/automake_1.11.1-1ubuntu1_all.deb  404  Not Found [IP: 193.206.139.45 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

It seems that ubuntu 11.10 ran out of Support early in 2013 so is there a repository that I can add to sources.list that will find needed programs?

Attempting to install the following programs is met with “already newest version”:
  build.essential
  libc6-dev
  libsdl1.2-dev
  texinfo

Thanks Saint & saratoga for helping me here.  I hope you are able to push me a little further towards the start line.
Title: Re: Updated Install Directions Sought
Post by: saratoga on January 02, 2015, 08:29:13 PM
I don't understand what you're trying to do.  If you use the version we provide, you should already have automake, so no need to install it.

If you just go download a new Ubuntu image, it'll be the current version and therefore still be supported. 
Title: Re: Updated Install Directions Sought
Post by: Timbergetter on January 02, 2015, 09:48:58 PM
I am trying work through “The Simple Guide To Compiling In Linux” step by step.  The step that I am caught up on is the following:

After that, we need to install a few more things. Type sudo apt-get install automake bison build-essential ccache flex libc6-dev libgmp3-dev libmpfr-dev libsdl1.2-dev libtool texinfo and wait for a few more things to be downloaded.

I concluded from this instruction that these were the programs that needed to be installed because they were not part of the image.  Thus my attempt to install automake as a first step.

When I issue “automake” from a shell prompt I get the result “command not found”.

When I search through the file system I cannot find a file of that name.

If I just continue assuming all programs are in place and try to run rockboxdev.sh I get the following result:

“ubuntu@ubuntu-VirtualBox:~/Desktop/rockbox/tools$ sudo ./rockboxdev.sh
[sudo] password for ubuntu:
ROCKBOXDEV: "automake" is required for this script to work.
ROCKBOXDEV: Please install "automake" and re-run the script.
ubuntu@ubuntu-VirtualBox:~/Desktop/rockbox/tools$”

So that’s where I’m stuck at the moment.

Title: Re: Updated Install Directions Sought
Post by: Timbergetter on January 02, 2015, 10:05:12 PM
OK,

I have just reallised that the rockbox.txt document that comes with the image updates the Simple Instructions and having just issued:

cd build
../tools/configure

I seem to be on my way to my cross compiler.

Sorry for the mountain I've managed to build out of a mole hill and thanks again for your help.
Title: Re: Updated Install Directions Sought
Post by: saratoga on January 02, 2015, 10:09:27 PM
Yeah, like I said a few times you don't need to install anything with the dev image.  That is the entire point of the dev image. 
Title: Re: Updated Install Directions Sought
Post by: Timbergetter on January 03, 2015, 06:57:02 AM
Agree that is the point of a dev image.  I’ve made a few in my time.  The problem is that the document “The Simple Guide To Compiling In Linux” does not share that sentiment.

This document leads the new user into an attempt to install programs that lead to errors.  It continues by requiring the execution of the script rockboxdev.sh which fails in a way that claims support programs are missing.  It seems to me that this script is not required to be executed with is intended function being provided by the configure script.

Could I respectfully suggest that the Simple Guide be either updated to reflect the current build process or pulled from the documentation.  It caused me far more hassles than if I just applied the concise rockbox.txt directions included with the image, or alternatively listened a bit more attentively to your good self.
Title: Re: Updated Install Directions Sought
Post by: [Saint] on January 03, 2015, 07:30:04 PM
Agree that is the point of a dev image.  I’ve made a few in my time.  The problem is that the document “The Simple Guide To Compiling In Linux” does not share that sentiment.

This document leads the new user into an attempt to install programs that lead to errors.  It continues by requiring the execution of the script rockboxdev.sh which fails in a way that claims support programs are missing.  It seems to me that this script is not required to be executed with is intended function being provided by the configure script.

Could I respectfully suggest that the Simple Guide be either updated to reflect the current build process or pulled from the documentation.  It caused me far more hassles than if I just applied the concise rockbox.txt directions included with the image, or alternatively listened a bit more attentively to your good self.

I have no idea what you're talking about to be honest.

The documentation is correct, and it works exactly as intended.

It is you that is choosing to use some ancient, end of life, version of Ubuntu for whatever reason (its over three years old...). The documentation certainly didn't tell you to, mind you, we didn't tell you *not* to either...but it stands to reason, at least in my mind.

The issue is your use of an end of life distribution (https://wiki.ubuntu.com/LTS?action=AttachFile&do=get&target=ubuntu-release-cycle-2.png). Not our documentation. The documentation is correct, I cannot stress this enough.


EDIT:

I mean this in the nicest possible way, but I'm not terribly good at wording things sympathetically. It might seem harsh but that's not the intention at all. You even acknowledged in a prior post that you are fully aware that the distribution you're using is end of life, so I'm more than a little confused.


[Saint]