drufat / triangle

Python bindings to the triangle library
GNU Lesser General Public License v3.0
224 stars 53 forks source link

Using the FTN95 C++ compiler #32

Closed pikkedil closed 5 years ago

pikkedil commented 5 years ago

This issue might is related to #28. I have the same difficulties as mentioned in the ticket. I would be able to fix the issue if I can have some guidelines to use another compiler other than the Microsoft C++ compiler.

We use the Silverfrost C++ compiler and can compile the triangle.c source code. The resulting executable works perfectly fine and the basic idea is to combine it with this Python code.

Questions:

  1. Does the Python code requires an executable or a dll? If it requires an executable: what must be the name of the executable and in which directory?
  2. If it requires a dll: Where must I set the compiler options?
pikkedil commented 5 years ago

No response from the site owner. However, at the following site I could get the mesher to work somehow: https://anaconda.org/alges/triangle

drufat commented 5 years ago

I have been travelling and had intermittent internet access. If you run 'python setup.py build_ext --inplace --verbose' you should be able to see the exact options that setuptools passes to the compiler to build the library. I believe it should also be possible to tell setuptools to use a compiler other than the default one by setting some environment variables (CC and CXX).