- 博客(17)
- 资源 (3)
- 收藏
- 关注
原创 2021-06-26
linux下使用vcansudo modprobe vcan sudo ip link add dev vcan0 type vcansudo ip link set dev vcan0 downsudo ip link set dev vcan0 upifconfig
2021-06-26 15:17:53
111
转载 2021-04-04
【转】Compile-time version strings in CMakeAt compile-time, I would like to embed a few strings into my code that reflects the current state of the Git repository:The short commit hash, with a trailing + if there are uncommitted changes.The tag (if any)T
2021-04-04 19:12:25
130
原创 C++11 examples
enable_if#include <iostream>template <typename T>typename std::enable_if<std::is_integral<T>::value, bool>::type test1(T t) { std::cout << "integral: " << t &...
2019-12-15 16:16:54
167
原创 常用shell操作
显示git 分支function git_branch() { branch="$(git branch 2>/dev/null | grep "^\*" | sed -e "s/^\*\ //")" if [ "${branch}" != "" ]; then if [ "${branch}" = "(no branch)" ]; then ...
2019-11-09 10:28:54
350
原创 智能指针
智能指针一、shared_ptr1. reset 用法#include <iostream>#include <memory>class SharedptrTest { private: int index_; public: SharedptrTest(int index); ~SharedptrTest();};SharedptrTe...
2019-10-02 16:29:08
125
原创 ubuntu环境配置
语言支持 《解决语言支持功能消失》 sudo apt-get install language-selector-gnome
2018-07-15 10:18:13
153
原创 CString2char*
char *pstr = strFileName.GetBuffer(strFileName.GetLength());strFileName.ReleaseBuffer();
2017-06-12 21:18:05
583
原创 CFileDlg实例
打开文件void CTest::OnOpen(){ CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY, _T("XML(*.xml)|*.xml||")); if (dlg.DoModal() != IDOK) return; CString strFileName; strFileName = dl
2017-06-12 20:53:21
332
原创 I.MX6QP SD/eMMC启动
一、SD卡启动1. 烧写uboot:sudo dd if=u-boot.imx of=/dev/sdb bs=512 seek=2 skip=0 conv=sync2. 建立fat分区1:存放zImage、dtb文件,分区可大可小;3. 建立ext分区2:存放根文件系统。4. 拨码开关拨到SD启动二、eMMC启动(SD卡启动后通过命令烧写eMMC)1. 烧写u-boot,并且设置eMMC启动#!/b
2017-05-28 19:35:29
2040
原创 zynq linux 使用记录
支持NFS启动,uboot的参数设置set bootargs noinitrd console=ttyPS0,115200 ip=192.168.1.102 root=/dev/nfs rw nfsroot=192.168.1.101:/home/xxx/nfs/zynqrootfs,nolock earlyprintk系统启动后挂在NFSmount -t nfs -o n
2016-09-21 15:29:12
675
转载 Linux with HDMI video output on the ZED, ZC702 and ZC706 boards
https://wiki.analog.com/resources/tools-software/linux-drivers/platforms/zynqOverviewPreparing the SD-cardTo boot the system on the ZED, ZC702 or ZC706 bo
2015-12-15 21:57:14
4003
原创 String操作
String操头文件:#include <strings.h> 函数:int strcasecmp(const char *s1, const char *s2); 功能:字符串比较,忽略大小写。 **返回值:**s1和s2相同返回0;否则返回s1和s2中第一个不同字符的差值(大于或小于0)。函数:int strncasecmp(const char *s1, const char *s2,
2015-09-26 23:34:59
412
原创 MFC学习
1. RichEdit2.0控件使用1.1使用该控件需要有如下操作为前提APP头文件中添加私有成员:HMODULE hMod;源文件中重载虚函数:InitInstance(){hMod = LoadLibrary(_T("riched20.dll"));AfxInitRichEdit2();}ExitInstance(){//
2015-08-23 21:36:23
405
转载 dnw for linux
转自:http://blog.chinaunix.net/uid-23086242-id-2552828.html前不久一直因为mini2440提供的usb下载驱动有毛病老是导致我的机死机或是重启,有时候还关不了机。一气之下决定到linux下去做,反正编译也是要在linux下做再拿到windows做下载的。找了很久终于让我找了个。跟大家分享一下。(谢谢peimichael提醒,已经上传
2015-06-13 15:37:10
518
转载 从源码安装Qt开发平台
http://segmentfault.com/a/11900000006838631:为什么要从源码安装 http://write.blog.youkuaiyun.com/postedit之前apt-get安装的qt4经常会遇到一些关于环境配置的问题,所以还是从源码安装比较方便,因为知道qt安装的路径,在配置环境变量的时候很方便2:安装过程 1:下载源码 http://mirrors.hust.e
2015-05-02 20:24:15
490
转载 【va_start和va_end使用详解】stdarg原理
http://www.cnblogs.com/hanyonglu/archive/2011/05/07/2039916.html
2013-06-15 19:20:34
571
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人