2016年9月1日 星期四

Google 0.3.4 glog on Windows 7




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


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)"

沒有留言:

張貼留言

2007 to 2023 HP and Dell Servers Comparison

  HP Gen5 to Gen11  using ChatGPT HP ProLiant Gen Active Years CPU Socket Popular HP CPUs Cores Base Clock Max RAM Capacity Comparable Dell ...