Rockbox Development > Starting Development and Compiling
New to Rockbox Development, Plugins?
neoAKiRAz:
Yes, I've just finished installing CygWin, I'm following the instructions in http://www.rockbox.org/twiki/bin/view/Main/HowToCompile, but when I run $ ../tools/configure it only shows 12 targets, and my Sansa isn't one of them. I'll make sure I have the last version of the sourcecode, although I downloaded it yesterday.
Oh, and I also get, before the "enter target platform" a "../tools/configure: line 380: cd: /home/Bruno: No such file or directory" which I don't know if will be a problem soon. That's because my Windows user name has a space on it, and then my home directory in Cygwin is "(...)home/Name With Spaces"... which I don't know how to change. Any idea?
007quick:
Ok if you want to indicate a file with spaces you have to do it with quotes like this "file with spaces" So, did you install the cygwin under c:cygwin/ ? or in my documents? the ".." refers to going up one level of the directory while the /tools/configure means to run the file called configure in the folder called tools. the important thing is to be able to point to that file. Then once you have a make file type "make" then when that finishes type "make zip"
Give that a try!
neoAKiRAz:
Hi, thanks for your reply! I have some experience with linux, so you don't need to be so specific, thanks anyway :)
Ok, I used the 'svn co svn://svn.rockbox.org/rockbox/trunk rockbox' command and it downloaded the full source. What's the difference between this one and the .tar one? For example, the .tar doesn't have the 'bitmap' subdirs...
As for the space in the directory name, just moved the 'rockbox' downloaded folder to /home/. This directory is in 'C:\Programas\Facu\CygWin\home', so there are no spaces in the path now.
It started compiling for Sansa (make), but at the end I got:
--- Code: ---/bin/sh: /usr/bin/cat: Resource temporarily unavailible
/bin/sh: /opt/arm/bin/arm-elf-gcc: Resource temporarily unavailible
make[3]: *** [/home/rockbox/build/apps/plugins/rockboy/link.lds] Error 126
make[2]: *** [rockboy] Error 2
rm (...a lot of .ELFs...)
make[1]: *** [rocks] Error 2
make: *** [all] Error 2
--- End code ---
The /usr/bin/ folder is empty, although 'cat' is in /bin/, why does it look for it there?
Although I'm not 'making an iPod target', I checked and 'arm-elf-gcc' is in the PATH variable.
Any idea?
neoAKiRAz:
That was really strange, I closed and reopened Cygwin and it threw me a bunch of "Resource temporarily unavailible"... and it wouldn't bring up the sh shell.
I just rebooted Windows and it got fixed. Yhen tried 'make' again and I got (after some "nothing to be done with...":
--- Code: ---/home/rockbox/build/apps/plugins/rockboy/rockboy.o: In function `plugin_start':
rockboy.c:(.text+0x408): undefined reference to `iedata'
rockboy.c:(.text+0x40c): undefined reference to `iend'
rockboy.c:(.text+0x410): undefined reference to `iramstart'
rockboy.c:(.text+0x414): undefined reference to `iramend'
rockboy.c:(.text+0x41c): undefined reference to `iramcopy'
/home/rockbox/build/apps/plugins/rockboy/rockboy.o:(.header+0x8): undefined reference to `plugin_start_addr'
/home/rockbox/build/apps/plugins/rockboy/rockboy.o:(.header+0xc): undefined reference to `plugin_end_addr'
collect2: ld returned 1 exit status
make[3]: *** [/home/rockbox/build/apps/plugins/rockboy/rockboy.elf] Error 1
make[2]: *** [rockboy] Error 2
make[1]: *** [rocks] Error 2
make: *** [all] Error 2
--- End code ---
What's this? Is there any way to exclude a plugin? I tried deleting rockboy.c and rockboy folder and it wan't enough. And related to this, one more question, now that I have an example my_plugin.c, how can I do for the makefile to compile it and produce the .rock file together with the rest of the plugins?
007quick:
Ok, do not delete files
NOT AT ALL
you need to get a patch from the fly spray on the left and then apply it.
Put the patch in the root folder of your rockbox.
eg. .../home/rockbox/
and then navigate to the above dir and do this command.
patch -p0 < thepatchyoudownloaded.patch (may also be a .diff)
if that doesn't work try -p1 then -p2 ..... -p5
Give that a shot!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version