1.下载
git clone git://git.archive.openwrt.org/15.05/openwrt.git
2.配置上传到github
1.在github上创建项目,获取项目路径git clone https://github.com/liupeng08304/openwrt1505_mt7628.git
2 .git clone https://github.com/liupeng08304/openwrt1505_mt7628.git
3.cp git://git.archive.openwrt.org/15.05/openwrt.git 这里面的文件到openwrt1505_mt7628中
3. 配置编译环境
sudo apt-get install subversion build-essential libncurses5-dev zlib1g-dev gawk git ccache gettext libssl-dev xsltproc
sudo apt-get install libssh-dev
4. 配置编译选项
make menuconfig #配置为mtk7628

5. 编译
make V=s
6.中间如何涉及到要升级gcc
https://blog.csdn.net/ppp2006/article/details/52183472
之前所有在12.04上面的工作 对于gcc版本没有特殊要求,最近ORBSLAM2要求支持C++11.
今天安装SDL明确要求GCC4.8以上版本,否则出现错误。
这里记录升级方法: http://blog.csdn.net/linsanhua/article/details/38047559
1.) Press Ctrl+Alt+T on your keyboard to open terminal. When it opens, run below commands to add the ppa:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
2.) Then install gcc 4.8 and g++ 4.8:
sudo apt-get update; sudo apt-get install gcc-4.8 g++-4.8
3.) Once installed, run following commands one by one to use gcc 4.8 instead of previous version.
sudo update-alternatives --remove-all gcc
sudo update-alternatives --remove-all g++
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 20
sudo update-alternatives --config gcc
sudo update-alternatives --config g++
Now you have the gcc 4.8 with c++11 complete feature in your system. Check out by:
gcc --version
gcc (Ubuntu 4.8.1-2ubuntu1~13.04) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
————————————————
版权声明:本文为CSDN博主「皮熊」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/ppp2006/article/details/52183472

3456

被折叠的 条评论
为什么被折叠?



