sadaszewski / concaveman-cpp

C++ port of mapbox's JS concaveman, with a Python wrapper
BSD 2-Clause "Simplified" License
151 stars 40 forks source link

Can not load library? #11

Open AI-ML-Enthusiast opened 4 years ago

AI-ML-Enthusiast commented 4 years ago

I compiled from terminal using the following command: g++ -std=c++11 -shared concaveman.cpp -o libconcaveman.so

but when I run the demo.py it produces the following error: OSError: cannot load library 'D:/feasibilityAnalysis2020_3/Dpointcloud3Dvision/RemoveNoiseAndTIN/Code/ConCaveHull/concaveman-cpp-master/concaveman-cpp-master/src/main/cpp/libconcaveman.so': error 0xc1

is there any solution? g++ version 8.1.0 python 3.6 cffi 1.14.0

ricardobarriosp commented 3 years ago

Same problem here. Has anyone found a solution?

ricardobarriosp commented 3 years ago

On my side I had the most silly error. When changing the hard-coded path to the '.so' library the was a typo in the path, left from copy pasting. Now it runs.