Question: using lib2geom standalone from Python
Thanks for the Nice project! Is it advisable to use it standalone (from Python) in the current state (I'd like to explore using it in https://github.com/cadquery/cadquery )?
If so, below I summarize my attempt to compile it. Though things seem to work fine, I only get the shared libs but no Python bindings. Any help will be appreciated.
cmake -B build -S . -G Ninja -D2GEOM_TESTING=OFF -D2GEOM_USE_GPL_CODE=OFF -D2GEOM_BUILD_SHARED=ON -D2GEOM_CYTHON_BINDINGS=ON -D2GEOM_CYTHON_BUILD_SHARED=ON -D2GEOM_BOOST_PYTHON=ON
-- The CXX compiler identification is GNU 7.5.0
-- The C compiler identification is GNU 7.5.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Boost: /home/adam/miniconda3/envs/ocp7.5/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found suitable version "1.72.0", minimum required is "1.60")
-- Found DoubleConversion: /home/adam/miniconda3/envs/ocp7.5/lib/libdouble-conversion.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- Found Cython: /usr/bin/cython
-- cython: FOUND
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Checking for module 'gtk+-3.0'
-- No package 'gtk+-3.0' found
-- Checking for module 'glib-2.0'
-- Found glib-2.0, version 2.56.4
-- Checking for module 'cairo'
-- Found cairo, version 1.15.10
-- Performing Test HAVE_SINCOS
-- Performing Test HAVE_SINCOS - Success
-- Ragel NOT found. Using stale svg-path-parser.cpp.
Not building toys as they require GTK3.
-- cython: FOUND
-- Found PythonLibs: /home/adam/miniconda3/envs/ocp7.5/lib/libpython3.7m.so (found version "3.7.8")
libcpp.vector.pxd ignored
libcpp.pair.pxd ignored
cython.operator.pxd ignored
libcpp.vector.pxd ignored
libcpp.pair.pxd ignored
libcpp.vector.pxd ignored
libcpp.pair.pxd ignored
cpython.ref.pxd ignored
cython.operator.pxd ignored
cpython.ref.pxd ignored
libcpp.vector.pxd ignored
libcpp.pair.pxd ignored
cython.operator.pxd ignored
libcpp.vector.pxd ignored
libcpp.pair.pxd ignored
cpython.ref.pxd ignored
cython.operator.pxd ignored
libcpp.vector.pxd ignored
libcpp.pair.pxd ignored
cpython.ref.pxd ignored
libcpp.vector.pxd ignored
libcpp.pair.pxd ignored
cython.operator.pxd ignored
libcpp.vector.pxd ignored
libcpp.pair.pxd ignored
cpython.ref.pxd ignored
libcpp.vector.pxd ignored
libcpp.pair.pxd ignored
libcpp.vector.pxd ignored
libcpp.pair.pxd ignored
cython.operator.pxd ignored
libcpp.vector.pxd ignored
libcpp.pair.pxd ignored
cpython.ref.pxd ignored
libcpp.vector.pxd ignored
libcpp.pair.pxd ignored
libcpp.vector.pxd ignored
libcpp.pair.pxd ignored
libcpp.vector.pxd ignored
libcpp.pair.pxd ignored
-- Found Python3: /home/adam/miniconda3/envs/ocp7.5/bin/python3.7 (found version "3.7.8") found components: Development Interpreter
-- Found Boost 1.72.0 at /home/adam/miniconda3/envs/ocp7.5/lib/cmake/Boost-1.72.0
-- Requested configuration: QUIET REQUIRED
-- BoostConfig: find_package(boost_headers 1.72.0 EXACT CONFIG REQUIRED QUIET HINTS /home/adam/miniconda3/envs/ocp7.5/lib/cmake)
-- Found Boost: /home/adam/miniconda3/envs/ocp7.5/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found suitable version "1.72.0", minimum required is "1.42.0")
-- Found Boost 1.72.0 at /home/adam/miniconda3/envs/ocp7.5/lib/cmake/Boost-1.72.0
-- Requested configuration: QUIET REQUIRED COMPONENTS python37
-- BoostConfig: find_package(boost_headers 1.72.0 EXACT CONFIG REQUIRED QUIET HINTS /home/adam/miniconda3/envs/ocp7.5/lib/cmake)
-- BoostConfig: find_package(boost_python 1.72.0 EXACT CONFIG REQUIRED QUIET HINTS /home/adam/miniconda3/envs/ocp7.5/lib/cmake)
-- Found boost_python 1.72.0 at /home/adam/miniconda3/envs/ocp7.5/lib/cmake/boost_python-1.72.0
-- Boost toolset is gcc7 (GNU 7.5.0)
-- Scanning /home/adam/miniconda3/envs/ocp7.5/lib/cmake/boost_python-1.72.0/libboost_python-variant*.cmake
-- Including /home/adam/miniconda3/envs/ocp7.5/lib/cmake/boost_python-1.72.0/libboost_python-variant-shared-py3.7.cmake
-- [x] libboost_python37.so.1.72.0
-- Including /home/adam/miniconda3/envs/ocp7.5/lib/cmake/boost_python-1.72.0/libboost_python-variant-static-py3.7.cmake
-- [ ] libboost_python37.a
-- Adding boost_python dependencies: headers
-- Found Boost: /home/adam/miniconda3/envs/ocp7.5/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found version "1.72.0") found components: python37
-- Configuring done
-- Generating done
-- Build files have been written to: /home/adam/cq/lib2geom/build