Skip to content

Instantly share code, notes, and snippets.

@Paxa
Last active April 1, 2020 04:25
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save Paxa/8916618 to your computer and use it in GitHub Desktop.
Save Paxa/8916618 to your computer and use it in GitHub Desktop.
Cross-compiling wget for blackberry 10 (QNX)

How to compile wget for blackberry 10

Prepare

  1. Download from here http://ftp.gnu.org/gnu/wget/
  2. Extract sources archive, (using extract for example)
  3. Or run tar xf wget-1.15.tar.xz
  4. Copy file bb10_compile from this gist to source folder

Compile

cd wget-1.15
chmod +x bb10_compile
./bb10_compile

If it worked well then run make:

# load variables
tmp_pwd=`pwd`; cd /Applications/Momentics.app && source bbndk-* && cd $tmp_pwd; unset tmp_pwd;
make

No you can see ./src/wget - executable for blackberry.

Run

You can put ./src/wget to your application and upload to phone. Then run with ssh.


If you can't compile, this is download link https://dl.dropboxusercontent.com/u/586048/bb10/wget

#! /bin/sh
tmp_pwd=`pwd`
cd /Applications/Momentics.app && source bbndk-* && cd $tmp_pwd
QNX_BINS="${QNX_HOST}/usr/bin"
./configure CC="${QNX_BINS}/qcc" CXX="${QNX_BINS}/qcc" \
LDFLAGS="-Vgcc_ntoarmv7le" RANLIB="ntoarmv7-ranlib" AR="ntoarmv7-ar" \
CFLAGS="-Vgcc_ntoarmv7le" \
OS=qnx6 --target=armv7 \
--host=armv7 --with-ssl=openssl
@lwiechec
Copy link

lwiechec commented Nov 5, 2018

hmm, compilation was successful with wget-1.19.5. Strange.

@karawitan
Copy link

Just to let you know, Wget is included in Berrymuch , the " Power user Unix distribution for Blackberry 10 "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment