Solved Make error 2: Building dependencies
#1
I'm new to compiling, sorry.
I'm following the steps (paths and all) from README.android, making sure I'm using NDK r9 and SDK r22 (I couldn't even configure with r23, and read that it was a known issue). Trying to get that to work before I try with my forked version.
Ubuntu 12.04.4 x64.
I'm doing the following:
Code:
#!/bin/bash
#
# Install the required Ubuntu x64 packages
sudo apt-get install build-essential default-jdk git curl autoconf unzip zip zlib1g-dev gawk gperf cmake ia32-libs
#
# Get the Android SDK
wget http://dl.google.com/android/android-sdk_r22-linux.tgz
sudo tar xvfz android-sdk_r22-linux.tgz -C /opt
#
# Get the Android NDK
wget http://dl.google.com/android/ndk/android-ndk-r9-linux-x86_64.tar.bz2
sudo tar xvf android-ndk-r9-linux-x86_64.tar.bz2 -C /opt
#
# Install the SDK packages
sudo /opt/android-sdk-linux/tools/android update sdk -u -t platform,platform-tool
#
# Build the ARM toolchain
cd /opt/android-ndk-r9/
cd build/tools
sudo ./make-standalone-toolchain.sh --ndk-dir=/opt/android-ndk-r9/ --install-dir=/opt/arm-linux-androideabi-4.8-vanilla/android-14 --platform=android-14 --toolchain=arm-linux-androideabi-4.8 --system=linux-x86_64
#
# Generate debug key
sudo keytool -genkey -keystore ~/.android/debug.keystore -v -alias androiddebugkey -dname "CN=Android Debug,O=Android,C=US" -keypass android -storepass android -keyalg RSA -keysize 2048 -validity 10000
#
# Clone XBMC
cd $HOME
git clone git://github.com/xbmc/xbmc.git xbmc-android
cd xbmc-android
git submodule update --init addons/skin.touched
#
# Build dependencies
cd $HOME/xbmc-android/tools/depends
./bootstrap
sudo ./configure --with-tarballs=/opt/xbmc-tarballs --host=arm-linux-androideabi --with-sdk-path=/opt/android-sdk-linux --with-ndk=/opt/android-ndk-r9 --with-toolchain=/opt/arm-linux-androideabi-4.8-vanilla/android-14 --prefix=/opt/xbmc-depends
sudo make

After it chugs away for a while, I get following errors:
Code:
make -C ffmpeg
make[2]: Entering directory `/home/xbmc/xbmc-android/tools/depends/target/ffmpeg'
cd /opt/xbmc-tarballs; /usr/bin/curl -Ls --create-dirs -f -o /opt/xbmc-tarballs/ffmpeg-2.3.1-Helix-alpha2.tar.gz https://github.com/xbmc/FFmpeg/archive/2.3.1-Helix-alpha2.tar.gz
make[2]: *** [/opt/xbmc-tarballs/ffmpeg-2.3.1-Helix-alpha2.tar.gz] Error 60
make[2]: Leaving directory `/home/xbmc/xbmc-android/tools/depends/target/ffmpeg'
make[1]: *** [ffmpeg] Error 2
make[1]: Leaving directory `/home/xbmc/xbmc-android/tools/depends/target'
make: *** [target/.installed-arm-linux-androideabi-android-14] Error 2

Any idea what make error 60 and error 2 are, and what might be causing them?
Reply
#2
I think I found the issue. I noticed ffmpeg-2.3.1-Helix-alpha2.tar.gz hadn't been created. It turns out that's due to my company's network doing SSL sniffing/resigning. I was able to get the file using
Code:
sudo /usr/bin/curl -k -Ls --create-dirs -f -o /opt/xbmc-tarballs/ffmpeg-2.3.1-Helix-alpha2.tar.gz https://github.com/xbmc/FFmpeg/archive/2.3.1-Helix-alpha2.tar.gz
Can insecure SSL in curl be switched permanently? If not, what makefile do I need to edit to change all the curl connections to allow insecure?

Edit: Found it
Code:
echo insecure >> ~/.curlrc
Running another make to see if I can get past that point.

Edit 2: That did it. Marked solved.
Reply

Logout Mark Read Team Forum Stats Members Help
Make error 2: Building dependencies0