How can i compile source code?

1. Linux

1.2. Requirements
You have to install Qt from source with the following commands:

root$ wget http://releases.qt-project.org/qt4/source/qt-everywhere-opensource-src-4.8.4.tar.gz
root$ tar -zxvf qt-everywhere-opensource-src-4.8.4.tar.gz
root$ cd qt-everywhere-opensource-src-4.8.4
root$ ./configure -release -nomake examples -nomake demos -no-qt3support -no-scripttools -no-opengl -no-webkit -no-phonon -no-sql-sqlite -gtkstyle -opensource -prefix /usr/local/Qt-4.8.4-release
root$ make
root$ make install

QCA is also required for encryption support (modules) :

root$ wget http://delta.affinix.com/download/qca/2.0/qca-2.0.3.tar.bz2
root$ bunzip2 qca-2.0.3.tar.bz2 && tar -xvf qca-2.0.3.tar
root$ cd qca-2.0.3
root$ ./configure --qtdir=/usr/local/Qt-4.8.4-release/
root$ make
root$ make install

next is QCA plugin for OpenSSL support :

root$ wget http://delta.affinix.com/download/qca/2.0/plugins/qca-ossl-2.0.0-beta3.tar.bz2
root$ bunzip2 qca-ossl-2.0.0-beta3.tar.bz2 && tar -xvf qca-ossl-2.0.0-beta3.tar
root$ cd qca-ossl-2.0.0-beta3
root$ ./configure --qtdir=/usr/local/Qt-4.8.4-release/
root$ make
root$ make install

CMake 2.8.10 to build project:

root$ wget http://www.cmake.org/files/v2.8/cmake-2.8.10.tar.gz
root$ tar -zxvf cmake-2.8.10.tar.gz
root$ cd cmake-2.8.10
root$ ./configure
root$ make
root$ make install

Then download, decompress and move into source folder :

user$ wget http://sourceforge.net/projects/silenteye/files/Source/silenteye-0.4.1-src.zip/download
user$ unzip silenteye-src-0.4.1.zip
user$ cd silenteye-src-0.4.1

Note: Source also available on Subversion (svn co http://svn.silenteye.org/application/tag/0.4/0.4.1/0.4.1-20110307 silenteye-0.4.1)
1.2. Let's compile
Now you can generate MakeFile like this :

user$ export PATH=$PATH:/usr/local/Qt-4.8.4-release/bin
user$ ENABLE_MODULE=1 cmake .

Note: More variable are available, please read the README_UNIX file

Just run make command to build the project

make

1.3. Run
You can now run silenteye with the following command :

./silenteye


NB: Those commands are based on Debian/Ubuntu distribution and executed into a black console. ;-)
1.4. Install on system
Installation information can be found on README_UNIX (use of ENABLE_PACK=1).

2. Windows

This tutorial use MinGW as compiler and QtCreator as IDE. We discourage usage of Visual Studio!
2.1. Requirements
2.1.1 Standard requirements
2.1.2 Requirements for cryptography
Download QCA 2.0.1 for MinGW

copy qca2.dll and qcad2.dll into C:\Qt\2010.04\qt\bin
copy libqca2.a and libqcad2.a into C:\Qt\2010.04\qt\lib
copy QtCrypto directory into C:\Qt\2010.04\qt\include

Download QCA-OSSL 2.0.0 for MinGW

copy qca-ossl2.dll into C:\Qt\2010.04\qt\plugins\crypto

Making QCA works (compilation and packaging) with mingw was really painfull, that's why i provide you a archive you just have to uncompress into your qt installation dir : qca2-qtfolder.zip


By the way, QCA-OSSL requires to download and install OpenSSL 1.0.0 for windows
2.3. Import project into Qt Creator 2

1) Tools>Options>Projects>CMake => set cmake.exe path
2) Open file or project => select silenteye-src-0.4.1/CMakeLists.txt
3) Choose mingw generator and set parameter to "."
4) Configure project compilation
4.1) add environnement variable: ENABLE_MODULE set to 1
4.2) add step (before mingw32-make) => cmake.exe with parameter "."
5) Close Qt Creator and reopen it using your last session (force files scan)

2.4. Run
1) Just use the run function of Qt Creator.
2) when asked select executable: silenteye-src-0.4.1/silenteye.exe
Last twit Follow us on Twitter
Notice: Undefined offset: 1 in /var/www/silenteye.org/index.php on line 222
Ads