![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
其他
Let'sCode
搬砖,搬砖,再搬砖
展开
-
ubuntu18.04 图标和文件夹只有黑色和白色解决方案
问题描述今天打开电脑,发现Ubuntu 桌面文件和文件夹只有黑白了,如下图所示,看着很不习惯。解决方案解决方案也很简单,只需要 Setting—Universal Access–High Contract选成OFF就行了。花了一上午的时间,各种搜索,终于倒腾好了,界面也恢复了往日的清爽。...原创 2022-05-18 21:52:16 · 1308 阅读 · 3 评论 -
Ubuntu安装ipopt和cppAD
How to install Ipopt on arm environmentNeed an external networkInatall CPPAD & Fortran$ sudo apt-get install cppad gfortran Get ipopt source codeDownload Ipopt-3.12.8.tgz from https://www.coin-or.org/download/source/Ipopt/Untar the package and原创 2021-07-28 18:09:08 · 1249 阅读 · 0 评论 -
Ubuntu 16.04安装gtest遇坑,成功安装及使用记录
命令行安装失败今天按照网上教程安装gtestubuntu@ubuntu:~$ sudo apt-get install libgtest-dev安装完了之后写了一个测试案例test.cpp://test.cpp# include <gtest/gtest.h>int Add( int a, int b) //计算两数之和{ return a+b;}TEST(AddTest, IntTest){ EXPECT_EQ( 8 , Add( 2 , 5 ));原创 2021-02-08 10:57:32 · 1439 阅读 · 2 评论 -
Ubuntu下使用protobuf和socket实现服务器间消息传输
一、定义protobuf数据结构Test.protopackage Test.protobuf ;//包名:在生成对应的C++文件时,将被替换为名称空间,在代码中会有体现option optimize_for = SPEED ;//文件级别的选项,Protobuf优化级别//心跳信息数据结构message HeartInfo{ required int32 curtime = 1; required string hostip = 2 ; };二、编写protobuf和soc原创 2021-02-04 14:16:55 · 427 阅读 · 0 评论