Closed zhiweigong75 closed 1 year ago
@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.
@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 theiso2mesh/tools
folderhttps://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
.
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
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
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!
@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?
Hi @fangq
I faced an issue using the meshresample.m with my Mac M1 chip (macOS Monterey 12.4).
Here is the error: