Closed zimka closed 8 years ago
Hi,
I just pushed a fix to your problem. Unfortunately, I don't have a Windows to check if it works. Could you try it and let me know if you find any problem?
Hello. I'm sorry but it looks like this fix is not enough, there are still errors during the compilation. Anyway errors list have been changed:
C:\Users\zimka\Desktop\PyMCubes-master>python setup.py build
running build
running build_py
running build_ext
building 'mcubes._mcubes' extension
C:\Users\zimka\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0
\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python27\lib\site-packa
ges\numpy\core\include -IC:\Python27\include -IC:\Python27\PC /Tpmcubes/src/_mcu
bes.cpp /Fobuild\temp.win32-2.7\Release\mcubes/src/_mcubes.obj -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
_mcubes.cpp
c:\python27\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(
12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DE
PRECATED_API NPY_1_7_API_VERSION
C:\Users\zimka\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0
\VC\Include\xlocale(342) : warning C4530: C++ exception handler used, but unwind
semantics are not enabled. Specify /EHsc
C:\Users\zimka\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0
\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:\Python27\lib\site-packa
ges\numpy\core\include -IC:\Python27\include -IC:\Python27\PC /Tpmcubes/src/pywr
apper.cpp /Fobuild\temp.win32-2.7\Release\mcubes/src/pywrapper.obj -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
pywrapper.cpp
c:\python27\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(
12) : Warning Msg: Using deprecated NumPy API, disable it by #defining NPY_NO_DE
PRECATED_API NPY_1_7_API_VERSION
C:\Users\zimka\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0
\VC\Include\xlocale(342) : warning C4530: C++ exception handler used, but unwind
semantics are not enabled. Specify /EHsc
c:\users\zimka\desktop\pymcubes-master\mcubes\src\marchingcubes.h(29) : error C4
430: missing type specifier - int assumed. Note: C++ does not support default-in
t
mcubes/src/pywrapper.cpp(58) : see reference to function template instan
tiation 'void mc::marching_cubes<double[3],PythonToCFunc>(const vector3 (&),cons
t vector3 (&),int,int,int,formula,double,std::vector<_Ty> &,std::vector
Hi, zimka,
Sorry for the inconvenience. Unfortunately I'm very busy these weeks and I don't have a Windows machine with Visual C++ readily available. I'll take a look at it in 3-4 weeks. In the meantime you can get the code working if you change the line 25 of marchingcubes.h
:
typedef decltype(lower[0]) coord_type;
by
typedef double coord_type;
Then run python setup.py build
again and it should work. Let me know otherwise.
Hi,
I finally could install Windows and fix the problem. I uploaded the new version to PyPI, so you should be able to install it via
pip install PyMCubes
Again, let me know if you get any error.
Hello, It looks like everything is alright now. Thank you for maintaining.
Got an error when tried to build: "error: command 'C:\Users\zimka\AppData\Local\Programs\Common\Microsoft\V isual C++ for Python\9.0\VC\Bin\cl.exe' failed with exit status 2" The same thing with pip install
Full text of errors: