micmacIGN / micmac

Free open-source photogrammetry software tools
http://micmac.ensg.eu
Other
718 stars 153 forks source link

[Windows] Not compiling micmac.sln files #205

Closed bxh429 closed 1 year ago

bxh429 commented 2 years ago

Hi there,

I am trying to setup MicMac on a fresh Windows install.

I followed the steps under windows https://github.com/micmacIGN/micmac#compiling-process-for-visual-c-windows

At first when I ran the cmake command, I kept getting an error that it could not find CXX and C compilers. I fixed that by adding the following code to CMakeLists.txt. It was an error like this

set( CMAKE_CXX_COMPILER "C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin/g++" )
set( CMAKE_C_COMPILER "C:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/bin/gcc" )

Once I run the cmake command again, I ran into this error:

C:\MicMac\build>cmake ..\
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:6 (project):
  Running

   'nmake' '-?'

  failed with:

   The system cannot find the file specified

-- Configuring incomplete, errors occurred!
See also "C:/MicMac/build/CMakeFiles/CMakeOutput.log".

I fixed that by running from MicMac folder:

cmake -G "MinGW Makefiles"

I now keep running into this error or rather warning:

-- -----> Compile with c++11 support
-- -- FLAG:  -std=c++11
-- -- Git executable found
-- Derniere revision git de MicMac : v1.0.beta14-575-g1ef44c6a3-dirty
-- PoissonRecon/SurfaceTrimmer: OpenMP enabled
-- Configuring done
CMake Warning (dev) at src/CMakeLists.txt:170 (add_library):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    C:/MicMac/src/TpMMPD/TiePByMesh/PackHomolToPly_main.cpp
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: C:/MicMac

No build files are created, build folder is empty, and only thing created is a Makefile under C:/MicMac

Any help or direction would be much appreciated.