这段时间在学习Explorer++。Explorer++可以在
https://www.oschina.net/p/explorerplusplus 或者
https://github.com/derceg/explorerplusplus下载。下面是按照github的方法组建explorer++。
链接https://github.com/derceg/explorerplusplus/wiki/Building-Explorerplusplus
原文摘抄如下:
Requirements:
Visual Studio 2010
Boost C++ libraries
Pantheios
STLSoft
Boost
First, you’ll need to download and setup the Boost libraries. Explorer++ uses version 1.54.0 of Boost. Other versions will probably work, though they haven’t been tested.
Once you’ve downloaded and extracted Boost, add an environment variable that points to the Boost installation directory:
BOOST := C:\Program Files (x86)\boost\boost_1_54_0
This environment variable will then be used then be used by the Explorer++ project to locate the Boost headers. For additional information, see the Boost getting started guide.
Pantheios
Pantheios is a C/C++ logging library. To get started, download and extract it. Since Pantheios depends on STLSoft, you’ll also need to download and extract that. Explorer++ uses version 1.0.1-beta212 of Pantheios, along with version 1.9.109 of STLSoft. Other versions should work equally well.
Now add two environment variables:
PANTHEIOS := C:\pantheios-1.0.1-beta212
STLSOFT := C:\stlsoft-1.9.109
Compiling
Clone the Explorer++ repository, or download a copy of the code into a directory of your choice, and then open Explorer++\Explorer++.sln. From within Visual Studio, select Debug > Start Without Debugging to compile and run the program.
Visual Studio 2012 and 2013
Currently, there are some minor incompatibilities that prevent Explorer++ from been compiled with either VS2012 or VS2013. If you would prefer to use a newer version of the IDE, and you have VS2010 installed, you can use multi-targeting to build Explorer++.
在build的过程中,有几个错误。
1.Pantheios相关的错误。按照
http://blog.csdn.net/yannantian198656/article/details/70230172
可以解决这个错误。
2.subwcrev.exe相关的错误。这个是根据用来根据svn自动更新版本号。因为没有关联svn,所以将Configuration Properties->Build Events->Pre-Build Events中的Use In Build改为No。然后拷贝Version.h.teml这个文件,改名为Version.h,并且修改内容,将其中的#define BUILD_VERSION直接固定为某个值。
3.boost相关错误:LINK : fatal error LNK1104: cannot open file ‘libboost_date_time-vc100-mt-sgd-1_54.lib’。
参考下面链接
http://www.cppblog.com/Robertxiao/archive/2013/01/06/197022.html
使用b2 stage –toolset=msvc-10.0 –with-date_time architectu
re=x86 –stagedir=”.\stage\lib” link=static runtime-link=static threading=multi debug
生成libboost_date_time-vc100-mt-sgd-1_54.lib
4.fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
参考http://blog.csdn.net/junjiehe/article/details/16888197解决。
终于ok。
最后总结下,因为出了几个错误,开始怀疑跟boost,Pantheios
STLSoft的版本有关,所以全部换成了Explorer++推荐使用的版本了。其实可能跟版本并没有什么关系。