Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-33332

Cannot execute CMake in WSL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 16.0.2, Qt Creator 17.0.0-rc1
    • Windows 11, WSL with Ubuntu 24.04 and full development set installed (cmake, build-essential, git, gdb, etc.)
    • Windows

      [cmake] 
      [cmake] The build directory \home\dba\projects\proxy\build-debug is not reachable by the CMake executable /usr/bin/cmake on WSL.
      [cmake] You may need to add the project directory to the list of directories that are mounted by the build device.
      

      I'm able to execute

      cmake -S /home/dba/projects/proxy -B /home/dba/projects/proxy/build-debug
      

      in the Terminal tab on the bottom (executed in a WSL context), so the CMake command itself is fine.

      WSL is added as a remote Linux device and tested. I'm able to open a terminal from the device settings.

       

      Device test:

       

      Connecting to device...
      Connected. Now doing extended checks.
      
      
      Sending echo to device...
      Device replied to echo with expected contents.
      
      
      Sending echo to device...
      Device replied to echo with expected contents.
      
      
      Checking kernel version...
      Linux 6.6.87.2-microsoft-standard-WSL2 x86_64
      
      
      Checking if specified ports are available...
      All specified ports are available.
      
      
      Checking whether "generic file copy" works...
      "generic file copy" is functional.
      
      
      Checking whether "sftp" works...
      "sftp" is functional.
      
      
      Checking whether "rsync" works...
      Failed to start "rsync": "rsync" failed to start: The program "rsync" does not exist or is not executable.
      
      
      Checking if required commands are available...
      base64...
      base64 found.
      cat...
      cat found.
      chmod...
      chmod found.
      cp...
      cp found.
      cut...
      cut found.
      dd...
      dd found.
      df...
      df found.
      echo...
      echo found.
      eval...
      eval found.
      exit...
      exit found.
      kill...
      kill found.
      ls...
      ls found.
      mkdir...
      mkdir found.
      mkfifo...
      mkfifo found.
      mktemp...
      mktemp found.
      mv...
      mv found.
      printf...
      printf found.
      read...
      read found.
      readlink...
      readlink found.
      rm...
      rm found.
      sed...
      sed found.
      sh...
      sh found.
      shift...
      shift found.
      stat...
      stat found.
      tail...
      tail found.
      test...
      test found.
      touch...
      touch found.
      trap...
      trap found.
      which...
      which found.
      Device test finished successfully. 

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            cadam Cristian Adam
            dima8w Dzmitry B
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes