CLion issue on WSL cross compiling for Linux on Windows OS
Completed
I am getting the following error while compiling for Ubuntu with WSL.
How can get rid of it?
I have read some posts but it is not completely clear what could be the issue. I tried to follow the topic about case sensitive of IntelliJ and not case sensitive Windows but i did not fix my issue.
I have read some other stuff but what is the real thing to do to fix my problem and let me compile also for Linux while running on Windows OS.
C:\WINDOWS\system32\wsl.exe --distribution Ubuntu --exec /bin/sh -c "export CLION_IDE=TRUE && export JETBRAINS_IDE=TRUE && cd '/mnt/w/VMyyyy_xxx - AnC CW/VMyyyy_xxx - Line (OCxxxx bla blabla)/mycompany.com/acm/cmake-build-debug-wsl' && /usr/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G 'CodeBlocks - Unix Makefiles' '/mnt/w/VMyyyy_xxx - AnC CW/VMyyyy_xxx - Line (OCxxxx bla blabla)/mycompany.com/acm'; exitcode=$?; sleep 0.001; (exit $exitcode)"
/bin/sh: 1: cd: can't cd to /mnt/w/VMyyyy_xxx - AnC CW/VMyyyy_xxx - Line (OCxxxx bla blabla)/mycompany.com/acm/cmake-build-debug-wsl
Please sign in to leave a comment.
Hello!
It seems there is a problem to change working directory (on W drive).
Please do the following:
wsl -d Ubuntu
cd /mnt/w/<path_to_project>/cmake-build-debug-wsl && ls
What result do you get?
while writing to you i got the same idea and i copied from remote folder (which was W letter drive) to the local C drive and it worked.
Actually the folder /mnt/w does not exist at all. I was thinking that CLion should automatically generate it but seems it does not.
After other couple of test I can say that there might be 2 problems: