![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
菜鸟笔记系列
记录开发过程中的BUG
中华田园巨龙
这个作者很懒,什么都没留下…
展开
-
configure fails with “No package ‘foo‘ found“ - and how to fix it
介绍 在进行本地编译时,.configure阶段经常出现configure fails with "No package ‘foo’ found"类似的错误。原因是pkg-config这个工具,在查找模块时,没有从PKG_CONFIG_PATH这个环境变量的路径下找到foo.pc文件。解决办法1、首先,查看自己的环境变量echo $PKG_CONFIG_PATHPKG_CONFIG_PATH=/usr/lib/pkgconfig/2、查找foo.pc文件sudo find / -name f原创 2021-05-11 09:55:13 · 121 阅读 · 0 评论 -
菜鸟笔记--egl: Undefined reference to `gbm_format_get_name‘ when linking with libEGL
介绍在编译weston时,遇到错误egl: Undefined reference to `gbm_format_get_name' when linking with libEGL谷歌了一下也没有结果。后来发现libEGL.so隶属于mesa库文件,在github上查找https://gitlab.freedesktop.org/mesa/mesa.git发现在mesa的源代码里,gbm_format_get_name定义在src/gbm/main/gbm.h里面,最后编译成libgbm.so原创 2021-04-25 11:58:45 · 429 阅读 · 0 评论 -
解决/usr/include/xlocale.h:27:16: error: redefinition of ‘struct __locale_struct’报错问题
介绍在编译libinput时,出现如下错误In file included from ../src/util-strings.h:43, from ../src/util-strings.c:27:/usr/include/xlocale.h:27:16: error: redefinition of ‘struct __locale_struct’ typedef struct __locale_struct ^~~~~~~~~~~原创 2021-04-20 10:07:41 · 1769 阅读 · 0 评论 -
转载--解决gedit: symbol lookup error: /home/xxx/libgobject-2.0.so.0: undefined symbol: g_date_copy问题
操作系统:Ubuntu 16.04问题描述:在终端启动gedit命令或者vscode命令报错:gedit: symbol lookup error: /home/chujie/anaconda3/lib/libgobject-2.0.so.0: undefined symbol: g_date_copy问题分析:导致错误的原因应该是gedit依赖libgobject-2.0.so库,而/home/chujie/anaconda3/lib下的这个库版本不对,没有对应的符号。因此解决的思路是从系统中找转载 2021-04-20 10:01:39 · 1353 阅读 · 0 评论 -
菜鸟笔记---开发板驱动HDMI显示屏,闪屏问题解决
在我用开发板驱动HDMI显示屏时,显示屏一开始较为稳定,但是没过一会就开始闪屏,越闪越快,最后完全黑屏,无法操作。之后使用xrandr,查看当前显示参数,发现参数为1920*1080 60hz。这个参数,显示屏是支持的,之前用笔记本带的时候就没问题。最后询问了原厂,原来是开发板不支持这么高的刷新率和分辨率。最后使用指令改为 xrandr --output HDMI-1 --mode 1280x960 --rate 60.00问题解决。...原创 2020-09-08 17:36:27 · 2840 阅读 · 0 评论 -
菜鸟笔记---startx执行后显示Only console users are allowed to run the X server
输入startx &后报错信息/usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X serverxinit: giving upxinit: unable to connect to X server: Connection refusedxinit: server error意思是需要你在开发板接入的tty上执行startx,而不是用电脑显示的超级终端ttys0...原创 2020-09-08 12:07:02 · 12373 阅读 · 8 评论 -
git笔记---git下载加速办法
1、使用站长工具查询下载网址的iphttps://ip.tool.chinaz.com/2、将查询的ip以及网址写入到 /etc/hosts147.75.46.191 git.kernel.org3、重启dns寻址sudo /etc/init.d/networking restart原创 2020-09-04 14:57:35 · 245 阅读 · 0 评论 -
菜鸟笔记---Linux下编译时linux/module.h: No such file or directory(详细)
今天在编译安装软件时,一直报错,提示我fatel error : linux/module.h: No such file or directory 查找了一下原因,是因为编译器在make时,会搜索头文件的路径/usr/include/,但是我是移植的debian系统到开发板,并且内核是自己打补丁编译的。导致/usr/include/下面没有linux/module.h相关文件。 而经过我检查发现,我的linux/module.h文件在/usr/src/linux-4.19.xx/inclu原创 2020-08-19 09:46:38 · 12691 阅读 · 3 评论 -
菜鸟笔记--internet连接共享访问被启用时 出现了一个错误 ,(null)
今天开启电脑热点,供开发板上网时,突然出现一个错误internet连接共享访问被启用时 出现了一个错误 ,(null)。明明昨天还好好的。查看了网上的办法。1、检查 服务—Internet Connection Sharing (ICS) 已启用2、检查 服务—Windows Firewall 不存在,经百度得知,已改为WindowsDefinderFirewall,已启用。3、检查 服务—Windows Installer 已启用4、检查 服务—Windows up原创 2020-08-18 11:30:27 · 3517 阅读 · 7 评论 -
菜鸟笔记-- fatal error: google/protobuf/stubs/common.h: No such file or directory解决
今天在编译过程中发现如下报警Compiling hal/user_comps/xhc-whb04b-6/pendant.ccCompiling hal/user_comps/xhc-whb04b-6/xhc-whb04b6.ccCompiling hal/user_comps/xhc-whb04b-6/main.cchal/user_comps/xhc-whb04b-6/main.cc:30:42: fatal error: google/protobuf/stubs/common.h: No su原创 2020-08-13 17:39:42 · 6808 阅读 · 1 评论 -
菜鸟笔记--rtapi/rtapi_io.h:39:43: fatal error: sys/io.h: No such file or directory问题解决
今天进行machinekit安装时出现了如下报警,查找原因,原来是arm64位的系统,在/usr/include/…/sys/下面没有io.h,但是可以手动进行创建。但是需要根据自己的板子修改下PCI_IOBASE地址Compiling machinetalk/support/sizes.cIn file included from rtapi/rtapi.h:1016:0, from hal/lib/hal.h:126, from转载 2020-08-13 17:12:49 · 1837 阅读 · 3 评论 -
菜鸟笔记--linux内核配置iptables
补充下之前排查docker安装时,iptables缺失的问题,下面介绍下iptables的内核配置首先切换到内核源码目录,执行make menuconfig1、第一步,选中Networking support (按Y)2、回车进入Networking support ,再进入Networking options3、选中下面的选项(按Y)4、按回车进入到core Netfilter configuration ,里面的所有选项全选(按Y)5、进入到IP:Netfilter Config原创 2020-08-05 11:51:51 · 3576 阅读 · 0 评论 -
菜鸟笔记--docker: Error response from daemon: failed to create endpoint vigorous_euclid on network......
安装docker后第一次执行sudo docker run hello-world,出现如下报警。root@renesas:~# sudo docker run hello-worldUnable to find image 'hello-world:latest' locallylatest: Pulling from library/hello-world256ab8fe8778: Pull completeDigest: sha256:49a1c8800c94df04e9658809b0原创 2020-08-05 11:41:41 · 4377 阅读 · 1 评论 -
菜鸟笔记--server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: no
今天重新编译了linux内核,增加了许多网络模块,然而在执行sudo apt-get update时,出现如下报警。root@renesas:~# sudo apt-get updateIgn:1 https://mirrors.tuna.tsinghua.edu.cn/debian stretch InReleaseIgn:2 https://mirrors.tuna.tsinghua.edu.cn/debian stretch-updates InReleaseIgn:3 https://m原创 2020-08-05 10:25:26 · 1612 阅读 · 0 评论 -
菜鸟笔记--Docker Job for docker.service failed because the control process exited with error
最近安装docker时,安装完成过程中报错运行journalctl -xe,查看报警信息,发现如下提示。自信查看报警信息最后面几行,意思是我的内核缺少iptables支持,无法正常进行网络配置。于是lsmod指令查找modules,发现没有iptables modules模块。只能重新编译内核,添加iptables模块了。...原创 2020-08-04 11:58:40 · 256 阅读 · 0 评论 -
菜鸟笔记--安装IGH出现error: ‘cpu_khz‘ undeclared (first use in this function)解决办法
今天安装IGH时,出现了如下如图所示报警,报警提示信息/home/tsinglin/ethercat-stable1.5/master/master.c:120:59: error: 'cpu_khz' undeclared (first use in this function)解决过程: 问题是出现在了master.o这个文件上,那么我们检查他的源文件master.c,查找cpu_khz这个参数。 由上图可以看出,是由于宏定义EC_HAVE_CYCLES这个参数,导致系统调用了cpu_k原创 2020-07-29 12:13:04 · 2368 阅读 · 0 评论 -
菜鸟笔记--scripts/basic/fixdep: Exec format error解决办法
今天在安装软件时,执行make modules出现了如下报警make modules/bin/sh: 1: scripts/basic/fixdep: Exec format errorscripts/Makefile.build:303: recipe for target '/home/tsinglin/ethercat-stable1.5/devices/generic.o' failedmake[3]: *** [/home/tsinglin/ethercat-stable1.5/devi原创 2020-07-29 10:34:31 · 10120 阅读 · 2 评论 -
菜鸟笔记--fatal error: openssl/bio.h: No such file or directory 解决方案
解决方案:sudo apt-get install libssl-dev原创 2020-07-28 17:41:20 · 3245 阅读 · 0 评论 -
菜鸟笔记--./configure linux-headers 错误configure: error: No configured Linux kernel sources
最近使用了一款比较冷门的板子。在安装软件时需要linux-headers文件,但是使用网上的sudo apt-get install linux-headers-$(uname -r) 又检测不到我的内核版本对应的linux-headers。查找资料后整理出以下方法1、找到自己内核源文件在makefile里面配置ARCH CROSS_COMPILEmake menuconfig xxx_defconfig //xxx为你的板子原厂提供的defconfig文件make al原创 2020-07-28 12:41:37 · 2001 阅读 · 1 评论 -
菜鸟笔记--根文件系统的sudo用户配置
今天新生成了用户移植的debian根文件系统,但是在执行sudo时频繁报警,现在把解决步骤展现给大家做个参考。1、在新生成的debian根文件系统中,当我执行sudo apt update指令时,出现如下报警sudo apt updatesudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set查找资料后进行权限配置chown root:root /usr/bin/sudochmod 4755 /usr/bi原创 2020-07-27 15:23:01 · 895 阅读 · 0 评论 -
菜鸟笔记--linux系统移植之[FAILED] Failed to start Network Time Synchronization. 问题解决
最近在进行debian根文件系统移植时,参考网上的例子使用debootstrap抽取了一个debian stretch根文件系统,之后得到了一个文件夹。但是当我使用指令,将根文件系统下的所有内容复制到SD卡分区时,开机启动开发板,出现如下报警。[FAILED] Failed to start Network Time Synchronization.See 'systemctl status systemd-timesyncd.service' for details.[ OK ] Reach原创 2020-07-21 17:06:08 · 7867 阅读 · 1 评论 -
菜鸟笔记--debian根文件系统启动时[FAILED] Failed to start Create Volatile Files and Directories.
今天移植debian的根文件系统到开发板上,根文件系统启动时一堆红色报警,很扎眼。[FAILED] Failed to start Create Volatile Files and Directories.See 'systemctl status systemd-tmpfiles-setup.service' for details.[FAILED] Failed to start Network Time Synchronization.See 'systemctl status system原创 2020-07-21 15:37:57 · 6361 阅读 · 0 评论 -
菜鸟笔记--scripts/extract-cert.c:21:10: fatal error: openssl/bio.h 问题解决
在编译内核时,配置了wifi驱动有关的项之后,进行make all ,出现如下报警,提示找不到openssl/bio.hscripts/extract-cert.c:21:10: fatal error: openssl/bio.h: 没有那个文件或目录 #include <openssl/bio.h> ^~~~~~~~~~~~~~~compilation terminated.之后上网查找资料,发现是由于缺少libssl-dev,其中的libraries, he原创 2020-07-21 11:18:19 · 3961 阅读 · 1 评论 -
菜鸟笔记--移植linux内核卡在[ 2.032055] Memory Limit: none
最近移植linux内核到开发板时,启动过程中出现如下信息,卡在[ 2.032055] Memory Limit: none过不去。[ 1.988722] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)[ 1.996933] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.[ 2.006997] dev原创 2020-07-20 12:29:26 · 3342 阅读 · 1 评论 -
菜鸟笔记--移植内核卡在starting kernel
最近在用瑞萨的开发板进行开发,移植内核时,串口打印starting kernel,然后卡住不动,像下面这样:In: serial@e6e88000Out: serial@e6e88000Err: serial@e6e88000Net: eth0: ethernet@e6800000Hit any key to stop autoboot: 012587520 bytes read in 525 ms (22.9 MiB/s)41785 bytes read in 3 ms原创 2020-07-20 12:21:25 · 1236 阅读 · 0 评论 -
瑞萨liunx-4.19.y-cip-rt下载地址
通过以下地址可以下载瑞萨 linux内核: 4.9.y-cip和4.9.y-cip-rt 版本https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git/可通过此方式先进行下载,解决bitbake linux-renesas -c do_fetch 下载慢问题原创 2020-07-17 16:39:12 · 255 阅读 · 0 评论 -
编译内核没有dtb文件生成原因
今天在使用内核文件编译时,可以生成Image文件,但是无法生成dtb文件。进行make dtbs时,出现下面信息。~/linux-4.9.24$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- dtbs CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.原创 2020-07-17 16:34:30 · 3871 阅读 · 0 评论 -
安装XENOMAI3时出现syntax error near unexpected token `FUSE,‘错误解决办法
在安装xenomai3时,先执行了./scripts/bootstrap之后执行./configure CFLAGS="-mtune=cortex-a53" LDFLAGS="-mtune=cortex-a53" --build=i686-pc-linux-gnu --host=aarch64-linux-gnu --with-core=cobalt --enable-smp CC=aarch64-linux-gnu-gcc LD=aarch64-linux-gnu-ld出现如下错误check原创 2020-07-14 15:22:12 · 2001 阅读 · 3 评论