编程工具
文章平均质量分 58
提供编程的辅助工具介绍
海滩油炸
G_Roboter | Slam
展开
-
AssertionError: Torch not compiled with CUDA enabled解決方案
pytorch gpu is not enabled 解决办法原创 2022-12-31 20:44:15 · 1754 阅读 · 0 评论 -
ubuntu16.04中更新g++/gcc版本
在2022年使用ubuntu16.04会遇到系统默认gcc/g++版本太老,导致其他package无法正常编译安装的问题,因此,更新g++/gcc迫在眉睫目标: 安装 gcc g++ 7的安装包1. 安装sudo apt-get install -y software-properties-commonsudo add-apt-repository ppa:ubuntu-toolchain-r/testsudo apt updatesudo apt install g++-7 -y2原创 2022-05-03 23:48:03 · 2579 阅读 · 0 评论 -
编译生成tbb动态库并用cmake链接
本文关于基于github源码编译tbb生成动态库,并在cmake中使用步骤一: 编译tbb并生成shared library在github下载项目源码git clone git@github.com:oneapi-src/oneTBB.gitcd oneTBBmkdir build && cd build开始编译参考:Alex Reinkingcmake -G Ninja -S . -B build-shared -DBUILD_SHARED_L原创 2022-04-18 16:14:43 · 2615 阅读 · 1 评论 -
No CMAKE_CXX_COMPILER could be found. 错误解决
由于项目借助cmake进行编译时,需要升级g++,所以就安装了新版本,一阵操作猛如虎,结果cmake直接告诉我CMake Error at CMakeLists.txt:7 (project): No CMAKE_CXX_COMPILER could be found. Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entr原创 2022-04-04 16:45:59 · 31194 阅读 · 4 评论 -
CMake的一些细节
CMake在使用过程中的一些细节可以帮助我们更好的了解编译的细节cmake -h可以找到相关指令而通过cmake --help-variable-list可以找到所有cmake相关的变量cmake-variables(7) — CMake 3.23.0-rc3 Documentationhttps://cmake.org/cmake/help/latest/manual/cmake-variables.7.html其中,编译中比较好用的包括 cmake -DCMAKE_原创 2022-03-14 19:55:34 · 1730 阅读 · 0 评论 -
Ubuntu 18.04 安装搜狗拼音 2022年版 Install sogou pinyin in Ubuntu 18.04 in 2022
用网上的一些教程莫名奇妙的不能安装sogou输入法了(尽管之前装过很多次)。记录一下自己安装配置的过程。我是在重装完系统后直接安装输入法的,装系统时选择的语言是英语。1. 安装完系统后,首先更新并安装fcitx sudo apt-get update#安装 fcitx sudo apt-get install fcitx2. 然后在settings >> Region&Language >> manage installed language原创 2022-01-11 00:39:47 · 1966 阅读 · 2 评论 -
VIM分屏的操作
在用vim编辑的时候,难免会涉及到分屏,多文件的操作等。。。原创 2021-12-17 11:20:28 · 1269 阅读 · 0 评论 -
gdb调试教程
gdb调试是c/c++代码调试最重要的工具了,我们今天来系统熟悉一下。先上代码:#include <stdio.h>#include <stdlib.h> // this function is 100% correctly implementedvoid print_heart();void times_two(int *num) { // calculate 2*num for (int i = 0; i < *num; i++) { *原创 2021-05-12 23:52:25 · 8910 阅读 · 0 评论