https://github.com/google/glog/archive/master.zip
Sln档案
D:\public\glog-master\google-glog.sln
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual C++ Express 2008
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXmmIDMuU5SNKbDcxewordke_3WbqrUdH4oCKiitWRWAi0S-EmJI2FA2NIEfHBRNNjWU9tu-rl1aqC1-5sr-7uy3miYIXNV3urKw0-XLE7hLalEXb_Tmzk6bQOlmf0OG0Zahpn-3IeKYU/s1600/Screenshot+-+9_1_2016+%252C+10_18_08+AM.png)
I use Visual Studio 2013. After converted, run batch build to all
先下載glog最新版,解壓裡面有*sln文件,如果你安裝了VS2005以上版本都可以直接打開,編譯即可得到libglog.dll和libglog.lib文件,拷貝文件到你的測試文件夾下,並拷貝src\windows\下的glog目錄到你的工程文件下。
或者可以把整个编译完的glog-master拷到你的工程文件下。
其中某些档案可以删掉不要,Backup,vsprojects\*\Debug, \Release, \*.vcxproj, \*.filters *.suo UpgradeLog.htm,最后剩下21.4 MB (22,452,538 bytes)。
工程文件我新创建solution包含一个project,添加library文件夹在solution下面,把glog放到library里面。
C/C++ > General > Additional Include Directories = ..\library\glog\src\windows\
Linker > General > Additional Library Directories = ..\library\glog\$(Configuration);%(AdditionalLibraryDirectories)
Build Evenets > POst-Build Event > Command Line = xcopy /y /d "..\\library\glog\$(Configuration)\*.dll" "$(OutDir)"
沒有留言:
張貼留言