RenderDoc in wsl2 ubuntu

Posted by shensunbo on November 4, 2025

直接安装的版本会出现段错误

使用官方编译的版本

下载 renderdoc

wget https://renderdoc.org/stable/latest/renderdoc_latest.tar.gz

解压

tar -xvf renderdoc_latest.tar.gz

进入目录

cd renderdoc-*

运行

./bin/qrenderdoc

安装依赖项

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Requirements:
-------------

* libxcb
* libX11
* libX11-xcb
* libGL

These should be available on any system with X installed. You can always
build RenderDoc yourself from source. For more information, github.

To run qrenderdoc, Qt is statically linked but additional system
libraries are needed:

* libstdc++ >= 6.0.21 (from GCC 5.x)
* libfontconfig1 >= 2.11.0
* libfreetype6 >= 2.4.8
* libproxy >= 0.4.7

创建软链接

1
2
sudo ln -s /home/shensunbo/tools/renderdoc_1.40/bin/qrenderdoc /usr/local/bin/qrenderdoc
sudo ln -s /home/shensunbo/tools/renderdoc_1.40/bin/renderdoccmd /usr/local/bin/renderdoccmd

done

renderdoc