1.首先在https://trac.osgeo.org/geos下载geos-3.6.2.tar.bz2 

解压后

cd geos-3.6.2
./configue  //或选择安装的目录./configure --prefix=/root/env/geos
make 
make install 

2.使用

首先在

vim /etc/ls.so.conf
加入 /root/env/geos/lib
/sbin/ldconfig

在程序编译时在makefile或g++加入

LIBS = geos
LIBS_SEARCH_PATH = /root/env/geos
INCLUDES = /root/env/geos/include

或g++  -I/root/env/include -L/root/evn/lib -lgeos

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2021-11-18
  • 2021-06-18
  • 2022-12-23
猜你喜欢
  • 2022-01-28
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案