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:

Thank You for your continued support and contributions!

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

Author Topic: Questions Getting Started Compiling  (Read 2067 times)

Offline LyTning94

  • Member
  • *
  • Posts: 19
Questions Getting Started Compiling
« on: March 30, 2011, 03:09:17 PM »
Before I begin, I am using a Windows XP computer.  I downloaded VMWare and the Rockbox image, went to XShells->Eterm and typed:

Code: [Select]
$ svn co svn://svn.rockbox.org/rockbox/trunk rockbox

to check out the source code.  From what I understand, I need to run rockboxdev.sh to automatically install the cross-compiler for me.  I typed the following:

Code: [Select]
$ cd rockbox
$ tools/rockboxdev.sh

and got this output:

Code: [Select]
user@debian:~/rockbox$ tools/rockboxdev.sh
Download directory : /tmp/rbdev-dl (set RBDEV_DOWNLOAD to change)
Install prefix     : /usr/local  (set RBDEV_PREFIX to change)
Build dir          : /tmp/rbdev-build (set RBDEV_BUILD to change)
Make options       :  (set MAKEFLAGS to change)

ROCKBOXDEV: No write permission for /usr/local

What am I doing wrong?

Also, do I need the files vmware.txt, vmware-0.txt, vmware-1.txt, etc. that appear in the directory of my Rockbox image each time I open it?

When I check out the source code for rockbox or make a new directory in VMWare, where do the files go?  Do they go to a virtual hard drive somewhere?

Finally, how do I share files between the two systems? I went to VMWare->Shared Files, but there were no files on the list.

Sorry for my ignorant questions, and thanks in advance for the help!
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Questions Getting Started Compiling
« Reply #1 on: March 30, 2011, 03:12:56 PM »
Quote from: LyTning94 on March 30, 2011, 03:09:17 PM
  From what I understand, I need to run rockboxdev.sh to automatically install the cross-compiler for me. 

You shouldn't need to do that.  The VMware image already has the compilers. 

Quote from: LyTning94 on March 30, 2011, 03:09:17 PM
What am I doing wrong?

You need to use "sudo" with commands that install new OS features.

Quote from: LyTning94 on March 30, 2011, 03:09:17 PM
When I check out the source code for rockbox or make a new directory in VMWare, where do the files go?  Do they go to a virtual hard drive somewhere?

They go into the disk image you downloaded.

Quote from: LyTning94 on March 30, 2011, 03:09:17 PM
Finally, how do I share files between the two systems? I went to VMWare->Shared Files, but there were no files on the list.

SMB is the easiest way.  The vmware wiki page explains how IIRC.
Logged

Offline LyTning94

  • Member
  • *
  • Posts: 19
Re: Questions Getting Started Compiling
« Reply #2 on: March 30, 2011, 05:40:50 PM »
Quote from: saratoga on March 30, 2011, 03:12:56 PM
They go into the disk image you downloaded.

Meaning the rockbox-flat.vmdk file?

Quote from: saratoga on March 30, 2011, 03:12:56 PM
SMB is the easiest way.  The vmware wiki page explains how IIRC.

Here is what I found in the wiki:

Quote
To make it easy to access the files in the virtual Linux operating system, we have included Samba. We've configured the user's home directory as a file share.

This means that you can edit the source in your favorite Windows editor (that supports UNIX formatted files!) and compile in the virtual machine.


•Share name: \debianuser
•Share username: user (or root if you want to have file permission)
•Share password: rockbox

What does it mean by the 'user's home directory'?

And what about the text files?
« Last Edit: March 30, 2011, 07:22:18 PM by scorche »
Logged

Offline LyTning94

  • Member
  • *
  • Posts: 19
Re: Questions Getting Started Compiling
« Reply #3 on: April 02, 2011, 02:48:49 PM »
Anyone??? Pardon my ignorance, but what is meant by the 'User's home directory'???
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: Questions Getting Started Compiling
« Reply #4 on: April 02, 2011, 05:35:59 PM »
http://en.wikipedia.org/wiki/Home_directory
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline LyTning94

  • Member
  • *
  • Posts: 19
Re: Questions Getting Started Compiling
« Reply #5 on: April 02, 2011, 09:35:16 PM »
According to the link you gave me, the variable for the home directory is $HOME.  I typed:

$ cd $HOME

and it brought me to user@debian~/, which was where I checked out rockbox to.  However, when I got o VMWare Player->Shared Folders, there are no files/direcories in the list.  What am I doing wrong?
Logged

Offline Progweed

  • Member
  • *
  • Posts: 67
Re: Questions Getting Started Compiling
« Reply #6 on: April 03, 2011, 03:20:19 AM »
I'm no expert on VMWare, but I think you can safely ignore the text files that appear in the Rockbox directory.

You can access the virtual hd with a mapped network drive (while VMWare Player is running). Simply click "Map Network Drive" in Windows Explorer and specify "\\debian\filesystem" as a folder.
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: Questions Getting Started Compiling
« Reply #7 on: April 03, 2011, 02:26:44 PM »
Quote from: Progweed on April 03, 2011, 03:20:19 AM
You can access the virtual hd with a mapped network drive (while VMWare Player is running). Simply click "Map Network Drive" in Windows Explorer and specify "\\debian\filesystem" as a folder.
Shouldn't it be "\\debian\user"?
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline LyTning94

  • Member
  • *
  • Posts: 19
Re: Questions Getting Started Compiling
« Reply #8 on: April 03, 2011, 09:17:15 PM »
Yeah, \\debian\user worked.  Thanks for the help!
Logged

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

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

Page created in 0.084 seconds with 15 queries.