semseg_od
semseg_od copied to clipboard
cannot run build.sh
Hi @pb-brainiac @ssegvic @orsic @jsaric ,
Thank you for the code release :)
I am currently working in Windows OS, and face the following issue while running build.sh
"rm: cannot remove 'cylib.so': No such file or directory cylib.cc:4:10: fatal error: Python.h: No such file or directory #include "Python.h" "
Any help would be appreciated. Thanks :)
Unfortunately we are unable to offer Windows-specific support, since all computers in our lab are under Linux. That said, it is clear that the compiler is unable to find Python.h, a header file from the Python distribution. Good luck!
Since I am trying to run this on windows, could you please tell me the purpose of this line?
-I/usr/lib/python3.7/site-packages/numpy/core/include -I/usr/include/python3.7m -o cylib.so cylib.cc
It is the continuation of line 7
The full line is: g++ -shared -pthread -fPIC -fwrapv -O3 -Wall -fno-strict-aliasing -I/usr/lib/python3.7/site-packages/numpy/core/include -I/usr/include/python3.7m -o cylib.so cylib.cc
For the explanation of the individual options please refer to the g++ man page: https://linux.die.net/man/1/g++
I still cannot find a solution for windows. My gcc and g++ version are gcc (GCC) 7.4.0 and g++ (GCC) 7.4.0
@ssegvic I do have Python.h in my computer and these are the paths:
-
C:\Users\RAR7ABT\AppData\Local\conda\conda\envs\pjval\Lib\site-packages\torch\include\torch\csrc\api\include\torch\python.h
-
C:\Users\RAR7ABT\AppData\Local\JetBrains\PyCharm Community Edition 2018.3.5\helpers\pydev\pydevd_attach_to_process\dll\python.h
-
C:\Users\RAR7ABT\AppData\Local\conda\conda\envs\pjval\include\Python.h
Should I be adding one of these in build.sh?