<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[shellmoon的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/shellmoon</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; shellmoon]]></copyright><item><title><![CDATA[Qtcreator使用cmake编译文件报错: This does not seem to be a “Debug“build]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/114981022</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/114981022</guid><author>shellmoon</author><pubDate>Thu, 18 Mar 2021 15:33:44 +0800</pubDate><description><![CDATA[使用qtcreator，选择cmake构建文件。
可能会报错：Qt: This does not seem to be a "Debug"build
解决：
点击左侧项目-编辑构建配置-添加写入CMAKE，点击左侧run-command line arguement写-DCMAKE_BUILD_TYPE=Debug。
再次F5运行程序，就可以运行了。
参考：Qt: This does not seem to be a "Debug"build 解决办法

...]]></description><category></category></item><item><title><![CDATA[Cmake Parse error. Expected a command name, got unquoted argument with text “ ”]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/114610288</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/114610288</guid><author>shellmoon</author><pubDate>Wed, 10 Mar 2021 00:32:39 +0800</pubDate><description><![CDATA[cmake编译时报错：
Cmake Parse error. Expected a command name, got unquoted argument with text “ ”
并且提示在第几排出错，尝试注释掉那一排之后，确实解决了那一排的报错，但是不可能每行报错都注释掉。
后来发现是空格，复制的cmake有空格，删掉就能运行了。添加链接描述

...]]></description><category></category></item><item><title><![CDATA[c++获取map中的元素，key值和value值]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/114408331</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/114408331</guid><author>shellmoon</author><pubDate>Fri, 05 Mar 2021 18:51:18 +0800</pubDate><description><![CDATA[c++获取map中的元素，key值和value值
我需要的是得到map中的key和value，很简单的东西。网上搜出来的都是keyset()方法。
解决：
map1-&gt;first;
map1-&gt;second;

]]></description><category></category></item><item><title><![CDATA[vscode配置cmake报错：CMake: 无法确定要使用的 CMake 生成器。请安装或配置首选生成器，或更新 settings.json、工具包配置或路径变量。]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/114306230</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/114306230</guid><author>shellmoon</author><pubDate>Wed, 03 Mar 2021 12:05:30 +0800</pubDate><description><![CDATA[在vscode中配置cmake，可能报错：
CMake: 无法确定要使用的 CMake 生成器。请安装或配置首选生成器，或更新 settings.json、工具包配置或路径变量。 Error: 找不到任何可用的生成器。
解决方法：
在.vscode中新建setting.json，或者Ctrl+Shift+P打开工作区setting.json。（这两种方法没区别）
如果想使用的构建工具是MakeFile， 则在settings.json文件的末尾添加：
“cmake.generator”: “MinGW Ma]]></description><category></category></item><item><title><![CDATA[安装cmake，以及报错Could NOT find OpenSSL]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/114001296</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/114001296</guid><author>shellmoon</author><pubDate>Tue, 23 Feb 2021 19:48:43 +0800</pubDate><description><![CDATA[下载cmake安装包cmake-3.18.2.tar.gz
注意，不要下载别的版本安装包，比如linux。其他版本可能需要比较复杂的boostrop、软链接等配置。
安装及配置:
sudo tar -xzvf cmake-3.18.2.tar.gz
cd cmake-3.18.2/
sudo ./configure
sudo make
sudo make install
cmake --version
可能出现的报错：
安装cmake的时候提示报错：
Could NOT find OpenSSL……
问题是]]></description><category></category></item><item><title><![CDATA[lyx插入代码]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/113860898</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/113860898</guid><author>shellmoon</author><pubDate>Fri, 19 Feb 2021 11:59:46 +0800</pubDate><description><![CDATA[使用lyx插入代码方法：
插入Tex代码，出现红色边框，把代码复制粘贴进去。
粘贴的快捷键使用ctrl+shift+v，而不是使用ctrl+v，否则代码会只有一行，没有分行。
插入成功如图所示：
随便粘贴的，图片内容没有整理。

...]]></description><category></category></item><item><title><![CDATA[“unsupported/Eigen/CXX11/Tensor: No such file or directory”]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/113747481</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/113747481</guid><author>shellmoon</author><pubDate>Sun, 07 Feb 2021 21:19:18 +0800</pubDate><description><![CDATA[在使用essentia示例程序的时候，依赖于eigen库。
运行报错：“unsupported/Eigen/CXX11/Tensor: No such file or directory”
是因为编译时找不到unsupported文件，把usr/include/eigen3中的所有文件复制到usr/include中，编译器才找得到。
运行命令：
sudo cp -r /usr/include/eigen3/Eigen  /usr/include
sudo cp -r /usr/include/eigen3/]]></description><category></category></item><item><title><![CDATA[ubuntu安装essentia库]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/113732622</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/113732622</guid><author>shellmoon</author><pubDate>Sat, 06 Feb 2021 23:32:03 +0800</pubDate><description><![CDATA[essentia库：
（官方推荐）安装：pip install essentia，失败。需要编译
安装依赖：
参考官方文档中的依赖：https://essentia.upf.edu/installing.html
sudo apt install libeigen3-dev libfftw3-dev libyaml-dev libavcodec-dev libavformat-dev libavutil-dev libavresample-dev libsamplerate0-dev。
下载。https:/]]></description><category></category></item><item><title><![CDATA[https协议中c++使用curl库发送post请求]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/113245124</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/113245124</guid><author>shellmoon</author><pubDate>Wed, 27 Jan 2021 11:54:00 +0800</pubDate><description><![CDATA[使用curl发送post请求，示例代码，返回结果正确：
#include &lt;stdio.h&gt;
#include &lt;curl/curl.h&gt;
int main(void) {
CURL *curl; CURLcode res;
// 初始化winsock的内容
curl_global_init(CURL_GLOBAL_DEFAULT);
//*获得一个curl的手柄（handle）
curl = curl_easy_init();
if(curl) {
/* 设置post请求地址，最好]]></description><category></category></item><item><title><![CDATA[error: ‘cout‘ does not name a type|]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/112761186</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/112761186</guid><author>shellmoon</author><pubDate>Mon, 18 Jan 2021 07:54:02 +0800</pubDate><description><![CDATA[cout需要写在int main里面，而不能在函数外直接写。

]]></description><category></category></item><item><title><![CDATA[linux下curl安装报错symbol lookup error]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/112453971</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/112453971</guid><author>shellmoon</author><pubDate>Mon, 11 Jan 2021 00:08:01 +0800</pubDate><description><![CDATA[检查culr库的时候，终端：curl --version
显示：
curl: symbol lookup error: curl: undefined symbol: curl_url_cleanup
问题的原因可能是：
动态库存储的地方应该在usr/lib，而不是usr/local/lib。
最好的方法应该是修改文件位置，但是我啥也没改，编译的时候把动态库的位置链接到usr/local/lib就可以了，顺利完成编译。
参考链接：
http://blog.chinaunix.net/uid-21744621]]></description><category></category></item><item><title><![CDATA[程序报错未定义的引用]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/112449336</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/112449336</guid><author>shellmoon</author><pubDate>Sun, 10 Jan 2021 22:46:18 +0800</pubDate><description><![CDATA[当程序报错有未定义的引用，说明动态库没有链接：
示例：
CMakeFiles/my_cmake_test0.dir/src/https_post.c.o：在函数‘ssl_init’中：
https_post.c:(.text+0x2b1)：对‘OPENSSL_init_ssl’未定义的引用
https_post.c:(.text+0x2c0)：对‘OPENSSL_init_ssl’未定义的引用
https_post.c:(.text+0x2c5)：对‘TLS_client_method’未定义的引用
htt]]></description><category></category></item><item><title><![CDATA[Ubuntu环境中，vscode使用cmake编译C++多文件]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/112299899</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/112299899</guid><author>shellmoon</author><pubDate>Wed, 06 Jan 2021 23:15:49 +0800</pubDate><description><![CDATA[安装好vscode之后，在拓展里面安装cmake、cmake tools、C++intellisense


]]></description><category></category></item><item><title><![CDATA[Ubuntu16.04安装vscode及配置tasjks、tasjks]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/109033913</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/109033913</guid><author>shellmoon</author><pubDate>Mon, 12 Oct 2020 18:51:28 +0800</pubDate><description><![CDATA[去官网安装包，
sudo  dpkg  -i   code_1.37.0-1565227985_amd64.deb
下载C++和汉化包
彻底清除卸载vscode，两种方法：
sudo apt-get --purge remove code
sudo dpkg --purge  code
helloworld调试：
#include
#include &lt;unistd.h&gt;
using namespace std;
int main()
{
cout&lt;&lt;“Hello World_h”&l]]></description><category></category></item><item><title><![CDATA[Ubuntu16.04无法从extensions.gnome.org下载更新]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/109028935</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/109028935</guid><author>shellmoon</author><pubDate>Mon, 12 Oct 2020 15:38:40 +0800</pubDate><description><![CDATA[再次安装
gnome-shell-extensions
sudo add-apt-repository ppa:gnome-shell-extensions/ppa
sudo apt-get update
sudo apt-get install gnome-shell-extensions
火狐插件里面添加
gnome

]]></description><category></category></item><item><title><![CDATA[Ubuntu16.04安装新版firefox]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/109028824</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/109028824</guid><author>shellmoon</author><pubDate>Mon, 12 Oct 2020 15:34:42 +0800</pubDate><description><![CDATA[卸载原有火狐
（此步骤可省略）
sudo apt-get remove firefox
安装新火狐
sudo apt-get install firefox
更改语言为中文
sudo apt-get install firefox-locale-zh-hans

]]></description><category></category></item><item><title><![CDATA[Anaconda中虚拟环境的操作：]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/109028752</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/109028752</guid><author>shellmoon</author><pubDate>Mon, 12 Oct 2020 15:33:27 +0800</pubDate><description><![CDATA[对虚拟环境的操作：
创建：
conda create -n tf  python==3.8.3
打开虚拟环境：
source activate tf
退出当前虚拟环境：
source deactivate
删除虚拟环境：
conda remove -n tf --all
查看虚拟环境列表：
conda env list

]]></description><category></category></item><item><title><![CDATA[Ananconda虚拟环境下安装tensorflow、spyder]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/109028714</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/109028714</guid><author>shellmoon</author><pubDate>Mon, 12 Oct 2020 15:32:08 +0800</pubDate><description><![CDATA[创建虚拟环境：
conda create -n tf  python==3.8.3
进入：
source activate tf
进入虚拟化环境之后，换源、安装tensorflow的gpu版（不然太慢了）：
（加清华源）
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.ed]]></description><category></category></item><item><title><![CDATA[安装Anaconda]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/109028596</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/109028596</guid><author>shellmoon</author><pubDate>Mon, 12 Oct 2020 15:28:46 +0800</pubDate><description><![CDATA[bash Anaconda3-5.0.0-Linux-x86_64.sh
一直回车+yes
默认路径安装
添加环境变量：
sudo gedit ~/.bashrc
export PATH="/home/hrh/anaconda3/bin:$PATH"
因为anaconda会默认打开base环境，有些软件的下载不方便，所以需要设置默认成不打开
方法一：
conda config --set auto_activate_base false
方法二：
在sudo gedit ~/.bashrc中设置默认退出
c]]></description><category></category></item><item><title><![CDATA[Ubuntu16.04更换下载源]]></title><link>https://blog.youkuaiyun.com/shellmoon/article/details/109028332</link><guid>https://blog.youkuaiyun.com/shellmoon/article/details/109028332</guid><author>shellmoon</author><pubDate>Mon, 12 Oct 2020 15:27:11 +0800</pubDate><description><![CDATA[源备份：
sudo cp /etc/apt/sources.list /etc/apt/sources_init.list
修改sources文档：全部删掉
sudo gedit /etc/apt/sources.list
阿里源（2020-9-25最新）：
deb http://mirrors.aliyun.com/ubuntu/ xenial main
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main
deb http://mirrors.ali]]></description><category></category></item></channel></rss>