Rockbox Development > Starting Development and Compiling
Using UI Simulator under Linux, no audio playback
Saphrano:
Hello!
I'm trying to play with UI simulator of sansa clip+. I started from sources, checked out the latest svn revision (using git-svn) and built the simulator. It went fine, except few same errors:
--- Code: ---fatal: ambiguous argument 'HEAD^..': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
--- End code ---
Despite of these fatal errors it built rockboxui anyways. Then I extracted the latest sansa clip+ build (http://build.rockbox.org/data/rockbox-sansaclipplus.zip) to simdisk directory. Also, I copied some audio files there, and when I tried to play I got:
--- Code: ---failed to load /.rockbox/codecs/mpa.codec
lc_open(/.rockbox/codecs/mpa.codec): simdisk/.rockbox/codecs/mpa.codec: invalid ELF header
Codec load error
failed to load /.rockbox/libtemp_binary_0.dll
lc_open(/.rockbox/libtemp_binary_0.dll): simdisk/.rockbox/libtemp_binary_0.dll: invalid ELF header
error loading codec
--- End code ---
It immediately created this libtemp_binary_0.dll, which didn't exist before I run rockboxui the first time. This is a Windows library, why was it created when I use linux?
saratoga:
--- Quote from: Saphrano on September 21, 2010, 03:59:26 PM --- Then I extracted the latest sansa clip+ build (http://build.rockbox.org/data/rockbox-sansaclipplus.zip) to simdisk directory.
--- End quote ---
You can't run a build for the Clip+ on your PC unless your PC is also a clip+. The clip has an ARM9 CPU, your PC probably has an Intel or AMD processor :)
You need to install a simulator build (a build of rockbox compiled for a linux PC). To do that do:
make
make install
./rockboxui
Saphrano:
--- Quote ---The clip has an ARM9 CPU
--- End quote ---
but there is no Windows for ARM9, and I hardly believe there is one for sansa clip :) Why it tries to use dll's?
I did "make install", but nothing changed, I get the same errors.
UPD: Oh, i think I got it now. Besides the simulator, I need to build rockbox for x86 too :)
UPD2: But what do I choose in configure? (N)ormal build, (A)dvanced or something else? I tried with Normal:
--- Code: ---$ ../tools/configure
...
62
Platform set to sansaclipplus
Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, (C)heckWPS, (D)atabase tool, (M)anual: (Defaults to N)
N
Normal build selected
Using source code root directory: ~/rockbox.svn.git
../tools/configure: 2970: arm-elf-eabi-gcc: not found
../tools/configure: 2978: arm-elf-eabi-ld: not found
[WARNING] The compiler you must use (arm-elf-eabi-gcc) is not in your path!
[WARNING] this may cause your build to fail since we cannot do the
[WARNING] checks we want now.
Using arm-elf-eabi-ld
Created Makefile
$ make
/bin/sh: arm-elf-eabi-gcc: not found
fatal: ambiguous argument 'HEAD^..': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
/bin/sh: arm-elf-eabi-gcc: not found
...
make: arm-elf-eabi-gcc: Command not found
make: *** [~/rockbox.svn.git/rockbox-build/firmware/common/config.o] Error 127
--- End code ---
saratoga:
--- Quote from: Saphrano on September 21, 2010, 04:18:48 PM ---
--- Quote ---The clip has an ARM9 CPU
--- End quote ---
but there is no Windows for ARM9, and I hardly believe there is one for sansa clip :) Why it tries to use dll's?
--- End quote ---
It doesn't use Windows dlls, just some files have that file extension.
--- Quote from: Saphrano on September 21, 2010, 04:18:48 PM ---I did "make install", but nothing changed, I get the same errors.
--- End quote ---
Thats because you can only install a sim build, and thats not a sim build you configured. Rerun configure and this time choose sim.
--- Quote from: Saphrano on September 21, 2010, 04:18:48 PM ---UPD2: But what do I choose in configure? (N)ormal build, (A)dvanced or something else? I tried with Normal:
--- End quote ---
Sim == Simulator build (runs on PCs)
Normal == Build for your player
Saphrano:
--- Quote from: saratoga on September 21, 2010, 04:31:28 PM ---Rerun configure and this time choose sim.
--- End quote ---
But I did it the first time. Let's start from scratch:
--- Code: ---$ mkdir simulator-build-2
$ cd simulator-build-2
$ ../tools/configure
...
Platform set to sansaclipplus
Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, (C)heckWPS, (D)atabase tool, (M)anual: (Defaults to N)
S
Simulator build selected
Using source code root directory: ~/rockbox.svn.git
Linux host detected
Enabling MMX support
Simulator environment deemed little endian
Created a 'simdisk' subdirectory for simulating the hard disk
Using gcc 4.4.3 (404)
Using ld 2.20.1.20100303
Created Makefile
$ make
...
$ make install
$ ./rockboxui
Can't open font: /.rockbox/fonts/08-Rockfont.fnt
read_bmp_file: can't open '/.rockbox/icons/viewers.bmp', rc: -1
--- End code ---
Now trying to play some mp3. In UI it showed something like "Can't find .rockbox, installation incomplete". And again:
--- Code: ---lc_open(/.rockbox/codecs/mpa.codec): simdisk/.rockbox/codecs/mpa.codec: cannot open shared object file: No such file or directory
Codec load error
--- End code ---
Navigation
[0] Message Index
[#] Next page
Go to full version