纯qt命令编译(不用显示调用sbs)
qmake -recursive birthdaymanager2.pro
make release-armv5 或者 make debug-winscw
make clean
不过synergy CI build的时候要显示调用sbs,我们现在基本都用这个
Qmake -spec(-platfrom) symbian-abld
Sbs -c winscw_udeb 或者sbs -c armv5_urel
Sbs reallyclean
调这个命令在编译BM代码的时候发现奇怪问题,sbs reallyclean之后,第一次随便编winscw或armv5的都会报错,再编一次就能编过
现在我们用这个命令就没有问题,如果大家遇到编译奇怪的问题也可以试试这个方法
Qmake -spec(-platfrom) symbian-sbsv2
Sbs -c winscw_udeb
1. Install windows platform SDK:
(this is needed by vc express version)
(source path is R:/tools/Microsoft/platform_SDK)
(this is iso file,need daemon tool to install,install file is daemon4303-lite.exe)
after install,add two environment variables INCLUDE and LIB:
LIB C:/Program Files/Microsoft SDKs/Windows/v6.1/Lib
INCLUDE C:/Program Files/Microsoft SDKs/Windows/v6.1/Include
2. install qt sdk qt-win-opensource-4.5.2-mingw.exe OR
qt-win-opensource-4.6.0-beta1-mingw.exe(recommended)
Add environment variables PATH
C:/Qt/4.5.2/bin OR
C:/Qt/4.6.0-beta1/bin
3. install VC++ 2008 express edition - online installation package
Q:/ccp/22_sdk/VS2008ExpressWithSP1ENUX1504728.iso
vcsetup_2008cn.exe( chinese ) OR
vcsetup_2008en.exe( english )
4. Configure QT
start cmd from "Visual Studio 2008 Command Prompt" (Start->Programs->Microsoft VC++ 2008 express edition->Visual studio tools )
execute below command
---------------------------
cd C:/Qt/4.5.2 OR C:/Qt/4.6.0-beta1
configure -platform win32-msvc2008 -debug-and-release
nmake
---------------------------
5. test QT project
start cmd from "Visual Studio 2008 Command Prompt"
execute below command
---------------------------
cd source_code_folder
qmake -project
nmake
---------------------------
if want to grnerate vcproj ,then you can load the source to vc2008
execute below command,it will be very helpful if nmake doesn't work for you under command prompt
---------------------------
qmake -tp vc *.pro
---------------------------
6. Orbit for window
creat folder orbit in C:/Qt
uncompress Orbit.7z in C:/Qt/Orbit
Add environment variables PATH C:/Qt/Orbit/bin
make sure you have installed python2.5, if not,install python-2.5.1.zip
launch "Visual Studio 2008 Command Prompt"
//comment out win32-msvc*:QMAKE_CXXFLAGS += /WX in /src/hbcommon.pri
execute below
-----------------------------------------
configure.py --developer
nmake
nmake install
-----------------------------------------
if some errors occur during nmake compilation,just try nmake again
7. test Orbit project
in C:/Qt/Orbit/tsrc/hbwidgets/fute have many orbit demo,choose one
execute below command
---------------------------
cd source_code_folder
qmake -project CONFIG+=HB
nmake
---------------------------
you can execute the exe in debug folder if orbit is ok.
8. Orbit for S60 (step8 is qt orbit for pf5250/TB9.2 sdk, you don't need do it if you only need window qt orbit)
get the normal SDK(pf5250/TB9.2) in you PC
uncompress Orbit_and_S60QtBaseport_50_200938_delta_zip_part_1of1.zip to your SDK.
Q & A:
1,error: cannot find uuid.lib
in VC++: Tools->Options->Projects and Solutions -> VC++ directories -> Library files:
add new library directories: C:/Program Files/Microsoft SDKs/Windows/v6.1/Lib
2,if build in vc,meet some include problem
do below
---------------------------
Tools->Options->Project and Solutions->VC++Directories,select include file
add
C:/Qt/Orbit/include/hbcore,C:/Qt/Orbit/include/hbwidgets,C:/Qt/Orbit/include/hbcore/private
and so on
(add incude file you need if miss)
---------------------------
3,if build in vc,meet some lib problem
do below
---------------------------
youproject->Configuration Propeties->Linker->Input->Additional Dependencies,
add lib file you need if miss.e.g append C:/Qt/orbit/lib/*.lib.
---------------------------