GithubHelp home page GithubHelp logo

Comments (3)

alecjacobson avatar alecjacobson commented on July 24, 2024

This toolbox is mostly a collection of pure Matlab .m functions. So it shouldn't require installation and Matlab R2016a should work fine.

It looks like you're trying to run a specific function that might depend on compiled c++ "Mex" code. It's also from an external package, not written by me. I can try to help debug if you send a specific error message, but you might also ask on the page for that library https://www.mathworks.com/matlabcentral/fileexchange/6110-toolbox-fast-marching?s_tid=prof_contriblnk

from gptoolbox.

martinrnelson avatar martinrnelson commented on July 24, 2024

I am running the file external/exactgeodesic/example1.m, and it is the call to generate_new_mesh on line 12 that gives me the following error:


Error using calllib
Library was not found

Error in geodesic_new_mesh (line 30)
[id, tmp1, tmp2, num_edges, edges] = calllib(geodesic_library, 'new_mesh', length(p)/3, p, length(t)/3, t, 1, tmp);

Error in example1 (line 12)
mesh = geodesic_new_mesh(vertices,faces); %initilize new mesh

It seems that lines 3-11 in that geodesic_new_mesh file are failing to load the required library.

from gptoolbox.

martinrnelson avatar martinrnelson commented on July 24, 2024

Solved. The solution was to recompile the geodesic_matlab_api code from source using

cd /usr/local/gptoolbox/external/exactgeodesic/src
sudo g++ -fPIC -shared geodesic_matlab_api.cpp -o ../geodesic_release.so

and then after line 9 in geodesic_new_mesh.m, add

elseif isunix
loadlibrary(geodesic_library, hfile);

to ensure that the library does get loaded.

from gptoolbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.