Cross-compiling for DroboFS: wget 1.12

EDIT: A much better version of this tutorial is available here. Any future updates will be done at that location. This post will be kept for reference, and replies in this thread should take that page into account.
[hr]

Hi everyone,

Here is another post on the cross-compile series for DroboFS.

Introduction: Why wget?

Although a version of wget comes with DroboFS, that version does not support HTTPS downloads. This version does.

Overall compiling complexity: Easy.

Step 1: Background info

To be able to make use of this post, you need a VM configured as indicated in this post.

Step 2: Enter the cross-compiling environment

See step 2 of this post to see instructions on how to enter the chroot environment.

Step 3: Dependencies

nano needs:
[list]
[]ncurses
[
]openssl[/list]

Step 4: Get the source code

wget’s website: http://www.gnu.org/software/wget/
Version: 1.12
Direct link: http://ftp.gnu.org/gnu/wget/wget-1.12.tar.gz

Make sure that you are in the folder /root/code, then type:

wget http://ftp.gnu.org/gnu/wget/wget-1.12.tar.gz tar zxf wget-1.12.tar.gz cd wget-1.12

Step 5: Configuration

The traditional configure command applies:

./configure --host=arm-none-linux-gnueabi --prefix=/usr/arm

This should return no errors. If it does, you have to check if you have all required packages in your chroot (although, if you have been following the dependencies, you should have all of them).

Step 6: Compiling

Within the folder /root/code/wget-1.12:

make

Again, there should be no errors. If any errors are reported, make sure you performed steps 3, 4 and 5 correctly. If you still have errors, make sure that the VM is properly configured (e.g. like I did the first time around, when I got the wrong toolchain, or forgot to ‘export’ the proper compiler flags).

Step 6: Installing

As simple as it gets:

make install

…which will place the compiled library under /usr/arm.

Then we package the whole /usr/arm and copy it over to the DroboFS, as indicated on step 9 here.

As an additional step, make sure that your PATH variable looks up this version first instead of the embedded one. Your PATH variable should look like this:

PATH="/usr/arm/bin:/usr/bin:/bin"

Congratulations!

Now you can run a full-featured wget on your DroboFS.