Building Explorer++

这段时间在学习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++推荐使用的版本了。其实可能跟版本并没有什么关系。

世界地图矢量数据可以通过多种网站进行下载。以下是一些提供免费下载世界地图矢量数据的网站: 1. Open Street Map (https://www.openstreetmap.org/): 这个网站可以根据输入的经纬度或手动选定范围来导出目标区域的矢量图。导出的数据格式为osm格式,但只支持矩形范围的地图下载。 2. Geofabrik (http://download.geofabrik.de/): Geofabrik提供按洲际和国家快速下载全国范围的地图数据。数据格式支持shape文件格式,包含多个独立图层,如道路、建筑、水域、交通、土地利用分类、自然景观等。数据每天更新一次。 3. bbbike (https://download.bbbike.org/osm/): bbbike提供全球主要的200多个城市的地图数据下载,也可以按照bbox进行下载。该网站还提供全球的数据,数据格式种类齐全,包括geojson、shp等。 4. GADM (https://gadm.org/index.html): GADM提供按国家或全球下载地图数据的服务。该网站提供多种格式的数据下载。 5. L7 AntV (https://l7.antv.antgroup.com/custom/tools/worldmap): L7 AntV是一个提供标准世界地图矢量数据免费下载的网站。支持多种数据格式下载,包括GeoJSON、KML、JSON、TopJSON、CSV和高清SVG格式等。可以下载中国省、市、县的矢量边界和世界各个国家的矢量边界数据。 以上这些网站都提供了世界地图矢量数据的免费下载服务,你可以根据自己的需求选择合适的网站进行下载。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值