切换gcc版本
sudo update-alternatives --config gcc
查看库的编译toolchain,是gcc编译还是clang编译还是其他
objdump -s --section=.comment libxxx.so
ffmpeg查看nv21的数据
ffplay -i ./name.yuv -pixel_format nv21 -s 640x480
android ndk编译standalone toolchain方法
./make-standalone-toolchain.sh --platform=android-21 --toolchain=aarch64-linux-android-4.9 --install-dir=~/tools/test/
查看是64位还是32位
readelf -h libxxx.so
git更改某次提交的操作步骤:
将HEAD移到需要更改的commit上:
git rebase f744c32xxxxxxxxxxxxxxxxx^ --interactive
找到需要更改的commit, 将行首的pick改成edit, 按esc, 输入:wq退出
更改文件
使用git add/rm 改动的文件添加/删除改动文件到暂存
使用git commit --amend追加改动到第一步中指定的commit
使用git rebase --continue移动HEAD到最新的commit处
如果有冲突, 需要解决:
编辑冲突文件, 解决冲突
git add .
解决冲突之后再执行git rebase --continue
git push origin master
更新远程分支的信息
git remote update origin --prune
查看动态库的依赖
readelf -d libcxxx.so
git submodule用法
已经有submodule的主项目中
git submodule init
git sumodule update
如果子项目中有了更新,需要在主项目中更新commit
那么在主项目的子项目目录下,执行git pull,然后在主项目把修改提交上去
远程tag和本地tag的同步,并且根据远程tag删除本地tag的命令应该是
git fetch -pP