wegophone编译过程记录

 1.按照HowToBuildWegophone中的说明,下载所需的工具(QT/CMake)和源码(Boost/Wengophone)
2.编译QT,最好同时生成debug和release两种版本
3.编译Boost:
    可以只编译需要用到的部分,进入该部分的build目录,运行bjam -sTOOLS=vc-8_0即可
    
4.按照Wengophone的install.txt中的执行
4.1.CMake xxxx生成MakeFile;
    MakeFile中可能遇到的问题:
        找不到Boost的问题,解决办法:将CMake中的文件FindBoost.cmake,复制到wengophone目录下的cmake/Modules目录中(需要新建子目录)
        复制QT文件失败,解决办法:修改libs/3rdparty/qt4/CMakeLists.txt,将*1.dll改为*4.dll。注意有多处需要修改
4.2.执行create_vcproj-VC80.bat,生成vc8的工程文件

4.3.编译解决方案
    大部分工程应该都没有问题,只是有几个DLL工程存在问题:无法生成lib文件。
    修改工程属性中的预处理器,将其中明显的错误 XXXX -DYYYY分作两行,即可解决问题
    编译后的事件中,多处存在没有加入debug目录的问题,修改后即可。

补充:(刚找到的文章)
From: D. Pathirana < dpat@...>
Subject: Build wengophone-2.2 / windows 2000 / visual studio c++ 2005 (msvc) notes
Newsgroups: gmane.comp.voip.wengophone.devel
Date: 2008-01-16 11:58:13 GMT (1 week, 6 days, 19 hours and 6 minutes ago)
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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值