Poco for Windows 編譯 x86 x64
先開啟對版本的vs命令列
我以vs2013 為例:
x64: 開啟 VS2013 x64 相容工具命令提示 然後 cd 到 poco 根目錄 buildwin 120 build all both x64 samples
注意: 如果你要編譯 NetSSL_OpenSSL 這個庫, 得先加上ssl, 修改 buildwin.cmd 中的33行 set OPENSSL_DIR=C:\OpenSSL-Win64
mysql 也一樣 ,必需先在buildwin.cmd 中修改好路徑
x86: 和x64基本一樣 buildwin
120 build all both Win32 samples
在 buildwin.cmd 檔案中的開頭有說明 :
rem
Usage:
rem ------
rem buildwin VS_VERSION [ACTION] [LINKMODE] [CONFIGURATION] [PLATFORM] [SAMPLES] [TESTS] [TOOL]
rem VS_VERSION: 90|100|110|120
rem ACTION: build|rebuild|clean
rem LINKMODE: static_mt|static_md|shared|all
rem CONFIGURATION: release|debug|both
rem PLATFORM: Win32|x64|WinCE|WEC2013
rem SAMPLES: samples|nosamples
rem TESTS: tests|notests
rem TOOL: devenv|vcexpress|wdexpress|msbuild
rem
rem VS_VERSION is required argument. Default is build all.
參考:
http://blog.sina.com.cn/s/blog_96ea53fb0101lpt1.html