Page MenuHome

Building on Windows: Case sensitivity folders issue
Closed, ResolvedPublic

Description

System Information
Windows 10 Pro, v.1803 (build 17134.228)

Blender Version
Broken: rBa349527981 (blender 2.8 HEAD)

Short description of error
Windows supports case sensitive folders (yup, it is per folder) now. And Blender can´t build if either the lib or the source folders are case sensitive. It doesn´t find a range of libraries and files: Python3.7, RNA_blender_cpp.h, GL\glew.h, ...

Exact steps for others to reproduce the error
The easy way to do it is by creating the root folder (where blender source and lib is stored) via Ubuntu on Windows, which is how I ran into the issue originally. This way the folder is automatically set as case sensitive.

Optionally you can create the folder and later change it with fsutil.exe file setCaseSensitiveInfo <path> enable.

If you want to do this recursively you will need powershell for that:

[string] $PathRoot = 'C:\src\blender_root'

@(Get-ChildItem -Path $PathRoot -Recurse -Directory | Select-Object -ExpandProperty 'FullName') | ForEach-Object { 
cmd /c ('fsutil.exe file SetCaseSensitiveInfo "{0}" enable' -f ($_))
}

Reference Links

Related Objects

Event Timeline

Dalai Felinto (dfelinto) triaged this task as Confirmed, Medium priority.

Assigning to platform maintainer @LazyDodo (LazyDodo) but I may tackle it myself in the far future.

I'm still on 7 so can't repro, i'll eventually will take peek here.

Brecht Van Lommel (brecht) lowered the priority of this task from Confirmed, Medium to Confirmed, Low.Mar 26 2019, 5:05 AM

Did some fixes so it at-least builds now, However....

msbuild rebuilds most of blender every time you build, ninja is having none of it and just refuses.

So while it builds in the default configuration the build tools are not mature enough to turn having case sensitivity on windows into a supported configuration.