In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to install Clion under Linux. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
Clion is a cross-platform IDE designed by C # and C++. It is designed on the basis of IntelliJ and contains many intelligent features to improve the productivity of developers. This powerful IDE helps developers to develop CumberCraft codes on Linux, OS X, and Windows. It also uses smart editors to improve code quality, automate code refactoring, and deeply integrate the Cmake compilation system, thereby improving developer productivity.
Installation
Download the required version on the official website, and then extract it to your target path. In the terminal, enter your unzipped directory. In the bin file, start the sh file.
$cd clion$ cd bin$. / clion.sh
This time will prompt for software activation, for school students can enjoy student discounts, during the school period free use of jetbrain family bucket software, for student discounts, you only need a school mailbox, and then register, and so on, more details search jetbrains student discounts. Then log in with the registered account password, and the activation of the software is completed.
Use
Let me take the Z3 interpreter as an example. Extract the github source code downloaded from github, then open the entire unzipped folder in the file of the clion tool, and clion will load the entire project. The following is the compilation run. Clion will recognize the contents of the makefile and makefilelist files and can compile without having to make or cmake in the project folder. At the same time, if the project you are running requires parameters, such as-g,-fpofile, etc., just find the program arguments in the terminal edit configurations of the shell drop-down box next to the run arrow, that is, write the parameters that should have appeared in the shell here. Then click run, and clion will help us compile and run.
Coverage analysis
The problem of coverage analysis has been going on all this time, and it just so happens that my brother's task here also needs this aspect. I thought it was also necessary to configure the parameters of gcov in the configure or makefile file of the project, but I did not expect that clion had a plug-in for coverage directly. Click on the run "shell" with coverage next to the small arrow to get the coverage analysis, which is very convenient. The results will be displayed in a separate window in workspace, showing the hit rate of line and the hit rate of functional modules.
Memory analysis
The version after February this year integrates the valgrind analysis tool, which can search and analyze the statements in the project that cause memory problems, and the relevant content of valgrind can be searched on its own. In short, this tool can optimize the project and improve the efficiency of related work. Valgrind needs to be installed on the system before use.
$sudo apt-get install valgrind
After that, clion will look for the path of valgrind in the variable and extract it. When using it, you can click run "shell" with valgrind memcheck to analyze where there are possible memory problems in the current project. The parameters for valgrind memcheck can be set in Analysis options in settings > Build, Execution,Deployment > Dynamic Analysis Tools. But there is a problem, clion only uses the function of memcheck in valgrind. Students who know how to use other functions would like to let you know. Thank you.
Pref analysis
Clion also integrates pref tools for dynamic memory analysis, but you also need to install pref on the system now. When installing, you can type the pref command line in the terminal and follow his prompts to install. Running profile shell in clion will prompt for kernel configuration. Click OK to stop the running project for a period of time, and you can get the memory usage data analyzed by pref after a long wait.
On "how to install Clion under Linux" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.