摘要: 搜索了多个的解决方案: 安装编译工具链,修改环境变量后重启,可能因为误操作的原因导致开机输入密码后无法进入桌面。按ctrl+atl+f1可以进入控制台。尝试以下办法解决方法1:1)、进入系统(在输入密码的那个界面)2)、按住Ctrl+Alt+F1(F1~F7分别是不同的模式,前6个为控制台模式)3) 阅读全文
posted @ 2018-03-07 15:41 橙子好甜 阅读(597) 评论(0) 推荐(0)
摘要: 去安装或升级openssl查看openssl 版本# openssl version为了以后方便,直接去/usr/src# cd /usr/src下载最新openssl/usr/src# wget https://www.openssl.org/source/openssl-1.0.2-latest 阅读全文
posted @ 2018-03-02 15:15 橙子好甜 阅读(368) 评论(0) 推荐(0)
摘要: 解决方法在clion上选择Tool | CMake | "Reset cache and reload project". 阅读全文
posted @ 2018-02-19 16:43 橙子好甜 阅读(1813) 评论(0) 推荐(0)
摘要: #在CMakeLists.txt上添加如下SET(CMAKE_C_COMPILER "/home/test/openwrt/Toolchain/toolchain/bin/mipsel-openwrt-linux-uclibc-gcc")SET(CMAKE_CXX_COMPILER "/home/t 阅读全文
posted @ 2018-02-19 11:24 橙子好甜 阅读(1272) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-02-15 17:01 橙子好甜 阅读(188) 评论(0) 推荐(0)
摘要: 例如我想在程序上,debug的状态下,添加命令行 //例如,本来生成是 mosquitto_sub //但我想在debug的状态下,添加命令行弄成如下,而方便我去测试 mosquitto_sub -h localhost -v -t "#" 就在下面的program arguments下,预定添加程 阅读全文
posted @ 2018-02-07 10:32 橙子好甜 阅读(356) 评论(0) 推荐(0)
摘要: int find_dir_file(const char *dir_name,vector<string>& v) //文件夹地址,文件列表{ DIR *dirp; struct dirent *dp; dirp = opendir(dir_name); while ((dp = readdir(d 阅读全文
posted @ 2018-02-05 13:13 橙子好甜 阅读(2862) 评论(0) 推荐(0)
摘要: 看到一个很好的cmake博客 https://www.cnblogs.com/ningskyer/articles/7158948.html 学习到常用的一些小用法,从最简单开始了 在 linux 平台下使用 CMake 生成 Makefile 并编译的流程如下: 编写 CMakeLists.txt 阅读全文
posted @ 2018-02-01 09:53 橙子好甜 阅读(16613) 评论(0) 推荐(0)
摘要: Install You can install directly from the official repository: Settings > Plugins > search for makefile > Search in repositories > Install > Restart 阅读全文
posted @ 2018-01-31 16:12 橙子好甜 阅读(4960) 评论(0) 推荐(1)
摘要: 1. 启用 ssl 模块 sudo a2enmod ssl 2. 安装openssl sudo apt-get install openssl 3. 创建CA签名(不使用密码去除-des3选项) openssl genrsa -des3 -out server.key 1024 4. 创建CSR(C 阅读全文
posted @ 2018-01-31 11:57 橙子好甜 阅读(283) 评论(0) 推荐(0)