当前位置:网站首页>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 .
边栏推荐
猜你喜欢

WSL+Valgrind+Clion

ANSA二次开发 - 在PyCharm上搭建ANSA/META二次开发环境

USB产品(FX3、CCG3PA)的调试方法

Use js direct OSS to store files in Alibaba cloud and solve the limitation of large file upload server

队列的介绍与实现(详解)

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

Wei Jianjun couldn't catch up with Li Shufu by riding a BMW

IM即时通讯软件开发网络请求成功率的优化

MySQL view event status statements and modification methods

ANSYS二次开发 - MFC界面调用ADPL文件
随机推荐
Wake up after being repeatedly upset by MQ! Hate code out this MQ manual to help the journey of autumn recruitment
Two of C language programming!! Role of
Curl returns blank or null without output. Solve the problem
c语言编程当中两个!!的作用
laravel
Multiple commands produce ‘.../xxx.app/Assets.car‘问题
队列的介绍与实现(详解)
1. Simple command line connection to database
Sort 3-select sort and merge sort (recursive implementation + non recursive implementation)
Ansa secondary development - apps and ansa plug-in management
使用js直传oss阿里云存储文件,解决大文件上传服务器限制
关于web对接针式打印机问题,Lodop使用
About standard IO buffers
Ansa secondary development - build ansa/meta secondary development environment on pycharm
LwIP develops | socket | TCP | keepalive heartbeat mechanism
Sort 1-insert sort and Hill sort
HyperMesh auto save (enhanced) plug-in instructions
Early in the morning, pay Bora SMS to say that you won the "prize"? Dealing with server mining virus - kthreaddi
PHP计算坐标距离
PHP mb_ Substr Chinese garbled code