nmoehrle / mvs-texturing

Algorithm to texture 3D reconstructions from multi-view stereo images
Other
931 stars 328 forks source link

Tried to compile using the README steps but failed. #200

Closed citystrawman closed 1 year ago

citystrawman commented 1 year ago

I used a windows 10 system and use mingw32-make as make command. Iexecuted the commands as follows:

  1. git clone https://github.com/nmoehrle/mvs-texturing.git
  2. cd mvs-texturing
  3. mkdir build && cd build && cmake .. .. -DCMAKE_TOOLCHAIN_FILE=D:\software\vcpkg\scripts\buildsystems\vcpkg.cmake -G "MinGW Makefiles" // Here I add DCMAKE_TOOLCHAIN_FILE makes me to find TBB which installed at vcpkg
  4. make

However, I got error messages as follows:

......
[ 45%] No update step for 'ext_mve'
[ 47%] No patch step for 'ext_mve'
[ 49%] No configure step for 'ext_mve'
[ 50%] Performing build step for 'ext_mve'
process_begin: CreateProcess(NULL, uname, ...) failed.
process_begin: CreateProcess(NULL, uname, ...) failed.
In file included from ../../libs/mve/mesh_io_ply.h:16:0,
                 from mesh_io_ply.cc:21:
../../libs/util/system.h: In function 'void util::system::sleep(std::size_t)':
../../libs/util/system.h:91:10: error: 'std::this_thread' has not been declared
     std::this_thread::sleep_for(std::chrono::milliseconds(msec));
          ^~~~~~~~~~~
../../Makefile.inc:29: recipe for target 'mesh_io_ply.o' failed
make[3]: *** [mesh_io_ply.o] Error 1
elibs\CMakeFiles\ext_mve.dir\build.make:84: recipe for target 'elibs/mve/src/ext_mve-stamp/ext_mve-build' failed
make[2]: *** [elibs/mve/src/ext_mve-stamp/ext_mve-build] Error 2
CMakeFiles\Makefile2:246: recipe for target 'elibs/CMakeFiles/ext_mve.dir/all' failed
make[1]: *** [elibs/CMakeFiles/ext_mve.dir/all] Error 2
Makefile:134: recipe for target 'all' failed
make: *** [all] Error 2
citystrawman commented 1 year ago

Must use original linux. I switched to WSL2 Ubuntu, reset git http proxy by

git config --global https.proxy 'https://172.29.160.1:7890'
git config --global http.proxy 'http://172.29.160.1:7890'

so that I can access git using proxy (fk the GFW) then follow the README steps works fine