Required software ----------------- 1) MS Visual Studio 2005 (and not Visual Studio 2003) 2) Microsoft Windows Server 2003 R2 Platform SDK http://www.microsoft.com/downloads/details.aspx?FamilyId=0BAF2B35-C656-4969-ACE8-E4C0C0716ADB&d isplaylang=en in directory C:\Program Files\Microsoft Platform SDK\ 3) DirectX SDK November 2003 http://www.microsoft.com/downloads/details.aspx?FamilyId=4B78A58A-E672-4B83-A28E-72B5E93BD60A&d isplaylang=en Required files -------------- 1) CMake http://www.cmake.org/files/v2.4/cmake-2.4.7-win32-x86.exe 2) Qt source code ftp://ftp.trolltech.com/qt/source/qt-win-opensource-src-4.1.4.zip 3) Qt compilation patch for Visual studio http://downloads.sourceforge.net/qtwin/acs4qt414p1.zip?modtime=1151526073&big_mirror=0 4) Boost Boost v1.33.1 executable http://www.boost-consulting.com/boost_1_33_1_setup.exe 5) NSIS install system http://nsis.sourceforge.net/Download Installation steps ------------------ 1) create a dir c:\dev 2) Install CMake (add to path) 3) Compile QT a) unzip qt in c:\dev\qt-win-opensource-src-4.1.4 b) unzip qt patch in c:\dev\qt-win-opensource-src-4.1.4 c) Run installpatch c:\dev\qt-win-opensource-src-4.1.4; installpatch41.bat; [Enter] d) open a Visual Studio command prompt. cd c:\dev\qt-win-opensource-src-4.1.4 [Enter] qconfigue.bat msvc2005 [Enter] (generates the qt makefiles) nmake [Enter] e) Set the QTDIR environment variable to QT directory 4) Install Boost -Set the following options: Multithread Debug DLL, Multithread DLL, Multithread, Multithread Debug, Multithread static runtime, Multithread Debug static runtime 5) Pre-compilation setups for Wengophone a) Start CMake GUI from program files b) Set the source code directory C:\dev\wengophone-2.1.2-source c) Set the build directory C:\dev\wengophone-2.1.2-source\build d) Set the Boost directories e) Click on Configure (Ignore the errors) f) Open a Visual studio command prompt (not command) g) cd C:\dev\wengophone-2.1.2-source\build h) create_vcproj-VC80.bat [Enter] It should create the visual c++ project 7) P2PP a) mkdir C:\dev\wengophone-2.1.2-source\wengophone\src\p2pp b) Copy the P2PP code into the above directory [files in src directory] c) In the owphone project only include the source files d) Set the include path to all the p2pp directories in the owphone project e) Compilation directories 8) Files changed in wengophone a) wengophone-2.1.2-source\wengophone\src\model\account\SipAccountXMLSerializer.cpp b) wengophone-2.1.2-source\wengophone\src\model\account\Sipaccount.h c) wengophone-2.1.2-source\wengophone\src\model\account\sipaccount.cpp d) wengophone-2.1.2-source\wengophone\src\model\phoneline\phoneline.cpp e) wengophone-2.1.2-source\wengophone\src\model\phoneline\phoneline.h f) wengophone-2.1.2-source\wengophone\src\model\profile\userprofilehandler.cpp g) wengophone-2.1.2-source\wengophone\src\presentation\qt\qtaddsipaccount.cpp h) wengophone-2.1.2-source\wengophone\src\presentation\qt\main.cpp i) wengophone-2.1.2-source\wengophone\src\presentation\qt\Wengophonewindow.ui j) wengophone-2.1.2-source\wengophone\src\presentation\qt\Addaccount.ui k) wengophone-2.1.2-source\wifo\phapi\phapi-old.cpp l) wengophone-2.1.2-source\wifo\eXosip\src\exosip.c m) wengophone-2.1.2-source\wengophone\nsis\files_install.nsis 9) Release version a) Create project using CMake. Chane build type to 'Release' and build directory to 'Release' b) Add the boost libraries c) In phapi project change preprocessor to BUILD_PHAPI_DLL,PHAPI_DLL d) In phapiutil, owebcam project change "BUILD_PHAPIUTIL_DLL -DPHAPIUTIL_DLL" to BUILD_PHAPIUTIL_DLL, PHAPIUTIL_DLL Similar change in sfp-plugin e) [DEBUG only] Include Platform SDK and DirectX files in owwebcam, owutil-unit-tests (include file) f) The executable name is qtwengophone.exe and is created in C:\dev\wengophone-2.1.2-source\build\wengophone\src\presentation\qt\release[debug] g) Copy the executable and other dlls to C:\dev\wengophone-2.1.2-source\build\release[debug] h) [OPTIONAL] /CONSOLE if _tMainConsole link error. Not required to make the executable though. i) Copy the respective dlls into release directory such as curl.dll, portaudio.dll, phapi.dll, phapiutil.dll, yealinkwenbox.dll 10) Installer a) Install NSIS b) Make sure INSTALL project is checked in the project configuration.