# Error When determining geodesic distance between points

**URL:** <https://openep.discourse.group/t/error-when-determining-geodesic-distance-between-points/118>\
**Category:** Uncategorized\
**Created:** [18 January 2024 16:06 UTC](https://openep.discourse.group/t/error-when-determining-geodesic-distance-between-points/118 "2024-01-18T16:06:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lydia](https://avatars.discourse-cdn.com/v4/letter/l/34f0e0/32.png) [@Lydia](https://openep.discourse.group/u/Lydia)\
**Post date:** [18 January 2024 16:06 UTC](https://openep.discourse.group/t/error-when-determining-geodesic-distance-between-points/118/1 "2024-01-18T16:06:31Z")

</div>

Hey

I am trying to use the function “distance = distanceBetweenPoints(userdata, 1, 100, ‘plot’, ‘true’, ‘method’, ‘geodesic’)” I keep getting errors  
"Platform not supported  
Error using libisloaded  
Library name must be a string or a character vector.

Error in initialiseGeodesic (line 32)  
if ~libisloaded(geodesic\_library)

Error in geodesic\_new\_mesh (line 4)  
initialiseGeodesic();

Error in distanceBetweenPoints (line 86)  
mesh = geodesic\_new\_mesh(vertices,faces);"

I have installed the necessary C/C++ Complier but I still keep getting the error. Any suggestions will be helpful

---

<div class="post-metadata">

**Author:** ![steven.williams](https://yyz2.discourse-cdn.com/free1/user_avatar/openep.discourse.group/steven.williams/32/6_2.png) [@steven.williams](https://openep.discourse.group/u/steven.williams)\
**Post date:** [25 January 2024 16:15 UTC](https://openep.discourse.group/t/error-when-determining-geodesic-distance-between-points/118/2 "2024-01-25T16:15:30Z")

</div>

Hi Lydia, this sounds like an error with the library we used for the geodesic (surface) calculations. Can I check which platform (Windows, Mac, Linux) you are on?

We will need to do some testing at our end to make sure the correct library is there. From memory we tested this for Ubuntu and OSX, so at a guess I wonder if you are on Windows?

Best wishes  
Steven

---

<div class="post-metadata">

**Author:** ![Lydia](https://avatars.discourse-cdn.com/v4/letter/l/34f0e0/32.png) [@Lydia](https://openep.discourse.group/u/Lydia)\
**Post date:** [25 January 2024 18:26 UTC](https://openep.discourse.group/t/error-when-determining-geodesic-distance-between-points/118/3 "2024-01-25T18:26:33Z")

</div>

Yes I am using windows.
