Rockbox Development > Starting Development and Compiling

rockboxdev.sh: line 35: nproc: command not found, arm-elf-eabi-gcc

<< < (2/2)

saratoga:
What is your operating system?

__builtin:
What platform are you building on? nproc is a coreutils component.

GiraffeMan3125:
macOS Catalina. I'm trying to install rockbox on an iPod 5th Gen.

saratoga:
The last few versions of MacOS have broken compatibility with a lot of our development tools. When I tried a few years back, the first thing thing I had to do was install gcc (since Apple stopped supporting it in favor of llvm).

Alternatively you could use a Linux VM or find a windows machine.

bluebrother:
Apply this (I'm going to add it to git later, after I checked it on Linux):


--- Code: ---diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh
index 6b12fa015e..09b420c0c9 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -32,7 +32,12 @@ fi
 # This is the absolute path to where the script resides.
 rockboxdevdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 
-parallel=`nproc`
+if [ `uname -s` != "Darwin" ]; then
+    parallel=`nproc`
+else
+    parallel=`sysctl -n hw.physicalcpu`
+fi
+
 if [ $parallel -gt 1 ] ; then
   make_parallel=-j$parallel
 fi

--- End code ---

After that you'll need further tools, likely best approach is to use homebrew.

Navigation

[0] Message Index

[*] Previous page

Go to full version