Hi!
The last week I have tried to build wengophone-2.2 on Windows 2000 with
Visual Studio C++ 2005 Express Edition.
My goal is to provide a howto and possibly update the wiki with the
upcoming solutions. If anybody can help me with this project that would
be really nice!
My Buildsystem (under VirtualBox 1.5.4):
- Windows 2000 SP4
- Platform SDK
- DirectX SDK (Summer 2004 -> Windows 2000 / August 2007 -> Windows XP)
- Visual Studio C++ 2005 Express Edition (without SP1!)
- Python 2.4.3 + Python for Windows extensions 2.4
- Qt/Windows Open Source Edition 4.3.3
- Boost 1.34.1
- CMake 2.4 patch-7
- wengophone-2.2 (rev 13237)
(Quick) Installation notes:
1. Install everything to MSVC 2005 into the default locations
2. Set the environment variables:
There are three locations where you can set the variables. I did not
check every possible combination but if you add them in all of them it
should work. Make sure you have closed MSVC before changing any of the
system environment variables.
- Set the system environment variables
- Set the variables in "C:\Program Files\Microsoft Visual Studio
8\Common7\Tools\vsvars32.bat"
- Set the variables in Visual Studio C++ 2005
Environment variables:
PATH=C:\Qt\4.3.3;C:\Program Files\CMake
2.4\bin;%SystemRoot%\system32;%SystemRoot;%SystemRoot%\System32\Wbem;C:\Program
Files\boost\boost_1_34_1\bin
BOOST_ROOT=c:\program files\boost\boost-1_34_1
BOOSTINCLUDEDIR=c:\program files\boost\boost-1_34_1
BOOSTLIBDIR=:\program files\boost\boost-1_34_1\lib
QTDIR=C:\Qt\4.3.3
QT_PLUGINS_DIR=C:\Qt\4.3.3\plugins
PYTHON_ROOT=C:\Python24
PYTHON_VERSION=2.4
vsvars32.bat:
@set PATH=C:\Program Files\Microsoft Visual Studio
8\Common7\IDE;C:\Program Files\Microsoft Visual Studio
8\VC\BIN;C:\Program Files\Microsoft Visual Studio
8\Common7\Tools;C:\Program Files\Microsoft Visual Studio
8\SDK\v2.0\bin;C:\WINNT\Microsoft.NET\Framework\v2.0.50727;C:\Program
Files\Microsoft Visual Studio 8\VC\VCPackages;%PATH%
@set INCLUDE=C:\Program Files\Microsoft DirectX 9.0 SDK (Summer
2004)\Include;C:\Program Files\Microsoft Platform SDK for Windows Server
2003 R2\Include\atl;C:\Program Files\Microsoft Platform SDK for Windows
Server 2003 R2\Include;C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE;%INCLUDE%
@set LIB=C:\Program Files\Microsoft DirectX 9.0 SDK (Summer
2004)\Lib;C:\Program Files\Microsoft Platform SDK for Windows Server
2003 R2\Lib;C:\Program Files\Microsoft Visual Studio 8\VC\LIB;C:\Program
Files\Microsoft Visual Studio 8\SDK\v2.0\lib;%LIB%
@set QTDIR=C:\Qt\4.3.3
@set QT_PLUGINS_DIR=C:\Qt\4.3.3\plugins
variables in Visual Studio C++ 2005:
In "Tools -> Options -> Projects and Solutions -> VC++ Directories" add
the following lines without having a project open:
Include files:
add "C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Include\atl"
add "C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Include\"
add "C:\Program Files\Microsoft DirectX 9.0 SDK (Summer 2004)\Include"
Library files:
add "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib"
add "C:\Program Files\Microsoft DirectX 9.0 SDK (Summer 2004)\Lib"
additional notes:
Now (at the the time of writing this) I really think that it should be
enough to include the variables just (and only) to the system
environment variables. I had way to much errors and maybe typos in these
sections to be sure about it. So if anybody can confirm this I would be
really glad!
3. Install Python 2.4 and Python for Windows Extension 2.4
3a. What about any newer versions? Do they work? See.
[1] http://www.python.org/download/
[2] http://sourceforge.net/project/showfiles.php?group_id=78018
3b. Recheck your variables!
4. Install Qt/Windows Open Source Edition 4.3.3
4a. Download and Extract to C:\Qt\4.3.3
4b. Run "C:\Qt\4.3.3\configure" out of Visual Studio 2005 Command Prompt
(no MSVC-Patch needed anymore!)
4c. Recheck your variables!
5. Install Boost 1.34.1
5a. Use the installer and choose Compiler "Visual C++ 8.0 (Visual Studio
2005)" and Variants "Multithread Debug, DLL / Multithread, DLL und
Multithread Debug, static runtime"
5b. Recheck your variables!
6. Install CMake 2.4.7
7. Checkout the source (use TortoiseSVN)
7a. SVN-Location:
https://dev.openwengo.org/svn/openwengo/wengophone-ng/branches/wengophone-2.2
Ok. So far so good! This was the "easy" part. Now we have to patch some
files before we can configure wengophone and then we have to patch even
more files to build wengophone (I'm still not finished and may need help!)
I will post the patches in a seperate mail. But just in case somebody
needs to know now what is going to happen:
8. Patch files
8a. patch owbuild\FindBoost.cmake
8b. patch libs\3rdparty\qt4\CMakeLists.txt
9. Configure wengophone (create Visual Studio Project files):
9a. Run "C:\Projects\wengophone-2.2\build\create_vcproj-VC80.bat"
10. Patch a lot of more files...
Thats enough for now. I will continue as soon as possible. I hope I was
able to help somebody.
Greetings,
- Darsha
_______________________________________________
Wengophone-devel mailing list
[email protected]
http://dev.openwengo.com/mailman/listinfo/wengophone-devel