Perlmint / glew-cmake

GLEW(https://github.com/nigels-com/glew, source updated nightly) with Cmake and pre-generated sources
Other
234 stars 95 forks source link

Symlink issue when building on WSL mounted drives #56

Closed sin3point14 closed 1 year ago

sin3point14 commented 1 year ago

I get the following errors when I try to link glew with my project:

make[2]: stat: vendor/glew-cmake/lib/libglew.a: Too many levels of symbolic links
make[2]: *** No rule to make target 'vendor/glew-cmake/lib/libglew.a', needed by 'Newton'.  Stop.
make[2]: *** Waiting for unfinished jobs....

checking the build dir:

/mnt/c/Users/sin3point14/github-clones/Newton/build$ ls -alh vendor/glew-cmake/lib
total 1.1M
drwxrwxrwx 1 sin3point14 sin3point14  512 Dec 30 03:19 .
drwxrwxrwx 1 sin3point14 sin3point14  512 Dec 30 03:18 ..
lrwxrwxrwx 1 sin3point14 sin3point14    9 Dec 30 03:19 libGLEW.a -> libglew.a
lrwxrwxrwx 1 sin3point14 sin3point14   23 Dec 30 03:19 libglew-shared.so -> libglew-shared.so.2.2.0
-rwxrwxrwx 1 sin3point14 sin3point14 1.1M Dec 30 03:19 libglew-shared.so.2.2.0

I am not exactly sure but I think this is because NTFS filesystems treat paths in a case insensitive manner.

Perlmint commented 1 year ago

Fixed by #59 Only on the case sensitive file system, cmake will create symbolic link.