笔记

来源:互联网 发布:php抓取网页匹配url 编辑:程序博客网 时间:2024/04/29 14:03

零散个人笔记

1.tensorflow源码完整下载方法

git clone --recurse-submodules  https://github.com/tensorflow/tensorflow.git

参数--recurse-submodules可以递归下载子模块。
跟新所有子module.

git pull --recurse-submodules

2.报错no lapack/blas resources found ubuntu

解决方法:

sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortranpip install scipy

3.Ubuntu安装sndfile

sudo apt-get install libsndfile1sudo apt-get install libsndfile1-dev

4.openwrt设置静态IP,挂载NFS时用

修改修改开发板的vi /etc/config/network这个启动文件

sudo /etc/init.d/rpcbind restart ifconfig eth0 10.99.1.2 netmask 255.255.255.0 upsudo /etc/init.d/nfs-kernel-server restart mount -n -o nolock 10.99.1.2:/home/gsc/nfs/ /mnt/

5.一般交叉编译编译如下:

 ./configure --build=x86_64-unknown-linux --host=arm-openwrt-linux --prefix=`pwd`/release --disable-static make && make install

6.Android NDK程序性能分析

记录:simpleperf record -p 5178  --duration 10simpleperf record -p 5916 --call-graph fp --symfs . --duration 10查看结果:simpleperf report -g callee --symfs . >reportsimpleperf report -g --symfs . >report

7.Ubuntu 安装32位开发环境

sudo dpkg --add-architecture i386sudo apt-get updatesudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386sudo apt-get install libx11-6:i386sudo apt-get install gtk2-engines:i386sudo apt-get install lib32ncurses5 lib32z1sudo apt-get install libxtst6:i386<br>sudo apt-get install libgtk2.0-0:i386<br>sudo apt-get install lib32ncurses5<br>sudo apt-get install libcanberra-gtk3-0:i386

#

error: 'size_t' has not been declared

solution:

 #include <cstddef>. or #include <cstdlib>