mrzv / dionysus

Library for computing persistent homology
http://mrzv.org/software/dionysus2
Other
145 stars 31 forks source link

Building problem on Windows 10 #15

Closed ghost closed 6 years ago

ghost commented 6 years ago

After newly installing boost, cmake and pip with conda I cannot get rid of `...

copying bindings\python\dionysus\__init__.py -> build\lib.win-amd64-3.6\dionysus

running build_ext

-- Building for: NMake Makefiles

CMake Error at CMakeLists.txt:1 (project):

  Generator
    NMake Makefiles
  does not support platform specification, but platform
    x64
  was specified.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred! ... `

when using pip install dionysus. Any help is greatly appreciated.

mrzv commented 6 years ago

I'm afraid I have no experience with Windows. It looks like CMake is unable to find the C/C++ compiler, but why that is, I don't know. You could try emailing the mailing list, to see if anybody can help you there.

lupangsogood commented 5 years ago

https://stackoverflow.com/questions/54967887/solution-install-dlibpython-and-get-error

prostospirit commented 5 years ago

I had the same problem and resolved it. Install Visual C++ and Python tools for Visual Studio Delete your Anaconda, download new version from official site and install it and other libraries according this instruction: https://www.learnopencv.com/install-opencv-3-and-dlib-on-windows-python-only/

mrzv commented 5 years ago

@prostospirit If you managed to compile Dionysus on Windows, do you mind writing up instructions on how to do it (the more detailed, the better)? For one, I'd love to know myself — I never succeeded on Windows — and it's a frequent enough question that I'd like to include it in the documentation.

prostospirit commented 5 years ago

@mrzv I have never used dionysus. This problem must be solved individually. But usually, if this error occurs, it is necessary to check all packages containing C ++. As far as I know, before using the C ++ libraries, you must install Visual Studio 2015 or newer with the installation of all the packages required for working with C ++. image

After that, if the error persists install cmake https://cmake.org/download/. If there is still an error, try installing one of the packages into the virtual environment: https://pypi.org/project/cmake/ https://anaconda.org/conda-forge/cmake https://anaconda.org/anaconda/cmake I have little experience with CMake in Python, but most problems of this nature were solved in this way.