
Note that it requires openssl and zlib to compile and run sucessfully. Otherwise get latest version of e2fsprogs at e2fsprogs.sf.net tar xzf e2fsprogs-1.38.tgzĮWF library source code can be downloaded from. If ncursesw is available, TestDisk and PhotoRec will use it to display unicode chars.Įxt2fs library is usually installed with your OS, so you don't need to compile it yourself.
Ncurses library is usually installed with your OS, so you don't need to compile it yourself.
Qt5 library - Optional, required for QPhotoRec and to update the configure script. zlib library - Optional, used by PhotoRec to decompress gzipped content. Reiserfs library - Optional, used by TestDisk to list files from reiserfs partition. NTFS library - Optional, used by TestDisk to list files from NTFS partition. Jpeg library - Optional, used by PhotoRec to improved JPEG recovery rate. Iconv - Optional, used to handle unicode filenames. EWF library - Optional, TestDisk and PhotoRec use it to access Expert Witness Compression Format files (ie Encase files). Ext2fs library - Optional, used by TestDisk to list files from ext2/ext3/ext4 partition and by PhotoRec to be able to carve the free space from an ext2/ext3/ext4 partition instead of the whole partition. libncurses - Required, TestDisk and PhotoRec use a text user interface, Ncurses library and development files must be available. It's also possible to use MinGW compiler but some functionalities/libraries may be missing.
Use the free C/C++ Cygwin compiler to produce Windows version (Windows NT 4/Windows 2000/XP/2003/Vista.).
OpenSuse: install ncurses-devel e2fsprogs-devel libjpeg-devel ntfsprogs-devel zlib-devel openssl-devel libreiserfs-devel libuuid-devel. Mandriva: urpmi ncurses-devel e2fsprogs-devel jpeg-devel libntfs-devel zlib-devel openssl-devel libewf-devel. Yum install ncurses-static libjpeg-static zlib-static openssl-static glibc-static. Yum install libtool autoconf automake desktop-file-utils e2fsprogs-devel libewf-devel libjpeg-devel ncurses-devel ntfs-3g-devel zlib-devel libuuid-devel qt5-linguist qt5-qtbase-devel openssl-devel pkgconfigĪdditional packages are needed for a static version (version that doesn't use local library): apt install build-essential e2fslibs-dev libncurses5-dev libncursesw5-dev ntfs-3g-dev libjpeg-dev uuid-dev zlib1g-dev qtbase5-dev qttools5-dev-tools pkg-config dh-autoreconf.
To compile TestDisk & PhotoRec, install Apple Development Kit from Mac OS X installation DVD. TestDisk & PhotoRec can compiled for DOS/Win9x using DJGPP.