fangq / iso2mesh

Iso2Mesh - a 3D surface and volumetric mesh generator for MATLAB/Octave
http://iso2mesh.sf.net
Other
183 stars 73 forks source link

Compiling issue #65

Closed mikami520 closed 2 years ago

mikami520 commented 2 years ago

Issue

Hi @fangq, I followed the instruction to compile iso2mesh(git clone --recurse...) when I type make clean it gave me the following error:

[ameen@c117074 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[2]: *** No rule to make target `clean'.  Stop.
make[1]: *** [clean] Error 2
make[2]: *** No rule to make target `clean'.  Stop.
make[1]: *** [clean] Error 2
make[2]: *** No rule to make target `clean'.  Stop.
make[1]: *** [clean] Error 2
rm: cannot remove ‘bin/off2obj’: No such file or directory
make[1]: [clean] Error 1 (ignored)
rm: cannot remove ‘lib/libcork.a’: No such file or directory
make[1]: [clean] Error 1 (ignored)
rm: cannot remove ‘lib/libcorkdebug.a’: No such file or directory
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
make[1]: *** [clean] Error 1
make: *** [clean] Error 2

Also, when I then typed make, the process stopped with following issue:

Compiling obj/cork.o
Compiling obj/util/timer.o
Compiling obj/util/log.o
Compiling obj/isct/empty3d.o
In file included from src/isct/fixext4.h:42:0,
                 from src/isct/empty3d.cpp:30:
src/isct/fixint.h:51:17: fatal error: gmp.h: No such file or directory
 #include <gmp.h>
                 ^
compilation terminated.
make[1]: *** [obj/isct/empty3d.o] Error 1
make: *** [cork] Error 2

OS Info

PyTorch version: 1.11.0+cu113
Is debug build: False
CUDA used to build PyTorch: 11.3
ROCM used to build PyTorch: N/A

OS: CentOS Linux 7 (Core) (x86_64)
GCC version: (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Clang version: Could not collect
CMake version: version 2.8.12.2
Libc version: glibc-2.17

Python version: 3.8.8 (default, Apr 13 2021, 19:58:26)  [GCC 7.3.0] (64-bit runtime)
Python platform: Linux-3.10.0-1160.49.1.el7.x86_64-x86_64-with-glibc2.10
Is CUDA available: True
CUDA runtime version: 11.4.48
GPU models and configuration: 
GPU 0: NVIDIA GeForce RTX 3090
GPU 1: NVIDIA GeForce RTX 3090

Nvidia driver version: 470.94
cuDNN version: Probably one of the following:
/usr/lib64/libcudnn.so.8.2.2
/usr/lib64/libcudnn_adv_infer.so.8.2.2
/usr/lib64/libcudnn_adv_train.so.8.2.2
/usr/lib64/libcudnn_cnn_infer.so.8.2.2
/usr/lib64/libcudnn_cnn_train.so.8.2.2
/usr/lib64/libcudnn_ops_infer.so.8.2.2
/usr/lib64/libcudnn_ops_train.so.8.2.2
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

Versions of relevant libraries:
[pip3] numpy==1.22.3
[pip3] pytorch-ignite==0.4.8
[pip3] torch==1.11.0+cu113
[pip3] torchaudio==0.11.0+cu113
[pip3] torchvision==0.12.0+cu113
[conda] blas                      1.0                         mkl  
[conda] mkl                       2021.2.0           h06a4308_296  
[conda] mkl-service               2.3.0            py38h27cfd23_1  
[conda] mkl_fft                   1.3.0            py38h42c9631_2  
[conda] mkl_random                1.2.1            py38ha9443f7_2  
[conda] numpy                     1.20.1           py38h93e21f0_0  
[conda] numpy-base                1.20.1           py38h7d8b39e_0  
[conda] numpydoc                  1.1.0              pyhd3eb1b0_1  

Do you have any suggestions for these two issues? Thank you in advance!

fangq commented 2 years ago

please check out the Build-Depends settings on Debian/Ubuntu

https://salsa.debian.org/pkg-octave-team/octave-iso2mesh/-/blob/debian/latest/debian/control#L7-12

since you use CentOS, you can also check out the Requires settings for the Fedora package

https://src.fedoraproject.org/rpms/octave-iso2mesh/blob/rawhide/f/octave-iso2mesh.spec#_34

to build the tools on Fedora, you can use the commands in the %build section

https://src.fedoraproject.org/rpms/octave-iso2mesh/blob/rawhide/f/octave-iso2mesh.spec#_105