geometry-central icon indicating copy to clipboard operation
geometry-central copied to clipboard

Failed to build on Windows

Open gdwei opened this issue 1 year ago • 5 comments

Hi all, I am wondering if anyone has successfuly build geometry-central on Windows, I met some problems when building with cmake. And here are some infos printted in the cmake error log:

. . . CheckFunctionExists.obj : error LNK2019: 无法解析的外部符号 sgemm_,函数 main 中引用了该符号 [E:\Packages\geometry-central\geometry-central\build-vs2022\CMakeFiles\CMakeTmp\cmTC_b0ef4.vcxproj]

. . .

E:\Packages\geometry-central\geometry-central\build-vs2022\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1,10): fatal error C1083: cannot open include file: “pthread.h”: No such file or directory [E:\Packages\geometry-central\geometry-central\build-vs2022\CMakeFiles\CMakeTmp\cmTC_1cb74.vcxproj]

Any suggestion is welcome.

gdwei avatar Aug 29 '23 08:08 gdwei

I use ninja with cmake and mingw-llvm.

It worked for https://github.com/MarkGillespie/intrinsic-triangulations-demo

fire avatar Sep 10 '23 14:09 fire

The current master of geometry-central fails to build for me on:

CMake Error at deps/geometry-central/deps/CMakeLists.txt:158 (file):
  file failed to create symbolic link
  'C:/Users/ernes/Downloads/V-Sekai.intrinsic-triangulations/build/deps/geometry-central/deps/include/nanoflann/nanoflann.hpp':
  A required privilege is not held by the client.

fire avatar Sep 10 '23 14:09 fire

The current master of geometry-central fails to build for me on:

CMake Error at deps/geometry-central/deps/CMakeLists.txt:158 (file):
  file failed to create symbolic link
  'C:/Users/ernes/Downloads/V-Sekai.intrinsic-triangulations/build/deps/geometry-central/deps/include/nanoflann/nanoflann.hpp':
  A required privilege is not held by the client.

The situation is quite similar to mine. I also successfully build the flip-geodesics-demo in another project of Sharp that also includes geometric-central.

gdwei avatar Sep 15 '23 02:09 gdwei

I was able to use cmake on windows in a shell with admin-rights.

rob-rb avatar Dec 16 '23 08:12 rob-rb

Had the same issue on Windows, apparently regular users do not have permission to create symlinks by default, see https://github.com/golang/dep/issues/773. Also worked fine in an admin shell.

manuelruivodeoliveira avatar Apr 07 '24 13:04 manuelruivodeoliveira