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
| | |-+  Setting up Build Environment
« previous next »
  • Print
Pages: [1]

Author Topic: Setting up Build Environment  (Read 4169 times)

Offline Stringrazor

  • Member
  • *
  • Posts: 36
Setting up Build Environment
« on: October 27, 2010, 06:34:53 PM »
I have been trying to follow the guide at http://www.rockbox.org/wiki/LinuxSimpleGuideToCompiling and it's anything but simple. I am using a Virtualbox Unbuntu 9.10 image. First off, I could not install SVN. apt-get would download some libs but not others("unable to fetch some archives"). Yes, I googled and tried a bunch of suggested fixes bit nothing worked. I finally installed RapidSVN and succeeded in checking out the code.

Now, sudo apt-get install build-essential libc6-dev texinfo libgmp3-dev libmpfr-dev is giving me the same "unable to fetch some archives" messages.

I've already spent way more time than I should have on this. I am not  a Linux app dev. Can someone please help me out?
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4384
Re: Setting up Build Environment
« Reply #1 on: October 27, 2010, 08:10:54 PM »
Just to be sure, you were trying to install "subversion" not "SVN", right?

People will be able to provide more detailed help if you tell us exactly which packages aren't installing.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline Stringrazor

  • Member
  • *
  • Posts: 36
Re: Setting up Build Environment
« Reply #2 on: October 27, 2010, 08:21:34 PM »
Yes, I meant subversion.

Here's the latest roadblock:


ubuntu@ubuntu-desktop:~/tools$ sudo apt-get install build-essential libc6-dev texinfo libgmp3-dev libmpfr-dev
[sudo] password for ubuntu:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  cpp-4.4 dpkg-dev fakeroot g++ g++-4.4 gcc-4.4 gcc-4.4-base libc-bin
  libc-dev-bin libc6 libc6-i686 libgcc1 libgomp1 libstdc++6 libstdc++6-4.4-dev
Suggested packages:
  gcc-4.4-locales debian-keyring debian-maintainers g++-multilib
  g++-4.4-multilib gcc-4.4-doc libstdc++6-4.4-dbg gcc-4.4-multilib
  libmudflap0-4.4-dev libgcc1-dbg libgomp1-dbg libmudflap0-dbg libcloog-ppl0
  libppl-c2 libppl7 glibc-doc manpages-dev libgmp3-doc libstdc++6-4.4-doc
  texlive-base texlive-latex-base texlive-generic-recommended
  texinfo-doc-nonfree
Recommended packages:
  libstdc++-dev
The following NEW packages will be installed:
  build-essential dpkg-dev fakeroot g++ g++-4.4 libgmp3-dev libmpfr-dev
  libstdc++6-4.4-dev texinfo
The following packages will be upgraded:
  cpp-4.4 gcc-4.4 gcc-4.4-base libc-bin libc-dev-bin libc6 libc6-dev
  libc6-i686 libgcc1 libgomp1 libstdc++6
11 upgraded, 9 newly installed, 0 to remove and 328 not upgraded.
Need to get 19.1MB/26.4MB of archives.
After this operation, 28.7MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com karmic-updates/main libc-bin 2.10.1-0ubuntu18 [714kB]
Get:2 http://archive.ubuntu.com karmic-updates/main libc6 2.10.1-0ubuntu18 [3,871kB]
Get:3 http://archive.ubuntu.com karmic-updates/main libc-dev-bin 2.10.1-0ubuntu18 [206kB]
Get:4 http://archive.ubuntu.com karmic-updates/main libc6-dev 2.10.1-0ubuntu18 [4,772kB]
Get:5 http://archive.ubuntu.com karmic-updates/main gcc-4.4 4.4.1-4ubuntu9 [2,976kB]
Get:6 http://archive.ubuntu.com karmic-updates/main g++-4.4 4.4.1-4ubuntu9 [4,701kB]
Get:7 http://archive.ubuntu.com karmic-updates/main dpkg-dev 1.15.4ubuntu2.2 [572kB]
Get:8 http://archive.ubuntu.com karmic/main fakeroot 1.12.4ubuntu1 [126kB]
Get:9 http://archive.ubuntu.com karmic/main libgmp3-dev 2:4.3.1+dfsg-1ubuntu3 [666kB]
Get:10 http://archive.ubuntu.com karmic/main texinfo 4.13a.dfsg.1-4ubuntu1 [533kB]
Fetched 15.1kB in 58s (257B/s)               
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc-bin_2.10.1-0ubuntu18_i386.deb  Size mismatch
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6_2.10.1-0ubuntu18_i386.deb  Size mismatch
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc-dev-bin_2.10.1-0ubuntu18_i386.deb  Size mismatch
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/e/eglibc/libc6-dev_2.10.1-0ubuntu18_i386.deb  Size mismatch
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.4/gcc-4.4_4.4.1-4ubuntu9_i386.deb  Size mismatch
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-4.4/g++-4.4_4.4.1-4ubuntu9_i386.deb  Size mismatch
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/d/dpkg/dpkg-dev_1.15.4ubuntu2.2_all.deb  Size mismatch
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/f/fakeroot/fakeroot_1.12.4ubuntu1_i386.deb  Size mismatch
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gmp/libgmp3-dev_4.3.1+dfsg-1ubuntu3_i386.deb  Size mismatch
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/t/texinfo/texinfo_4.13a.dfsg.1-4ubuntu1_i386.deb  Size mismatch
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9140
Re: Setting up Build Environment
« Reply #3 on: October 27, 2010, 08:24:06 PM »
Do you have internet access in the VM?  It looks like nothing downloaded.
Logged

Offline Stringrazor

  • Member
  • *
  • Posts: 36
Re: Setting up Build Environment
« Reply #4 on: October 27, 2010, 08:46:32 PM »
yes, I have access. Some things had already downloaded. That was the 4th or 5th time I ran the command. As I mentioned, I was able to Dl & install RapidSVN and using that checkout the RB code, so I indeed have internet access.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9140
Re: Setting up Build Environment
« Reply #5 on: October 27, 2010, 08:55:33 PM »
Quote from: Stringrazor on October 27, 2010, 08:46:32 PM
yes, I have access. Some things had already downloaded. That was the 4th or 5th time I ran the command. As I mentioned, I was able to Dl & install RapidSVN and using that checkout the RB code, so I indeed have internet access.

Thats weird.  I'd guess something is wrong with the VM image or your install.  Maybe try using the vm image we provide, or installing ubuntu from scratch.
Logged

Offline Stringrazor

  • Member
  • *
  • Posts: 36
Re: Setting up Build Environment
« Reply #6 on: October 28, 2010, 12:26:21 AM »
#@&# netnanny was blocking access to the libs. Worked fine from home.

Could you point me to the VM image you mentioned?
Logged

Offline yapper

  • Rockbox Expert
  • Member
  • *
  • Posts: 794
Re: Setting up Build Environment
« Reply #7 on: October 28, 2010, 05:04:32 AM »
http://www.rockbox.org/wiki/VMwareDevelopmentPlatform
Logged
G2 iPod 20GB / Sansa c240 v1 + 2GB microSD / Sansa c250 v1 / Sansa e250 v1 + 8GB microSDHC / Sansa Fuze v2 + 32GB microSDHC

Offline Stringrazor

  • Member
  • *
  • Posts: 36
Re: Setting up Build Environment
« Reply #8 on: October 28, 2010, 12:12:51 PM »
Thanks!

Next todo...getting the simulator running....
« Last Edit: October 29, 2010, 01:28:12 PM by Stringrazor »
Logged

Offline Stringrazor

  • Member
  • *
  • Posts: 36
Re: Setting up Build Environment
« Reply #9 on: November 21, 2010, 01:26:40 PM »
I finally had some time to check out the build I made. My goal was to change the USB ID so my new car head unit would not try to treat it as an iPod. That worked but after playing around with the version I built for a while, I found that it would not process WPS settings. No matter what I give it, the WPS doesn't change from the default. Of course, reverting to a previous version enables WPS settings once again so something must be wrong with my build.  Any idea what I should be looking at/for in the build process?
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Setting up Build Environment
 

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

Page created in 0.027 seconds with 18 queries.