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
| | |-+  Compiling Rockbox for AgptekRocker/BenjieT6
« previous next »
  • Print
Pages: [1]

Author Topic: Compiling Rockbox for AgptekRocker/BenjieT6  (Read 1349 times)

Offline WarpEnterprises

  • Member
  • *
  • Posts: 13
Compiling Rockbox for AgptekRocker/BenjieT6
« 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?
Logged

Offline Milardo

  • Member
  • *
  • Posts: 76
Re: Compiling Rockbox for AgptekRocker/BenjieT6
« Reply #1 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?
Logged

Offline bobba_mosfet

  • Member
  • *
  • Posts: 54
Re: Compiling Rockbox for AgptekRocker/BenjieT6
« Reply #2 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
Logged

Offline WarpEnterprises

  • Member
  • *
  • Posts: 13
Re: Compiling Rockbox for AgptekRocker/BenjieT6
« Reply #3 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.
Logged

Offline bobba_mosfet

  • Member
  • *
  • Posts: 54
Re: Compiling Rockbox for AgptekRocker/BenjieT6
« Reply #4 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
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 726
Re: Compiling Rockbox for AgptekRocker/BenjieT6
« Reply #5 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

Logged

Offline WarpEnterprises

  • Member
  • *
  • Posts: 13
Re: Compiling Rockbox for AgptekRocker/BenjieT6
« Reply #6 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!
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Compiling Rockbox for AgptekRocker/BenjieT6
 

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

Page created in 0.026 seconds with 16 queries.