nmwsharp / flip-geodesics-demo

Construct geodesic paths, loops, networks on surface with a fast and simple edge flipping algorithm. C++ demo app and more.
https://nmwsharp.com/research/flip-geodesics/
MIT License
93 stars 20 forks source link

Cannot execute in Windows #2

Open UncleFirefox opened 3 years ago

UncleFirefox commented 3 years ago

Hi,

I have installed CMAKE and configured for used with Visual Studio.

The I did he CMake command:

❯ cmake -DCMAKE_BUILD_TYPE= Release ..
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.19042.
-- The C compiler identification is MSVC 19.27.29112.0
-- The CXX compiler identification is MSVC 19.27.29112.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.27.29110/bin/Hostx64/x64/cl.exe - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- cmake build type: Release
Using Visual Studio compiler flags
-- Building STATIC libraries
--  resolving Eigen dependency:
-- --    Could not find Eigen anywhere. Downloading it (or using cached download).
-- --    success. Downloaded Eigen in C:/GitRepos/flip-geodesics-demo/build/deps/geometry-central/deps/eigen-src
-- Searching for SuiteSparse.
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Failed to find SuiteSparse - Did not find BLAS library (required for SuiteSparse).
-- Could NOT find BLAS (missing: BLAS_LIBRARIES)
-- LAPACK requires BLAS
-- Failed to find SuiteSparse - Did not find LAPACK library (required for SuiteSparse).
-- Failed to find SuiteSparse - Did not find AMD library (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find AMD header (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find CAMD library (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find CAMD header (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find COLAMD library (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find COLAMD header (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find CCOLAMD header (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find CHOLMOD library (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find CHOLMOD header (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find SuiteSparseQR library (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find SUITESPARSEQR header (required SuiteSparse component).
-- Failed to find SuiteSparse - Failed to find either: SuiteSparse_config header & library (should be present in all SuiteSparse >= v4 installs), or UFconfig header (should be present in all SuiteSparse < v4 installs).
-- Did not find METIS library (optional SuiteSparse dependency)
-- Failed to find some/all required components of SuiteSparse. (missing: BLAS_FOUND LAPACK_FOUND AMD_FOUND CAMD_FOUND CO-- Did not find all SuiteSparse dependencies, disabling SuiteSparse support.
CMake Warning (dev) at deps/polyscope/deps/imgui/CMakeLists.txt:10 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "MSVC" will no longer be dereferenced when the policy
  is set to NEW.  Since the policy is not set the OLD behavior will be used.
This warning is for project developers.  Use -Wno-dev to suppress it.

Polyscope backend openGL3_glfw enabled
Polyscope backend openGL_mock enabled
-- Configuring done
-- Generating done
-- Build files have been written to: C:/GitRepos/flip-geodesics-demo/build

Then compiled the underlying solution and did something like:

.\flip_geodesics.exe .\Nefertiti.obj

But I get the following message:

[polyscope] Backend: openGL3_glfw -- Loaded openGL version: 3.3.0 NVIDIA 461.72

And nothing else happens... Is it normal?

UncleFirefox commented 3 years ago

I think it gets stuck for a while if the mesh you want to load is too big... Like Nephertiti's obj...

nmwsharp commented 3 years ago

Hi!

Yes, that message you quoted is just the "setup" message which prints during initial loading.

Note that load times should general be not more than a few seconds, even on pretty big meshes. Make sure you're compiling in Release mode! (note that Visual Studio ignores the -DCMAKE_BUILD_TYPE= Release flag and you may need to manually pick the Release build from the dropdown.)

slp653802 commented 1 year ago

3b0aea5d0cdba39a114991d38e07683 nothing else happens,Because something went wrong, the error message is as above,if you use vs,not use cmd.

slp653802 commented 1 year ago

UncleFirefox is right,please see the new issue that I submit.