Giter Club home page Giter Club logo

Comments (3)

fangq avatar fangq commented on August 21, 2024

@zhiweigong75, unfortunately iso2mesh does not include any pre-compiled binaries for M1 processors. I expect that not only meshresample.m does not work, many other functions such as meshcheckrepair and s2m/surf2mesh also won't work.

you can, however, compile it yourself if you can set up the building environment. To compile these binaries, you need to run make inside the iso2mesh/tools folder

https://github.com/fangq/iso2mesh/tree/master/tools

you should also use git submodule update --init --remote to download all submodules under that folder. I anticipate setting up the compilation enviroment will take some time. currently, the included Makefile only works on Ubuntu Linux.

from iso2mesh.

mikami520 avatar mikami520 commented on August 21, 2024

@zhiweigong75, unfortunately iso2mesh does not include any pre-compiled binaries for M1 processors. I expect that not only meshresample.m does not work, many other functions such as meshcheckrepair and s2m/surf2mesh also won't work.

you can, however, compile it yourself if you can set up the building environment. To compile these binaries, you need to run make inside the iso2mesh/tools folder

https://github.com/fangq/iso2mesh/tree/master/tools

you should also use git submodule update --init --remote to download all submodules under that folder. I anticipate setting up the compilation enviroment will take some time. currently, the included Makefile only works on Ubuntu Linux.

@fangq Hi, I am the teammate of @zhiweigong75. I tried two ways to use iso2mesh.

  1. I installed iso2mesh by MATLAB Add-Ons, when I called vol2surf, the MATLAB quit without reasons by just killing the process. Here is the error message:
sakuraxiao@ubuntu:~/Desktop/Statistical-Shape-Modeling/asm-master$ matlab
MATLAB is selecting SOFTWARE OPENGL rendering.
Killed
  1. I followed the instruction to compile iso2mesh. when I called make clean, it gave me some errors and I had no idea to solve them. Here is the error message:
sakuraxiao@ubuntu:~/Desktop$ cd iso2mesh/
sakuraxiao@ubuntu:~/Desktop/iso2mesh$ rm -rf bin/*.mex* bin/*.exe
sakuraxiao@ubuntu:~/Desktop/iso2mesh$ cd tools
sakuraxiao@ubuntu:~/Desktop/iso2mesh/tools$ make clean
rm -rf  built #../bin
for i in cgalmesh cgalsimp2 cgalsurf cork meshfix meshfix/contrib/JMeshLib/test tetgen; do make --no-print-directory -C $i clean; done
make[1]: *** No rule to make target 'clean'.  Stop.
make[1]: *** No rule to make target 'clean'.  Stop.
make[1]: *** No rule to make target 'clean'.  Stop.
rm: cannot remove 'bin/off2obj': No such file or directory
Makefile:245: recipe for target 'clean' failed
make[1]: [clean] Error 1 (ignored)
rm: cannot remove 'lib/libcork.a': No such file or directory
Makefile:245: recipe for target 'clean' failed
make[1]: [clean] Error 1 (ignored)
rm: cannot remove 'lib/libcorkdebug.a': No such file or directory
Makefile:245: recipe for target 'clean' failed
make[1]: [clean] Error 1 (ignored)
make[1]: *** No rule to make target 'clean'.  Stop.
rm -f -f *.o jmeshlib
/bin/rm *.o *.a tetgen *~
/bin/rm: cannot remove '*.o': No such file or directory
/bin/rm: cannot remove '*.a': No such file or directory
/bin/rm: cannot remove 'tetgen': No such file or directory
/bin/rm: cannot remove '*~': No such file or directory
makefile:58: recipe for target 'clean' failed
make[1]: *** [clean] Error 1
commons/Makefile_common.mk:108: recipe for target 'clean' failed
make: *** [clean] Error 2

OS INFO

PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: N/A

OS: Ubuntu 18.04.6 LTS (x86_64)
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Clang version: Could not collect
CMake version: version 3.10.2
Libc version: glibc-2.25

Python version: 3.6.9 (default, Mar 15 2022, 13:55:28)  [GCC 8.4.0] (64-bit runtime)
Python platform: Linux-5.4.0-122-generic-x86_64-with-Ubuntu-18.04-bionic
Is CUDA available: N/A
CUDA runtime version: Could not collect
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: N/A

Versions of relevant libraries:
[pip3] No relevant packages
[conda] Could not collect

Do you have any ideas about these two installation methods? Thank you in advance!

from iso2mesh.

fangq avatar fangq commented on August 21, 2024

@mikami520, if you run iso2mesh on Ubuntu Linux, you don't need to compile anything. the package should work out-of-box.

are you able to run the built-in examples in iso2mesh/sample folder?

from iso2mesh.

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.