当前位置:网站首页>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 .
边栏推荐
- HyperMesh运行脚本文件的几种方法
- Qt学习之安装
- Li Hongyi, machine learning 4. Deep learning
- Microsoft question 100 - do it every day - question 11
- HM二次开发 - Data Names及其使用
- C language exception handling mechanism: jump function jump function setjmp/sigsetjmp and longjmp/siglongjmp
- Headline article_ signature
- 学会使用MySQL的Explain执行计划,SQL性能调优从此不再困难
- Some suggestions on optimizing HyperMesh script performance
- ABAQUS GUI interface solves the problem of Chinese garbled code (plug-in Chinese garbled code is also applicable)
猜你喜欢

关于标准IO缓冲区的问题

Optimization of network request success rate in IM instant messaging software development

ANSYS secondary development - MFC interface calls ADPL file

排序3-选择排序与归并排序(递归实现+非递归实现)

解决电脑恶意广告弹窗的思路

Wake up after being repeatedly upset by MQ! Hate code out this MQ manual to help the journey of autumn recruitment

优化Hypermesh脚本性能的几点建议

The video Number finds the golden key, and Tiktok imitates the latecomers

c语言编程当中两个!!的作用

QT packaging
随机推荐
微软100题-天天做-第11题
Use js direct OSS to store files in Alibaba cloud and solve the limitation of large file upload server
laravel
Li Hongyi, machine learning 4. Deep learning
Pop up layer prompt in the background
Several methods of HyperMesh running script files
微软100题-天天做-第16题
Abaqus GUI界面解决中文乱码问题(插件中文乱码也适用)
The little red book of accelerating investment, "rush to medical treatment"?
nowcode-学会删除链表中重复元素两题(详解)
LwIP development | socket | UDP
魏建军骑宝马也追不上李书福
flashfxp 530 User cannot log in. ftp
ANSA二次开发 - Visual Studio Code上搭建ANSA二次开发环境
QML signal and handler event system
LwIP development | socket | DNS domain name resolution
Leetcode topic
El input limit can only input the specified number
ANSYS secondary development - MFC interface calls ADPL file
Curl returns blank or null without output. Solve the problem