美文网首页
编译安装libspatialindex

编译安装libspatialindex

作者: 不玩了啊 | 来源:发表于2020-03-12 20:08 被阅读0次

1.先安装yum-y install gcc gcc-c++kernel-devel

2.下载1.8.5版本的安装包,解压,编译安装

windows环境下安装Python的Rtree包

Rtree包是基于libspatialindex开发的,在安装Rtree之前必须先安装libspatialindex。关于libspatialindex,除了官网的英文外,这里有一个中文翻译过来的介绍:http://blog.csdn.net/ljz2173/article/details/46009573,不再多说。

1. 这里http://www.lfd.uci.edu/~gohlke/pythonlibs/#rtree下载对应版本的Rtree的whl安装包,注意是python2.7还是3.5,注意电脑是32还是64位。可以放在电脑任意位置

2. 确保电脑里已经安装了python中wheel这个包,没有的话这个可以直接在cmd中输入pip install wheel安装

3. 打开cmd,输入pip install E:\软件安装包\Rtree-0.8.2-cp35-cp35m-win_amd64.whl,这个E盘是我存放Rtree的whl安装包的位置,自己安装的时候根据具体情况改一下即可。

顺便啰嗦一句吧,Linux安装libspatialindex的步骤大概如下:

https://github.com/libspatialindex/libspatialindex/wiki/1.-Getting-Started

鉴于国内github可能被墙,顺便也贴过来吧:

This tutorial will help you to get started with libspatialindex using C++ on linux. The following code is run on Ubuntu 12. If you are using windows the installation may be different. First install some prerequisites please enter the following into terminal. You may very well already have these installed.

Now we download and install the library. It doesn't matter what directory you download this in. Please note the version number, you can check if there are more recent versions in the download page herehttp://download.osgeo.org/libspatialindex/. Now enter the following into your terminal:

libspatialindex should now be installed on your system. Let's try to make a small c++ program to test this. Create the file tutorial1.cpp somewhere and enter the following:

Now let's compile the code. Type the following into the console. Please note-std=c++0xmakes it compile into C++11, although not required here it will be used in later examples.

Now run the program:

and it should output the following:

相关文章

  • 编译安装libspatialindex

    1.先安装yum-y install gcc gcc-c++kernel-devel 2.下载1.8.5版本的安装...

  • rtree安装

    1.安装libspatialindex 2.安装rtree 使用该命令安装时没有提示错误,但是在使用时提示找不到r...

  • 搭建并配置LAMP/LNMP环境

    如何编译安装软件编译安装是Linux安装软件的重要方式编译前的准备工作:./configure编译:make安装:...

  • Linux下编译Xmrig

    安装依赖 Ubuntu CentOS 安装 创建编译文件夹 编译安装 基本编译方式 静态编译方式 编译完成后使用l...

  • php 手动编译添加扩展

    在完成 php的编译安装后, 发现没有编译某此模块。手动添加安装。php源码编译安装 编译安装 在php源码包中 ...

  • 编译安装LNMP

    编译安装nginx 编译安装PHP 配置Nginx+PHP 安装MySQL

  • 编译安装LNMP2

    编译安装nginx 编译安装PHP 配置Nginx+PHP 安装MySQL

  • Centos7 安装Nginx

    一、编译安装 1、安装编译安装所需要的依赖 2、下载Nginx 3、解压 4、编译安装(默认设置) 5、查看安装目...

  • Hbuilder scss/sass编译 插件

    1. 安装插件 工具 -> 插件安装 -> scss/sass编译 -> 安装安装 scss/sass编译 插件 ...

  • nginx+passenger配置rails的生产环境

    先编译方式安装好nginx ==> 安装教程 安装passenger 编译安装,只需要在原来的编译配置参数后补上就...

网友评论

      本文标题:编译安装libspatialindex

      本文链接:https://www.haomeiwen.com/subject/fvywjhtx.html