jchibane / if-net

Implicit Feature Network (IF-Net) - Codebase
305 stars 59 forks source link

Warning occurs when install libraries #2

Closed csyhping closed 4 years ago

csyhping commented 4 years ago

Hi Julian, when I follow the command to install libraries libmesh and libvoxelize, it shows some warning info, does it matters or can I just ignore them? Thank you.

when install libmesh

Compiling triangle_hash.pyx because it changed.
[1/1] Cythonizing triangle_hash.pyx
/home/yuhan/anaconda3/envs/if-net/lib/python3.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /disk2/yuhan/Proj/if-net/data_processing/libmesh/triangle_hash.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
running build_ext
building 'triangle_hash' extension
creating build
creating build/temp.linux-x86_64-3.7
gcc -pthread -B /home/yuhan/anaconda3/envs/if-net/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/yuhan/anaconda3/envs/if-net/include/python3.7m -c triangle_hash.cpp -o build/temp.linux-x86_64-3.7/triangle_hash.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC
but not for C++
In file included from /usr/include/numpy/ndarraytypes.h:1809:0,
                 from /usr/include/numpy/ndarrayobject.h:18,
                 from /usr/include/numpy/arrayobject.h:4,
                 from triangle_hash.cpp:626:
/usr/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using depre
cated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^~~~~~~
triangle_hash.cpp: In function ‘PyObject* __pyx_f_13triangle_hash_12TriangleHash
_query(__pyx_obj_13triangle_hash_TriangleHash*, __Pyx_memviewslice, int)’:
triangle_hash.cpp:3400:33: warning: comparison between signed and unsigned integ
er expressions [-Wsign-compare]
   for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_21; __pyx_t_6+=1) {                  
                       ~~~~~~~~~~^~~~~~~~~~~~                  
triangle_hash.cpp:3423:33: warning: comparison between signed and unsigned integ
er expressions [-Wsign-compare]      
   for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_21; __pyx_t_6+=1) {
                       ~~~~~~~~~~^~~~~~~~~~~~
creating build/lib.linux-x86_64-3.7
g++ -pthread -shared -B /home/yuhan/anaconda3/envs/if-net/compiler_compat -L/hom
e/yuhan/anaconda3/envs/if-net/lib -Wl,-rpath=/home/yuhan/anaconda3/envs/if-net/l
ib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/triangle_hash.
o -o build/lib.linux-x86_64-3.7/triangle_hash.cpython-37m-x86_64-linux-gnu.so
copying build/lib.linux-x86_64-3.7/triangle_hash.cpython-37m-x86_64-linux-gnu.so
 ->

when install libvoxelize

Compiling voxelize.pyx because it changed.
[1/1] Cythonizing voxelize.pyx
/home/yuhan/anaconda3/envs/if-net/lib/python3.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /disk2/yuhan/Proj/if-net/data_processing/libvoxelize/voxelize.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
running build_ext
building 'voxelize' extension
creating build
creating build/temp.linux-x86_64-3.7
gcc -pthread -B /home/yuhan/anaconda3/envs/if-net/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/yuhan/anaconda3/envs/if-net/include/python3.7m -c voxelize.c -o build/temp.linux-x86_64-3.7/voxelize.o
voxelize.c:2648:12: warning: ‘__pyx_f_8voxelize_test_triangle_aabb’ defined but
not used [-Wunused-function]
 static int __pyx_f_8voxelize_test_triangle_aabb(__Pyx_memviewslice __pyx_v_boxcenter, __Pyx_memviewslice __pyx_v_boxhalfsize, __Pyx_memviewslice __pyx_v_triverts) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
creating build/lib.linux-x86_64-3.7
gcc -pthread -shared -B /home/yuhan/anaconda3/envs/if-net/compiler_compat -L/home/yuhan/anaconda3/envs/if-net/lib -Wl,-rpath=/home/yuhan/anaconda3/envs/if-net/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/voxelize.o -o
build/lib.linux-x86_64-3.7/voxelize.cpython-37m-x86_64-linux-gnu.so
copying build/lib.linux-x86_64-3.7/voxelize.cpython-37m-x86_64-linux-gnu.so ->
jchibane commented 4 years ago

Hi,

I have the same warnings, but processed the data without any issues - that's why I didn't investigate further. You can just go ahead.

As the library is from OccNet, they might have further info.

Best, Julian

jiaqiAA commented 3 years ago

Hi, I met the same problems, but I met another error as follows: 2 ImportError: attempted relative import with no known parent package Do you know how to fix it?