The following is a basic guide to getting truecrypt 7.0a to compile on a Synology 1511+, using the optware tools. You should be able to follow this guide for non-x86 devices by changing references to "-march=i686" to the architecture of your device.
Download the latest truecrypt 7 sources from truecrypt.org (this post is based on 7.0a)
Download NASM sources from the web
./configure --prefix=/opt/local CFLAGS="-march=i686" CC=gccmakemake install
Download Fuse 2.8.5 from the web
./configure --prefix=/opt/localmakemake installin fuse-src/includecp fuse.h fuse_com*.h fuse_opt.h ../../truecrypt-7.0a-source/make install-pkgconfigDATAexport PKG_CONFIG_PATH=/opt/local/lib/pkgconfig
Download wxWdigets 2.8.12 - Truecrypt won't compile using 2.9.x series!
In /tmp/pkcswget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11.h wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11f.h wget ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/pkcs11t.hexport PKCS11_INC=/tmp/pkcs11
In truecrypt-src directory
make NOGUI=1 WX_ROOT=/tmp/wxWidgets-2.8.12 wxbuild CFLAGS="-march=i686" CC=gcc
If you get something on the lines of
or "is_aes_hw_cpu_supported" make sure you have NOASM=1. It is for hardware AES anyway.
You will need to edit the Makefile and in the "Linux" section, add
CC_FLAGS += '-march=i686'CC_XX_FLAGS += '-march=i686'
Else you will get complaints about _sync_fetch_and_add_4. (http://systemsnotebook.blogspot.com/2011/05/ddrescue-on-synology-optware.html)
make NOGUI=1 WXSTATIC=1 ARCH=i686 CC=gcc AS=/opt/local/bin/nasm NOASM=1
Truecrypt compiled in Main/truecrypt
Copy this to your /opt/local/bin or where ever you place your executables.
I'll have a following post on using Truecrypt files.
When trying to mount an Truecrypt image it complained about a missing module. I have compiled the required modules in this post.