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
| | |-+  Rockboxdev.sh on ubuntu 12.04 LTS not running
« previous next »
  • Print
Pages: [1]

Author Topic: Rockboxdev.sh on ubuntu 12.04 LTS not running  (Read 2875 times)

Offline Here we are

  • Member
  • *
  • Posts: 5
Rockboxdev.sh on ubuntu 12.04 LTS not running
« on: January 02, 2013, 08:48:25 PM »
I just installed Ubuntu 12.04 LTS and tried to run the script rockboxdev.sh using the commands:

chmod +x rockboxdev.sh
then
sudo ./rockboxdev.sh

This is what you see on the terminal when I run the two commands:

Username@Username-GA-970A-UD3:~/Documents/rockbox/tools$ chmod +x ./rockboxdev.sh
Username@Username-GA-970A-UD3:~/Documents/rockbox/tools$ sudo ./rockboxdev.sh
[sudo] password for Username:
Username@Username-GA-970A-UD3:~/Documents/rockbox/tools$

Why does nothing happen am I doing something wrong ?
Or is it that Ubuntu 12.04 LTS doesnt work for compiling rockbox ?


« Last Edit: January 03, 2013, 01:53:55 AM by Here we are »
Logged

Offline wodz

  • Developer
  • Member
  • *
  • Posts: 390
Re: Rockboxdev.sh on ubuntu 12.04 LTS not running
« Reply #1 on: January 03, 2013, 04:24:45 AM »
I use 12.04 for rb development so this should just work. Try calling it explicitely with sh ./rockboxdev.sh. In general you don't need to run it as root (but if you run it as regular user you need to set installation dir correctly - see the very begining of the script for reference).
Logged

Offline Here we are

  • Member
  • *
  • Posts: 5
Re: Rockboxdev.sh on ubuntu 12.04 LTS not running
« Reply #2 on: January 03, 2013, 09:43:32 PM »
Thanks for the reply  :)
I tried this sh ./rockboxdev.sh

This is what happened :

Username@Username-GA-970A-UD3:~/Documents/rockbox/tools$ sh ./rockboxdev.sh
: not foundv.sh: 2: ./rockboxdev.sh:
./rockboxdev.sh: 7: set: Illegal option -

Then I tried to use root just in case but yet again:

Username@Username-GA-970A-UD3:~/Documents/rockbox/tools$ sudo sh ./rockboxdev.sh
[sudo] password for Username:
: not foundv.sh: 2: ./rockboxdev.sh:
./rockboxdev.sh: 7: set: Illegal option -

Anymore advice I could try ?
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: Rockboxdev.sh on ubuntu 12.04 LTS not running
« Reply #3 on: January 04, 2013, 01:47:00 PM »
Is that on FAT or NTFS, or did you copy the rockbox directory from FAT or NTFS?
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Rockboxdev.sh on ubuntu 12.04 LTS not running
« Reply #4 on: January 04, 2013, 02:26:42 PM »
Quote from: Here we are on January 03, 2013, 09:43:32 PM
Username@Username-GA-970A-UD3:~/Documents/rockbox/tools$ sh ./rockboxdev.sh
: not foundv.sh: 2: ./rockboxdev.sh:
./rockboxdev.sh: 7: set: Illegal option -

Sounds more like a bashism issue to me. Do not run it explicitly with sh, use bash instead:

bash rockboxdev.sh

(and check where /bin/sh is pointing to)
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline Here we are

  • Member
  • *
  • Posts: 5
Re: Rockboxdev.sh on ubuntu 12.04 LTS not running
« Reply #5 on: January 04, 2013, 10:50:23 PM »
I copied it from my windows partition which is NTFS
« Last Edit: January 05, 2013, 02:13:27 AM by Here we are »
Logged

Offline gevaerts

  • Administrator
  • Member
  • *
  • Posts: 1053
Re: Rockboxdev.sh on ubuntu 12.04 LTS not running
« Reply #6 on: January 05, 2013, 08:34:01 AM »
Quote from: Here we are on January 04, 2013, 10:50:23 PM
I copied it from my windows partition which is NTFS

OK, so permissions are going to be all wrong. If this is a git checkout (and you haven't edited any files), run "git reset --hard" first.

If you still have problems then, try following bluebrother's advice.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Rockboxdev.sh on ubuntu 12.04 LTS not running
« Reply #7 on: January 05, 2013, 02:28:26 PM »
Quote from: gevaerts on January 05, 2013, 08:34:01 AM
OK, so permissions are going to be all wrong. If this is a git checkout (and you haven't edited any files), run "git reset --hard" first.

Likely line endings as well. On Windows msysgit defaults to enable line ending conversion (core.autocrlf = true) which will produce windows line endings. If I remember correctly Linux shells usually don't like those. So if things still fail you can try to convert it using "dos2unix rockboxdev.sh" before running it.

In general I strongly recommend to not use a checkout that's on a non-native filesystem for any OS. So if you're using Linux clone the repository on Linux. If you're on Windows clone it on Windows. Unless you exactly know what you're doing and are aware of the pitfalls :)
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline Here we are

  • Member
  • *
  • Posts: 5
Re: Rockboxdev.sh on ubuntu 12.04 LTS not running
« Reply #8 on: January 05, 2013, 09:08:43 PM »
Thanks you guy's for the help its been great :)
Im just going to use git in Ubuntu to clone it again ill show you the result soon
Logged

Offline Here we are

  • Member
  • *
  • Posts: 5
Re: Rockboxdev.sh on ubuntu 12.04 LTS not running
« Reply #9 on: January 05, 2013, 09:39:00 PM »
Amazing you guys are great :) its working and I'm up and running :)
Thanks heaps
« Last Edit: January 05, 2013, 09:52:24 PM by Here we are »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Rockboxdev.sh on ubuntu 12.04 LTS not running
 

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

Page created in 0.082 seconds with 14 queries.