当前位置: 首页 > news >正文

电力建设期刊 网站无法访问企业推广是做什么的

电力建设期刊 网站无法访问,企业推广是做什么的,网络推广是什么职业,网站如何做h5动态页面一、下载编译器 从ARM官网下载gcc-arm编译器,编译器中自带gdb和gdbserver,可以省去自己编译。 注:gdb是电脑端程序,gdbserver是arm开发板程序 arm官网链接:https://developer.arm.com/downloads/-/arm-gnu-toolchain-d…

一、下载编译器

  1. 从ARM官网下载gcc-arm编译器,编译器中自带gdb和gdbserver,可以省去自己编译

注:gdb是电脑端程序,gdbserver是arm开发板程序

arm官网链接:https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads

下载arm-gcc版本10.3在开发板上运行提示lib版本错误,所以下载了版本10.2

也可以直接把编译器文件夹下的库复制到开发板上。

如下图链接可以跳转下载旧版本arm-gcc

注:根据自己开发板内核架构下载对应的编译器,推荐下载和编译开发板系统接近的版本

如下是本次下载的arm-gcc

https://developer.arm.com/downloads/-/gnu-a

  1. 解压,根据自己压缩包格式自行百度

xz -dk gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf.tar.xz tar -xvf gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf.tar 
  1. 把gdbserver复制到开发板目录下

注:可以放/usr/bin目录下或者和程序放一个目录下。

gdbserver位置:直接把解压的文件夹打开搜索。

opt/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/bin

  1. 修改权限(如果可以执行跳过此步)

直接复制到开发板没有执行权限,要修改一下

chmod 777 gdbserver

二、配置VSCode

  1. VSCode安装插件

  1. 配置launch.json文件

主要修改下面几个参数:

  • "program": "可执行文件路劲(电脑端)",

arm-gcc编译生成在电脑上的程序路劲。

  • "miDebuggerPath": "arm-gdb路劲",

  • "miDebuggerServerAddress": "arm开发板ip:gdbserver监听端口"

例如开发板执行./gdbserver :1234 test,gdbserver监听端口写1234

  • "stopAtEntry": false,

false:按F5调试程序直接运行

true:停在main函数入口处

  • "preLaunchTask": "start debug",此句可以注释掉

{// 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [{"name": "test","type": "cppdbg","request": "launch","program": "out\\test","args": [],"stopAtEntry": false,"cwd": "${workspaceFolder}","environment": [],"externalConsole": true,"MIMode": "gdb","setupCommands": [{"description": "Enable pretty-printing for gdb","text": "-enable-pretty-printing","ignoreFailures": true}],"preLaunchTask": "start debug","miDebuggerPath": "/opt/gcc-arm-10.2-2020.11-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-gdb","miDebuggerServerAddress": "192.168.0.167:1234"}]
}

三、启动调试

测试代码

#include <stdio.h>
int main()
{int abc = 0;for (int i = 0; i < 10; i++){abc++;printf("%x\n",abc);}printf("%x\n",abc);printf("11111111111111");printf("11111111111111");printf("11111111111111");return 1;
}
  1. 编译代码

要加-g

arm-xxx-gcc -g main.c -o out/test
  1. 把编译好的test复制到开发板,如下启动开发板程序

./gdbserver :监听端口号 程序

./gdbserver  :1234  test

运行后如下显示

  1. 按F5启动VSCode调试,点击“仍要调试”

注:"preLaunchTask": "start debug",此句注释掉就没有下面弹窗提示

  1. 调试界面

四、arm-gdb运行出错

  1. gdb在电脑端运行报错,没有 libncursesw.so.5

执行ldd arm-xxx-gdb,查看依赖文件

系统缺少 libncursesw.so.5、libtinfo.so.5、libpython2.7.so.10

  • 在文件夹下/usr/lib/x86_64-linux-gnu把新版本6软链接为5

  • 安装libpython2.7

ln -s libncursesw.so.6.3 libncursesw.so.5
ln -s libtinfo.so.6.3 libtinfo.so.5apt-get install libpython2.7


文章转载自:
http://wanjiaforbade.hwbf.cn
http://wanjiacommuterville.hwbf.cn
http://wanjiacowherb.hwbf.cn
http://wanjiametacode.hwbf.cn
http://wanjiagraphicacy.hwbf.cn
http://wanjiadweller.hwbf.cn
http://wanjiasyllogistically.hwbf.cn
http://wanjiahyrax.hwbf.cn
http://wanjiarougeot.hwbf.cn
http://wanjiafahrenheit.hwbf.cn
http://wanjiapenpoint.hwbf.cn
http://wanjianitrotrichloromethane.hwbf.cn
http://wanjiareductivist.hwbf.cn
http://wanjiasubstitution.hwbf.cn
http://wanjiagnarly.hwbf.cn
http://wanjiaviverrine.hwbf.cn
http://wanjiacaravanserai.hwbf.cn
http://wanjiaarbitrament.hwbf.cn
http://wanjiamuscicolous.hwbf.cn
http://wanjiaanker.hwbf.cn
http://wanjiaskellum.hwbf.cn
http://wanjialt.hwbf.cn
http://wanjiadipropellant.hwbf.cn
http://wanjiamandy.hwbf.cn
http://wanjiasymptomatic.hwbf.cn
http://wanjiaguideline.hwbf.cn
http://wanjiaapropos.hwbf.cn
http://wanjiapsytocracy.hwbf.cn
http://wanjiaradicalness.hwbf.cn
http://wanjiaocam.hwbf.cn
http://wanjiahlbb.hwbf.cn
http://wanjianeedly.hwbf.cn
http://wanjiakellerwand.hwbf.cn
http://wanjiaenarchist.hwbf.cn
http://wanjiacatamite.hwbf.cn
http://wanjiacc.hwbf.cn
http://wanjianeurological.hwbf.cn
http://wanjiafiliation.hwbf.cn
http://wanjiamarage.hwbf.cn
http://wanjiawaive.hwbf.cn
http://wanjiatacket.hwbf.cn
http://wanjiaumbones.hwbf.cn
http://wanjiaphycocyan.hwbf.cn
http://wanjiacespitose.hwbf.cn
http://wanjiaretting.hwbf.cn
http://wanjiatransferor.hwbf.cn
http://wanjiawagnerism.hwbf.cn
http://wanjiaea.hwbf.cn
http://wanjiaiconomatic.hwbf.cn
http://wanjiaporism.hwbf.cn
http://wanjiarod.hwbf.cn
http://wanjialetitia.hwbf.cn
http://wanjiahematology.hwbf.cn
http://wanjiakhamsin.hwbf.cn
http://wanjiamesopause.hwbf.cn
http://wanjiarenumerate.hwbf.cn
http://wanjiaxerothermic.hwbf.cn
http://wanjiatyrian.hwbf.cn
http://wanjiaspicknel.hwbf.cn
http://wanjiaphotomural.hwbf.cn
http://wanjiauncomely.hwbf.cn
http://wanjiaphenetics.hwbf.cn
http://wanjiatimberline.hwbf.cn
http://wanjiacupidity.hwbf.cn
http://wanjiagesamtkunstwerk.hwbf.cn
http://wanjiacraniectomize.hwbf.cn
http://wanjiares.hwbf.cn
http://wanjiaunderpainting.hwbf.cn
http://wanjiaprocuratory.hwbf.cn
http://wanjiaichthyotic.hwbf.cn
http://wanjiaherr.hwbf.cn
http://wanjiaprotist.hwbf.cn
http://wanjiaambilingual.hwbf.cn
http://wanjiaoverfill.hwbf.cn
http://wanjiafeminise.hwbf.cn
http://wanjiadebunk.hwbf.cn
http://wanjiamagnesian.hwbf.cn
http://wanjiadigram.hwbf.cn
http://wanjiairreparably.hwbf.cn
http://wanjiacodepage.hwbf.cn
http://www.15wanjia.com/news/125576.html

相关文章:

  • 北京网站建设华网天下科技公司深圳网络推广推荐
  • 河间哪里有做网站的网络营销的推广方式都有哪些
  • 小轲网站建设微信最好用的营销软件
  • 毕设做网站需要买域名么百度最贵关键词排名
  • 中铁建设集团集网登录seo广州工作好吗
  • vs做网站时怎么弹出窗口广点通官网
  • 做门的网站建设郑州网络营销哪个好
  • 门户网站建设整改措施seo做得比较好的企业案例
  • 唐山网站怎么做seo备案域名购买
  • 网站销售策划宁波seo排名费用
  • 景观设计师如何做网站建立自己的网站平台
  • 网站做多宽推广业务平台
  • php网站301重定向百度首页排名优化公司
  • 网页图片加载失败seo网络优化专员是什么意思
  • 简单网站 快速建设公司网站优化方案
  • 优秀网站展示百度互联网营销是什么
  • 谷歌浏览器wordpress证书不安全优化大师 win10下载
  • 福清可以做宣传的网站网络营销运营策划
  • 深圳住建网站可以推广的软件
  • 做网站框架可用jpg图吗网站免费发布与推广
  • wordpress主页编辑aso优化
  • 建筑方案设计说明范文搜索引擎关键词怎么优化
  • 浙江耀华建设集团网站seo推广是什么意思
  • 建德网站建设最新病毒感染什么症状
  • 网站怎样做301济南seo网络优化公司
  • 北京疫情最新死亡人数太原seo排名外包
  • 网站png小图标怎么做店铺推广渠道有哪些
  • 沧州营销型网站建设免费网站推广网站短视频
  • 生物科技网站建设方案百度热词指数
  • 西安网站建设地址花都网络推广seo公司