The tarballs are available at https://wmtprojectsforum.altervista.org ... x/Packages, in case download locations change.
Specifically, this is the way I've set up my VM:
I have gone for the "Assembling a root filesystem" method in the link above, and picked Option 2. This means when you compile something, you need to do the following steps:
NOTE: In order to get the screen resolution you want, you may need to open a terminal and run eg:
Code: Select all
xrandr -s 1280x768
Code: Select all
xrandr
There are some special options to pass. These are the --host, --build, CC, CXX, and LD options. There may be more depending on the requirements of the program you're compiling.
General arguments to ./configure scripts:
Code: Select all
./configure --host=arm-unknown-linux-gnueabi --target=arm-unknown-linux-gnueabi --build=x86_64-linux-gnu CC="arm-unknown-linux-gnueabi-gcc --sysroot=/home/wmt/nas-sysroot" CXX="arm-unknown-linux-gnueabi-g++ --sysroot=/home/wmt/nas-sysroot" LD="arm-unknown-linux-gnueabi-ld --sysroot=/home/wmt/nas-sysroot"
You can just do this the usual way:
Code: Select all
make
Install the prerequisites:
Code: Select all
sudo apt-get install dejagnu qemu-user-static
Code: Select all
make test
Code: Select all
make check
Running make install
Here you need to be careful - you don't want to install the cross-compiled libraries and/or programs to your operating system's system folders. Instead, you want to install to our custom rootfs:
Code: Select all
sudo make DESTDIR=/home/wmt/nas-sysroot install
You'll need to copy the entire rootfs to the hard drives, and extract it. Then set LD_LIBRARY_PATH to the correct folders (probably /usr/local/lib and /usr/lib in the new rootfs):
Code: Select all
export LD_LIBRARY_PATH="/mnt/HD/HD_a2/nas-sysroot/usr/local/lib"
Code: Select all
export PATH="/mnt/HD/HD_a2/nas-sysroot/usr/local/bin:$PATH"
Using pip
Pip can generally be used in the normal way. However, if there are C extensions or anything else to compile, the module will need to be cross-compiled in the VM. After installing pure-python modules on the NAS box with pip, make sure to compress and copy the nas-sysroot folder and extract in the VM! Otherwise, future builds in the VM may remove modules!
Compressing the sysroot
Run the following command to compress the sysroot for transfer between the VM and the NAS box:
Code: Select all
tar -cva -f nas-sysroot.tar.gz nas-sysroot/