开源软件名称(OpenSource Name):yjwong/s2-geometry-library开源软件地址(OpenSource Url):https://github.com/yjwong/s2-geometry-library开源编程语言(OpenSource Language):C++ 98.9%开源软件介绍(OpenSource Introduction):s2-geometry-library
This package has Python bindings which target Python 2.7. You can also use it as a C++ library. In Python code, DependenciesYou'll need the development (-dev or -devel) versions of these libraries in order to build the library.
You'll need these build-time dependencies:
A C++ compiler supporting C++11 (g++ 4.8 or later, clang 3.3 or later) is also required. Mac OS X specific notesMake sure you are using python.org Python, and that it is the default in your path (not Apple's Python or Macports Python). Other dependencies will need to be installed with MacPorts using the Make sure BuildingThe Linux From Scratch way (also for OSX)cd geometry
cmake .
make -j3
sudo make install Then to install Python 2.7 bindings: cd python
cmake .
make
sudo make install As a Debian packageThis is currently broken, and needs to be ported to cmake. apt-get install python-dev debhelper libgflags-dev cdbs swig build-essential fakeroot autoconf libtool pkg-config
./autogen.sh
pushd ..
tar jcf s2_1.0.0.orig.tar.bz2 s2-geometry-library/ --exclude=.git
popd
dpkg-buildpackage -rfakeroot Installing the Debian packageOnce built: dpkg -i ../libs2*.deb ../python-s2*.deb Running the tests (Python)python test.py |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论