Carbide.c++ v1.2中实现在命令行下进行编译
1、得到nds_symbian_vs_11.exe自解压文件与<How to compile for WINSCW without a CodeWarrior or Visual Studio IDE>文档,按照文档将Resource1.zip解压出来,对其中文件再进行解压到C:"SW tool"Install for Compile in CMD"MWCC目录下,应该包含分别从各自的解压文档得到的bin_zg_ia_sf、Symbian_Support_zg_ia_sf和Symbian_Tools_zg_ia_sf三个目录。
2、在C:"Symbian下建目录MWCC,将C:"SW tool"Install for Compile in CMD"MWCC下的文件拷入;
3、运行C:"Symbian"MWCC"bin_zg_ia_sf下的env_update.exe,选择<2> use the 3.2.x version;
4、设置环境变量:
MWCSym2Includes
C:"Symbian"MWCC"Symbian_Support"MSL"MSL_C"MSL_Common"Include;C:"Symbian" MWCC"Symbian_Support"MSL"MSL_C"MSL_Win32"Include;C:"Symbian"MWCC"Symbia n_Support"MSL"MSL_C"MSL_X86;C:"Symbian"MWCC"Symbian_Support"MSL"MSL_C++ "MSL_Common"Include;C:"Symbian"MWCC"Symbian_Support"MSL"MSL_Extras"MSL_C ommon"Include;C:"Symbian"MWCC"Symbian_Support"MSL"MSL_Extras"MSL_Win32"Inc lude;C:"Symbian"MWCC"Symbian_Support"Win32-x86 Support"Headers"Win32 SDK;
MWSym2Libraries
C:"Symbian"MWCC"Symbian_Support"Win32-x86 Support"Libraries"Win32 SDK;C:"Symbian"MWCC"Symbian_Support"Runtime"Runtime_x86"Runtime_Win32"Libs;
MWSym2LibraryFiles
MSL_ALL_MSE_Symbian_D.lib;gdi32.lib;user32.lib;kernel32.lib;
Path
C:"Symbian"MWCC"Bin;C:"Symbian"MWCC"Symbian_Tools"Command_Line_Tools;
5、重启即可使用,在命令行模式下切换到工程所在目录(如C:"Symbian"9.1"S60_3rd_MR"Examples"Basics"HelloWorld),执行:
>bldmake bldfiles
>abld build gcce urel //build the project to the mobile
或
>bldmake bldfiles
>abld build winscw urel //build the project to the emulator
即可编译完成,其编译结果在 C:"Symbian"9.1"S60_3rd_MR"Epoc32"BUILD"Symbian"9.1"S60_3rd_MR"Examp les"Basics"HelloWorld"HELLOWORLD下。
浙公网安备 33010602011771号