Closed baddstats closed 5 years ago
The polyclip
package includes all the required C++ code for the clipper library. However, if another version of the clipper C++ library (namely the polyclipping
C++ library) is already installed on the system, then the installation will use the already-installed one. The output in the message from @iembry includes the line Compiling against system copy of polyclipping library
which indicates that it is using an already-installed version of polyclipping
. Apparently there is an incompatibility between that system-installed code and the R package polyclip
. We have no control over this, unfortunately.
The option to compile against an already-installed library was added by a contributor. I will see if he is willing to help.
@QuLogic, can you help?
What version of the library is installed?
$ echo _ZN10ClipperLib12MinkowskiSumERKSt6vectorINS_8IntPointESaIS1_EERKS0_IS3_SaIS3_EERS7_b | c++filt
ClipperLib::MinkowskiSum(std::vector<ClipperLib::IntPoint, std::allocator<ClipperLib::IntPoint> > const&, std::vector<std::vector<ClipperLib::IntPoint, std::allocator<ClipperLib::IntPoint> >, std::allocator<std::vector<ClipperLib::IntPoint, std::allocator<ClipperLib::IntPoint> > > > const&, std::vector<std::vector<ClipperLib::IntPoint, std::allocator<ClipperLib::IntPoint> >, std::allocator<std::vector<ClipperLib::IntPoint, std::allocator<ClipperLib::IntPoint> > > >&, bool)
MinkowskiSum
was renamed from the erroneous MinkowkiSum
in 6.1.0.
@iembry, try updating your system installation of the polyclipping
library to version 6.1.0 or later.
@baddstats @QuLogic
I'm sorry for my delayed response, but I was able to install polyclip. I removed the system polyclip library. Thank you both again.
User @iembry posted the following message:
Hi, the CRAN version of polyclip on a GNU/Linux Ubuntu-based distribution has failed for me.
I have not tried the GitHub version yet.