Subject: CGAL users discussion list
List archive
- From: rahulverma88 <>
- To:
- Subject: [cgal-discuss] Creating SWIG Python bindings for CGAL function
- Date: Fri, 6 Sep 2019 09:35:00 -0500 (CDT)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
- Ironport-phdr: 9a23:saDxrB8e62wPff9uRHKM819IXTAuvvDOBiVQ1KB40OMcTK2v8tzYMVDF4r011RmVBN+dsq0VwLSN+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxhWiDanfL9/LhG7oQrQu8QYnIBvNrs/xhzVr3VSZu9Y33loJVWdnxb94se/4ptu+DlOtvwi6sBNT7z0c7w3QrJEAjsmNXs15NDwuhnYUQSP/HocXX4InRdOHgPI8Qv1Xpb1siv9q+p9xCyXNtD4QLwoRTiv6bpgRRn1gykFKjE56nnahMJwgqxFoxyvuhNwzJLbboyOKPpzfL/Rcc8GSWZdQMpcUTFKDIOmb4sICuoMJfxYoJP9p1sTqRu+GxejBPnqyjBShXL73rAx3uM7EQ7c3AwgAtYOsGrKo9XvMacdS+O4warTwDXMavNZwzb96IzSfh89pvGMWKt9fMzMwkchEAPFi0+fqY3jPz6N0OQCqXOU4PFkVe2xkWIotwZxoj2py8wxiYfJnpoYxk3A+Ch92oo4K961RFR4bNOlCpddtiCXOo1rSc04WW5oojw1yrgetJ67YicKzJMnygbZa/GIaYSI5AjsW/2KLjd8mn1pYq6whxG38US4y+38UNe70EpSoyZYltTBsmoB2hLQ58SdSfZw/12t1DeO2gzL7+FLO0E0la7VK547xb4wk4IesV7ZES/2hUX2iLGWeVs++uit8evqYbbrq4STN49xkA7+M6AultajDuQ/NwgCR3Kb9vik1L3/4U35R61HgeE5kqbDtJDWPNkUpq+iAwBJz4Yj8A2/Aiy90NUYmHkHNEhKdAiGj4jvIVHOIer3Ae2xg1S2w39XwKXNMbTlR5nMNXPei6zJfLBn6kcaxhBg48pY4sdOA7EcJOz+QEr45IyQWgUwMxGw3ev9DdwthqsRXGuOBumSN6aE4gzA3f4mP+TZPNxdgz36MfVwv6ez3098okcUeOyS5bVSaH28Ga07cUPFJ3zliN0FHCEBuQ9sFbW22m3HaiZaYjOJZ4x5/isyUdv0AoLKR4Tri7uEjn/iT89mI1teA1XJKk/GMoCNWvMCciWXe5YznTkNVLznQIgkh0qj
Hi, I'm trying to build a python interface to a custom CGAL function. The
function works just fine on its own, but I get errors when I try to do the
linking with Python using SWIG.
I have been using 'cgal_create_cmake_lists' to create the CMakeLists.txt for
the CGAL part, doing cmake and make, and then using the generated .o files
to link with SWIG, but I think I am not linking the required boost and GMP
libraries properly with the SWIG-generated shared object ".so" file.
SWIG generates the shared object files for me, but then when I try to import
my module, I get an error:
Symbol not found: __ZN4CGAL11NULL_VECTORE
I am using the command "ld -bundle -flat_namespace -undefined suppress -o
cgal_executable.so *.o" to generate the shared object file. Should I be
linking boost and GMP libraries in this step? If so, how do I do that? I am
on a Mac OS. I can share my full code if needed.
I know there is a project for Python-SWIG bindings, but I really don't need
all of it, and also it seems to be missing a lot of useful CGAL features. I
would like to work in C++, and just interface my functions with Python as
needed.
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] Creating SWIG Python bindings for CGAL function, rahulverma88, 09/06/2019
- Re: [cgal-discuss] Creating SWIG Python bindings for CGAL function, Sebastien Loriot (GeometryFactory), 09/09/2019
Archive powered by MHonArc 2.6.18.