Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build on Windows #163

Open
gdwei opened this issue Aug 29, 2023 · 5 comments
Open

Failed to build on Windows #163

gdwei opened this issue Aug 29, 2023 · 5 comments

Comments

@gdwei
Copy link

gdwei commented Aug 29, 2023

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.

@fire
Copy link

fire commented Sep 10, 2023

I use ninja with cmake and mingw-llvm.

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

@fire
Copy link

fire commented Sep 10, 2023

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.

@gdwei
Copy link
Author

gdwei commented Sep 15, 2023

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.

@rob-rb
Copy link

rob-rb commented Dec 16, 2023

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

@manuelruivodeoliveira
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants