IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 开发工具 -> ?Status Notice ?? -> 正文阅读

[开发工具]?Status Notice ??

Status Notice??

The CMake build configuration is a community-maintained non-officially supported build setup for GEOS. All GEOS users who aim to rely on CMake, please respect Sandro's request stated in comment on ticket?#576?:

***?The official build system is the GNU Automake one (for versions prior to GEOS 3.5). Starting at GEOS 3.5, we officially also support CMake. We will happily accept tickets for GEOS 3.5 against CMake. We would appreciate a patch if you have one, but not required.. ***

Building on Windows with CMake

This article describes how to use CMake build system to build and install GEOS from sources on Microsoft Windows systems using Visual C++ compiler.


Download and install??CMake?2.8+. Executables can be downloaded from??http://www.cmake.org/cmake/resources/software.html

If you install from zip package, unpack it (eg: into "C:\cmake\") and add the bin directory to the PATH:

SET PATH=c:\cmake\cmake-2.8.2-win32-x86\bin;%PATH%

After this, start command prompt (cmd.exe).

Building from SVN development branch requires to generate the?geos_svn_revision.h?file with POSIX shell script:

tools\svn_repo_revision.sh

Notice,?tools\svn_repo_revision.sh?is a Bash script, so you need Bash some means to run Bash scripts on Windows.

Alternatively, you can create?geos_svn_revision.h?file manually in the top directory of the source tree:

  • In the root directory of your copy of SVN trunk:
    svn info
    
  • Locate line starting with?Revision:
    Revision: 3704
    
  • Use the revision number (in the output above it is?3704) to create?geos_svn_revision.h:
    echo #define GEOS_SVN_REVISION 3704 > geos_svn_revision.h
    

Alternatively, install from the fully-featured Windows installer and select option adding CMake runtime location to PATH environment variable.

In order to create the project with cmake do this: suppose for example the GEOS trunk was downloaded in "C:\geos\trunk" you may create a new folder like "C:\geos\build" enter in "C:\geos\build" and run the command for the compiler you like use:

C:\> cd geos\build
C:\geos\build> cmake -G "Visual Studio 9 2008" C:\geos\trunk

or

C:\geos\build> cmake -G "Visual Studio 9 2008 Win64" ..\trunk

or

C:\geos\build> cmake -G "NMake Makefiles" C:\geos\trunk

with these commands cmake creates a NMAKE makefiles or Visual Studio solution and projects in the folder "C:\geos\build".

Now you are able to build GEOS by loading GEOS.sln in Visual Studio IDE or from command line (use Visual Studio Command Prompt), depending on target CMake generator used in previous steps:

C:\geos\build> nmake /f makefile

or

C:\geos\build> msbuild GEOS.sln

Open Tickets

#935

incorrect cmake instruction

  开发工具 最新文章
Postman接口测试之Mock快速入门
ASCII码空格替换查表_最全ASCII码对照表0-2
如何使用 ssh 建立 socks 代理
Typora配合PicGo阿里云图床配置
SoapUI、Jmeter、Postman三种接口测试工具的
github用相对路径显示图片_GitHub 中 readm
Windows编译g2o及其g2o viewer
解决jupyter notebook无法连接/ jupyter连接
Git恢复到之前版本
VScode常用快捷键
上一篇文章      下一篇文章      查看所有文章
加:2021-10-20 12:41:44  更:2021-10-20 12:42:16 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 -2024/11/15 22:45:23-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码