下载源码  http://www.truecrypt.org/download/transient/527420ce02/TrueCrypt%207.0a%20Source.tar.gz

解压阅读readme

II. Linux and Mac OS X
======================

Requirements for Building TrueCrypt for Linux and Mac OS X:
-----------------------------------------------------------

- GNU Make
- GNU C++ Compiler 4.0 or compatible
- Apple Xcode (Mac OS X only)
- NASM assembler 2.08 or compatible (x86/x64 architecture only)
- pkg-config
- wxWidgets 2.8 shared library and header files installed or
  wxWidgets 2.8 library source code (available at http://www.wxwidgets.org)
- FUSE library and header files (available at http://fuse.sourceforge.net
  and http://code.google.com/p/macfuse)
- RSA Security Inc. PKCS #11 Cryptographic Token Interface (Cryptoki) 2.20
  header files (available at ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20)
  located in a standard include path or in a directory defined by the
  environment variable 'PKCS11_INC'.


Instructions for Building TrueCrypt for Linux and Mac OS X:
-----------------------------------------------------------

1) Change the current directory to the root of the TrueCrypt source code.

2) If you have no wxWidgets shared library installed, run the following
   command to configure the wxWidgets static library for TrueCrypt and to
   build it:

   $ make WX_ROOT=/usr/src/wxWidgets wxbuild

   The variable WX_ROOT must point to the location of the source code of the
   wxWidgets library. Output files will be placed in the './wxrelease/'
   directory.

3) To build TrueCrypt, run the following command:

   $ make

   or if you have no wxWidgets shared library installed:
  
   $ make WXSTATIC=1

4) If successful, the TrueCrypt executable should be located in the directory
   'Main'.

By default, a universal executable supporting both graphical and text user
interface is built. To build a console-only executable, which requires no GUI
library, use the 'NOGUI' parameter:

   $ make NOGUI=1 WX_ROOT=/usr/src/wxWidgets wxbuild
   $ make NOGUI=1 WXSTATIC=1


Requirements for Running TrueCrypt on Linux:
--------------------------------------------

- Kernel including FUSE, device mapper, and encryption modules
- FUSE library (available at http://fuse.sourceforge.net)
- device mapper tools (available at http://sources.redhat.com/dm)

 

需要安装编译环境

sudo apt-get install build-essential 

下载 Current Stable Release: wxWidgets 2.8.12 Downloads (SourceForge | UK Mirror)

下载完毕全部解压不需要编译这个哈

按照说明直接truecrpt源码让他自己编译wxwidget

  $ make WX_ROOT=/usr/src/wxWidgets wxbuild

watiing 。。。。。

 

In file included from Keyfile.cpp:10:
/home/kissthink/Downloads/truecrypt-7.0a-source/Common/SecurityToken.h:43: fatal error: pkcs11.h: No such file or directory

 

kissthink@kissthink-H55-H57-UD3H:~/Downloads/truecrypt-7.0a-source$ make  WX_ROOT=/home/kissthink/Downloads/wxWidgets-2.8.12 wxbuild PKCS11_INC=/home/kissthink/

 

我晕 编译半天没有用 。。。

 
   73  cd wxWidgets-2.8.12/
   74  ls
   75  make install
   76  ./configure
   77  make install
   78  sudo make install
   79  cd ..
   80  ls
   81  cd truecrypt-7.0a-source/
   82  ls
   83  export PKCSS11_INC=/home/kissthink/Downloads/truecrypt-7.0a-source/PKCS11_INC
   84  make
   85  export PKCSS11_INC=/home/kissthink/Downloads/truecrypt-7.0a-source/PKCS11_INC
   86  make
   87  make clean
   88  make
   89  export PKCS11_INC=/home/kissthink/Downloads/truecrypt-7.0a-source/PKCS11_INC
   90  make
   91  apt-get install nasm
   92  sudo apt-get install nasm
   93  make
   94  sudo apt-get install libfuse-dev
   95  make
   96  make WX_ROOT=/home/kissthink/Downloads/wxWidgets-2.8.12/ wxbuild
   97  make
   98  make clean
   99  make
  100  cd ..
  101  cd wxbuild/
  102  ls
  103  cd ..
  104  cd wxWidgets-2.8.12/
  105  make
  106  make  all
  107  make uninstall
  108  sudo make uninstall
  109  cd ..
  110  cd truecrypt-7.0a-source/
  111  make WX_ROOT=/home/kissthink/Downloads/wxWidgets-2.8.12/ wxbuild
  112  make
  113  cd ..
  114  cd wxWidgets-2.8.12/
  115  mkdir build
  116  cd build/
  117  ls
  118  ../configure --help
  119  ../configure --enable-monolithic --enable-unicode --with-gtk --enable-odbc
  120  make
  121  cd ..
  122  ls
  123  cd truecrypt-7.0a-source/
  124  make WX_ROOT=/home/kissthink/Downloads/wxWidgets-2.8.12/ wxbuild
  125  make
  126  sudo apt-get install gnome-core-devel
  127  make
  128  make WX_ROOT=/home/kissthink/Downloads/wxWidgets-2.8.12/ wxbuild
  129  make
  130  sudo apt-get install libwxbase2.8-0 libwxbase2.8-dbg libwxbase2.8-dev libwxgtk2.8-0 libwxgtk2.8-dbg libwxgtk2.8-dev wx2.8-headers wx-common wx2.8-i18n
  131  make
  132  make clean
  133  make
  134  make  DEBUG=1
  135  wx-config --list
  136  cd ..
  137  cd wxWidgets-2.8.12/
  138  ./configure --help
  139  ./configure --list
  140  mkdir buildgtk
  141  cd buildgtk/

  144  ../configure --with-gtk --enable-debug --enable-unicode   【编译的时候是需要加入这个选项 要不编译truecrpt失败】
  145  rm *
  146  rm * -R
  147  ../configure --with-gtk --enable-debug --enable-unicode 
  148  make
  149  make install
  150  sudo make install
  151  cd ..
  152  cd truecrypt-7.0a-source/
  153  make
  154  ls
  155  cd Main/
  156  ls
  157  truecrypt
  158  ./truecrypt

汗一个 终于编译成功  郁闷 。。。。 花了半天