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

dev not building with default settings on MSYS2 #2945

Open
Lestropie opened this issue Jul 22, 2024 · 2 comments
Open

dev not building with default settings on MSYS2 #2945

Lestropie opened this issue Jul 22, 2024 · 2 comments

Comments

@Lestropie
Copy link
Member

Will be downstream of #2920.

Attempting a build of the latest dev on MSYS2, I get:

[5/503] Running utility command for LinkPythonCommandFiles
FAILED: python/mrtrix3/commands/CMakeFiles/LinkPythonCommandFiles.util
python\mrtrix3\commands\CMakeFiles\LinkPythonCommandFiles.dir\utility.bat d8c87fc7c9db9120
CMake Error: failed to create symbolic link 'C:/msys64/home/rob/src/mrtrix3/build_release/lib/mrtrix3/commands/5ttgen/5ttgen.py': A required privilege is not held by the client.

This can be resolved using -DMRTRIX_PYTHON_SOFTLINK=OFF. However need to determine whether there is some other workaround. Probably not, given that softlink creation usually requires opening a native command prompt. If that's the case, this envvar needs to be forced to ON on MSYS2, with corresponding user warning.

@daljit46
Copy link
Member

Assuming you're on Windows 11, you can enable Developer Mode in Settings, which should fix things hopefully.

@Lestropie
Copy link
Member Author

Developer Mode does indeed resolve.

Ideally, if MRTRIX_PYTHON_SOFTLINK=ON, there should be an attempt made at configure time to construct a softlink, and if it fails a suitable error message should be issued.

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

No branches or pull requests

2 participants