当前位置:网站首页>WSL+Valgrind+Clion
WSL+Valgrind+Clion
2022-07-28 16:42:00 【saddlesad】
Make a note of WSL Tool chain to use valgrind The process of
There is no target on the network clion stay windows Next use valgrind Chinese course of ,jetbrains The official tutorial is also vague , Write down the whole process and reference web tutorial here ,woc After writing, I found that there was a tutorial https://blog.csdn.net/u010606602/article/details/80782650.
install WSL As valgrind The bridge of , Make in windows It can also run under the weather valgrind etc. linux Exclusive tools .
- First, modify the image source , This is relatively simple and it varies according to the system , The general path is first cp preservation /etc/apt/sources.list, Then delete all contents and manually add domestic sources, After adding, use
sudo apt-get update;sudo apt-get upgrade;sudo apt-get install build-essential. If there is a problem with the third command , Then it should be dependence broken The problem of , It is recommended to refit directly wsl. After installing the basic environment, you need to install it manually valgrind and cmake Tools , The former is direct sudo apt-get that will do , The latter may require source code installation (https://www.linuxidc.com/Linux/2018-09/154165.htm). - Then you can open it clion, stay Setting->Build,Execution,Deployment->Toolchains Create a new one in WSL Type of tool chain , Will automatically import Environment, however Credentials Manual setting required , This needs to be wsl Open ahead of time ssh, reference https://www.cnblogs.com/mydailycoding/p/12375273.html, Successful connection will show Connected.

- This is an official process , But I didn't find the video sh Script source , So I just referred to his ideas , But he didn't follow his practice :evget.com/video/2616
- Now it's finished wsl Configuration and installation of environment , But there are problems :
- Direct operation valgrind Will be displayed cound not found executable valgrind, You need to add the path manually , Directly find the subsystem in windows Add the root directory under C:\Users\ user name \AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\usr\bin
- If installed boost library , So use wsl As a tool chain, he can't find it , Can be in cmakelists.txt The dependent library is directly referenced in the file ( Thanks to the wsl Medium /mnt Catalog )include_directories(/mnt/e/boost_1_73_0) Locate the windows Under the system boost Library file is good .
边栏推荐
- The video Number finds the golden key, and Tiktok imitates the latecomers
- Stm32cube infrared remote control: input capture
- Reset grafana login password to default password
- 局域网无法访问apache服务器
- 排序4-堆排序与海量TopK问题
- 5 亿用户,比微信还早四年……这个运营了 15 年的 APP 即将永久停服
- Pop up layer prompt in the background
- redis源码优化--绑核
- Early in the morning, pay Bora SMS to say that you won the "prize"? Dealing with server mining virus - kthreaddi
- 排序3-选择排序与归并排序(递归实现+非递归实现)
猜你喜欢

LeetCode-学会对无序链表进行插入排序(详解)

Configure HyperMesh secondary development environment on vs Code

nowcode-学会删除链表中重复元素两题(详解)

Fx3 development board and schematic diagram

KubeEdge发布云原生边缘计算威胁模型及安全防护技术白皮书

FX3开发板 及 原理图

Sort 1-insert sort and Hill sort

I can only sell the company after the capital has been "cut off" for two years

Ansa secondary development - apps and ansa plug-in management

Several methods of HyperMesh running script files
随机推荐
MySQL view event status statements and modification methods
QT QString详解
“蔚来杯“2022牛客暑期多校训练营3 ACFHJ
PHP计算坐标距离
Debugging methods of USB products (fx3, ccg3pa)
Leetcode topic
Sort 4-heap sort and massive TOPK problem
解决电脑恶意广告弹窗的思路
日常开发方案设计指北
资本「断供」两年,我只能把公司卖了
配置web服务器步骤详细记录(多有借鉴)
asp.net大文件分块上传断点续传demo
LwIP develops | socket | TCP | keepalive heartbeat mechanism
Curl returns blank or null without output. Solve the problem
I can only sell the company after the capital has been "cut off" for two years
HM secondary development - data names and its use
PHP gets the applet code, and the applet jumps with parameters
Sort 5-count sort
Ansa secondary development - build ansa/meta secondary development environment on pycharm
laravel