Rockbox Technical Forums

Rockbox Development => Starting Development and Compiling => Topic started by: WarpEnterprises on January 27, 2019, 12:23:46 PM

Title: Compiling Rockbox for AgptekRocker/BenjieT6
Post by: WarpEnterprises on January 27, 2019, 12:23:46 PM
I would like do make a build for my T6, but I am stranded...
I got the VirtualBox image running, pulled the sources, made a "build" directory and tried ../tools/configure.
When I select e.g. 65 (Sansa Clip Zip) it works OK (I have done it before some years ago).
But when I select 240 (agptekrocker) it shows an error:
Code: [Select]
240
Platform set to agptekrocker
Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, (C)heckWPS, (D)atabase tool, (W)arble codec tool: (Defaults to N)

Normal build selected
Building Rockbox as an Application
Using source code root directory: /home/rock/Desktop/rockbox
../tools/configure: 1: ../tools/configure: mipsel-rockbox-linux-gnu-gcc: not found
../tools/configure: 1: ../tools/configure: mipsel-rockbox-linux-gnu-ld: not found
[WARNING] The compiler you must use (mipsel-rockbox-linux-gnu-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 mipsel-rockbox-linux-gnu-ld
Detected make GNU Make 4.1
../tools/configure: 4722: ../tools/configure: mipsel-rockbox-linux-gnu-cpp: not found
Warning: Could not determine target arch
Created Makefile

How do I install those mipsel-compiler?
Title: Re: Compiling Rockbox for AgptekRocker/BenjieT6
Post by: Milardo on January 27, 2019, 03:30:47 PM
Hi,

     Are you compiling under linux? I used ubuntu myself. You'll have to install that compiler, did you follow the prerequisites?
Title: Re: Compiling Rockbox for AgptekRocker/BenjieT6
Post by: bobba_mosfet on January 28, 2019, 06:08:30 PM
most likely - the cross compliation binaries are not in your $PATH

It might be easier to use the auto setup script than to trust/rely on the vm if you are already running a *nix
Title: Re: Compiling Rockbox for AgptekRocker/BenjieT6
Post by: WarpEnterprises on January 30, 2019, 03:49:32 PM
I had some progress! I made these steps from the provided VirtualBox image:
Code: [Select]
# cloning current repo, create build-directory
git clone git://git.rockbox.org/rockbox
mkdir build
cd build/

# enabling update from archive-repo
sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

# update
sudo apt-get update
sudo apt-get install libmpc-dev
sudo apt-get install gawk

# building the compiler
sudo ../tools/rockboxdev.sh

# building rockbox
../tools/configure, target platform "240 - AgptekRocker", Build "N - Normal"
make

But now I am stuck again - please help  :'(  :'(

Code: [Select]
...
CC apps/gui/wps.c
make: *** No rule to make target '/home/rock/Desktop/rockbox/build/time.h', needed by '/home/rock/Desktop/rockbox/build/apps/gui/scrollbar.o'. Stop.
Title: Re: Compiling Rockbox for AgptekRocker/BenjieT6
Post by: bobba_mosfet on January 30, 2019, 07:25:55 PM
Are there daily builds posted for this git revision online? that might help indicate whether there have been build breaking changes pushed.

alternatively try to compile the last stable available for your device - the compiler used is rarely updated so that should help you verify if your build environment is OK

you can't even make a cup of coffee before rockbox compiles when you use all cores with make -j8 etc. so you should be able to find out pretty fast
Title: Re: Compiling Rockbox for AgptekRocker/BenjieT6
Post by: Bilgus on January 31, 2019, 01:18:34 AM
I'm not sure what is going on with your situation

I just compiled it fine

Lets make sure you are doing this correctly
first create a build directory in the root of your source directory
CURRENT DIRECTORY IN TERMINAL ->'/home/rock/Desktop/rockbox/'

mkdir AgptekRocker
cd AgptekRocker
CURRENT DIRECTORY IN TERMINAL ->'/home/rock/Desktop/rockbox/AgptekRocker'
../tools/configure
Enter '240'
Press 'N'
Press [ENTER]
make && make fullzip

Title: Re: Compiling Rockbox for AgptekRocker/BenjieT6
Post by: WarpEnterprises on February 02, 2019, 09:54:26 AM
 :D Hooray, success! It seems I made too many updates before.
This is what IS necessary:

I started fresh from the VirtualBox image (it's from 2017-04-19 19:03:25).
sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
sudo apt-get update
sudo apt-get install libmpc-dev
sudo apt-get install gawk

git clone git://git.rockbox.org/rockbox
mkdir build
cd build/

Then compiling the buildtools works:
sudo ../tools/rockboxdev.sh

And compiling for the Rocker then works, too. The UISimulator is ok, too.
Thanks to all!