问题描述

在执行make menuconfig时,报错:
Unable to find the ncurses libraries…

解决方法

安装ncurses和ncursesw库

sudo apt-get insatll ncurses-dev
sudo apt-get insatll ncursesw-dev

注意:ncursesw库是ncurses的升级版本,支持中文,否则中文会显示乱码;
而且imx6交叉编译环境执行make menuconfig时,会用到这个库,如果不安装,需要将/opt/fsl-imx-fb/3.14.52-1.1.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/pkgconfig/目录下ncurses++w.pc和ncursesw.pc删除,否则还会报错

再次执行make menuconfig后,还是报错:
Unable to find the ncurses libraries…

修改pkgconfig

查看ubuntu中安装ncurses时的ncurses*.pc,在/usr/lib/x86_64-linux-gun/pkgconfig目录中ncurses.pc

  1 prefix=/usr2 exec_prefix=${prefix}3 libdir=/usr/lib/x86_64-linux-gnu4 includedir=${prefix}/include5 major_version=56 version=5.9.201401187 8 Name: ncurses9 Description: ncurses 5.9 library10 Version: ${version}11 URL: http://invisible-island.net/ncurses12 Requires.private: tinfo13 Libs: -L${libdir} -lncurses14 Libs.private:  15 Cflags:

对比上述路径和版本号,修改imx6交叉编译环境配置目录中的ncurses*.pc
进入imx6的配置环境的目录

cd /opt/fsl-imx-fb/3.14.52-1.1.1/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/pkgconfig

查看imx6交叉编译环境中的ncurses*.pc

$ ls ncurses*
ncurses.pc  ncurses++.pc  ncurses++w.pc  ncursesw.pc

修改文件ncurses.pc ncurses++.pc ncurses++w.pc ncursesw.pc,将libdir路径和version版本号修改为上述/usr/lib/x86_64-linux-gun/pkgconfig中描述的。

或者直接删除pkgconfig目录下ncurses*文件,同样可以解决问题

【imx6】Unable to find the ncurses libraries的解决办法相关推荐

  1. Unable to find the ncurses libraries的解决办法

    我们在更新CentOS或者Ubuntu的内核时,执行make menuconfig可能看如这样的错误: *** Unable to find the ncurses libraries or the ...

  2. Unable to find the ncurses libraries or the required header files解决

    问题: 解决方法: sudo apt-get install ncurses-dev 参考:Unable to find the ncurses libraries or the required h ...

  3. Unable to find remote helper for 'https'解决办法

    Unable to find remote helper for 'https'解决办法: 产生这个报错的原因一般是普通用户没权限调用git-remote-https所致 # ln -s /usr/l ...

  4. PHP SSL certificate: unable to get local issuer certificate的解决办法

    微信小程序开发交流qq群   173683895    承接微信小程序开发.扫码加微信. 当本地curl需要访问https时,出现SSL certificate: unable to get loca ...

  5. 缺少ncurses包的解决办法

    安装Erlang时出现如下问题: checking for kstat_open in -lkstat... no checking for tgetent in -lncurses... no ch ...

  6. java.sql.SQLException: Unable to run insert stmt on object 解决办法

    最近在使用 compile 'com.j256.ormlite:ormlite-android:5.0' compile 'com.j256.ormlite:ormlite-core:5.0' 数据库 ...

  7. git中报unable to auto-detect email address 错误的解决办法

    昨天刚配置好的git,今天刚要commit一些修改,就遇到了这个问题 ** Please tell me who you are. Run   git config --global user.ema ...

  8. Linux中error while loading shared libraries错误解决办法

    默认情况下,编译器只会使用/lib和/usr/lib这两个目录下的库文件,通常通过源码包进行安装时,如果不指定--prefix,会将库安装在/usr/local/lib目录下:当运行程序需要链接动态库 ...

  9. 关于Unable to execute dex: Java heap space 解决办法

    今天在在编译android工程时遇到 Unable to execute dex: Java heap space的问题,现在分享一下解决方案 上网找了一下,有两种解决方案: 1. eclipse.i ...

最新文章

  1. ATS程序功能和使用方法详解
  2. 英语发音表及读法_在英语中年月日的读法和写法(附:英美时间表达差异辨析)...
  3. 几张动态图捋清Java常用数据结构及其设计原理
  4. 潍坊市计算机专业招聘,潍坊市工业学校计算机专业介绍
  5. hdu5438(2015长春网络赛B题)
  6. linux显示隐藏分区,找到了linux分区顺序错乱修复方法
  7. 《数据整理实践指南》一第2章 是我的问题还是数据的问题
  8. [hdu5628]Clarke and math(dirichlet卷积)
  9. 冲击波内幕点滴 (转)
  10. windows安装office2016
  11. 前端开发找实习宝贵经验总结
  12. c语言实现求一个矩阵特征值和特征向量
  13. centos是arm还是amd_amd系列cpu安装linux
  14. 国内外可信计算技术发展概况(转载1)
  15. PDF文档无损去签名去口令
  16. java 开发用到网络爬虫,抓取汽车之家网站全部数据经历
  17. 【Python】将xmind写的测试用例转成禅道可导入的excel格式
  18. 动态规划范例——驿站马车问题
  19. VBA写入公式(2):日期公式集
  20. js根据出生日期 计算岁数

热门文章

  1. windows下opencv安装及配置(vs2010环境)
  2. 个人销售建筑服务器,建筑个人云服务器
  3. 机器学习——模型测试与评估方法与指标
  4. go连接Kafka报错kafka: client has run out of available brokers to talk to
  5. Blender中的主程序纹理学习课程 Master Procedural Texturing in Blender
  6. Python入门基础教程 Working with Python – Introductory Level
  7. LTE CRS 时频资源
  8. (转)记忆杭州中的(非杭户籍人)
  9. C程序设计-----第1次作业
  10. MYSQL explain详解[转载]