
linux报错
锅锅是锅锅
这个作者很懒,什么都没留下…
展开
-
tc397交叉编译链接静态库报错tricore-elf/bin/ld: warning: cannot find entry symbol _START; defaulting to 00000000
这个时候,可以启用链接参数“–whole-archive”来告诉链接器,将后面库中所有符号都链接进来,参数“-no-whole-archive”则是重置,以避免后面库的所有符号被链接进来。添加-Wl,–whole-archive -lXXX -Wl,–no-whole-archive。默认情况下,对于未使用到的符号(函数是一种符号),链接器不会将它们链接进共享库和可执行程序。解决现象,不会再报警告错误。原创 2024-11-11 10:53:19 · 315 阅读 · 0 评论 -
linux configure报错:configure: error: cannot guess build type; you must specify one
原因:一般是由于config.guess和config.sub脚本无法识别当前的操作系统类型导致的。然后在config的命令后面带上 --build=arm,其中平台根据自己的硬件确定。下载 config.guess和config.sub放到/usr。硬件平台 飞腾d2000。原创 2024-01-11 16:27:01 · 1438 阅读 · 0 评论 -
linux c编译报错:error: invalid application of ‘sizeof‘ to incomplete type ‘struct slave_readWrite_def[]‘
编译报错:error: invalid application of ‘sizeof’ to incomplete type ‘struct slave_readWrite_def[]’所以 sizeof 不知道 这个符号到底占用了多少空间。sizeof 的计算发生在代码编译 的时刻。extern 标注的符号 在链接的时刻解析。sizeof不能用在extern变量。定义的地方多定义一个变量计算长度。原创 2023-01-12 18:52:05 · 963 阅读 · 0 评论 -
嵌入式debian没有lsusb命令解决
问题-bash: lsusb: command not found解决原创 2022-05-03 09:03:19 · 3013 阅读 · 1 评论 -
linux报错:error: ‘SIGKILL‘ undeclared (first use in this function)
报错:error: ‘SIGKILL’ undeclared (first use in this function)原因:缺少头文件解决方法:添加#include <sys/types.h>#include <signal.h>原创 2022-04-12 16:11:16 · 3076 阅读 · 1 评论 -
svn报错:is scheduled for addition, but is missing
svn在commit后报错is scheduled for addition, but is missing原因,之前已经提交过这个文件,现在上传的时候已经删除解决方法1、本来就是删除的文件,直接删除svn的待上传目录方式1:单个文件单个文件的删除svn delete --force {filename}svn delete --force paho.mqtt.embedded-c/MQTTClient-C/samples/linux/build_lib/mqtt_scheduler.o方式2原创 2022-03-24 15:56:22 · 5061 阅读 · 0 评论 -
linux报错:mipsel-linux-gcc: fatal error: no input files
报错“:mipsel-linux-gcc -DON_BGIAD_CLIENT -DINET_6 -I./…/include -I./…/common_modules/target/h -I./…/common_modules/gkgeneral/h -I./…/common_modules/gkconfig -I./…/common_modules -I./…/common_modules/msgexchange -I./…/common_modules/libntp/h -I./…/common_modu原创 2021-11-01 14:22:19 · 2119 阅读 · 0 评论 -
vmware虚拟机里面打开ubuntu蓝屏解决方法
问题:运行VMware等虚拟机导致win10蓝屏死机(终止代码:SYSTEM_SERVICE_EXCEPTION)原因:因为更新了Windows的相关补丁导致的,Hyper-V被默认开启解决方法:新建test.bat文件写入pushd "%~dp0"dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txtfor /f %%i in ('findstr /i . hyper-v.txt 2^>nul') d原创 2021-09-21 14:14:30 · 6206 阅读 · 2 评论 -
linux报错fatal error: xlocale.h: No such file or directory #include <xlocale.h> // because, on some s
问题:fatal error: xlocale.h: No such file or directory#include <xlocale.h> // because, on some systems, <locale.h> doesn’t include <xlocale.h>; this makes sure that we get both原因:新版本ubuntu已不在支持xlocal解决方法:方法一:在cmake里面添加add_definitions(原创 2021-09-19 10:21:33 · 5700 阅读 · 1 评论 -
linux报错CMake Error at CMakeLists.txt:3 (project): No CMAKE_CXX_COMPILER could be found.
问题:CMake Error at CMakeLists.txt:3 (project):No CMAKE_CXX_COMPILER could be found.原因:缺库解决:sudo apt-get updatesudo apt-get install -y build-essential原创 2021-09-19 08:56:57 · 6294 阅读 · 2 评论 -
linux报错error: stray ‘\302‘ in program
报错:error: stray ‘\302’ in program原因:文件内容里面有乱码解决方法:直接用另外的编译器打开文件,把乱码字符删掉原创 2021-09-07 17:17:42 · 1658 阅读 · 0 评论 -
linux报错fatal error: cjson/cJSON.h: No such file or directory # include <cjson/cJSON.h>
fatal error: cjson/cJSON.h: No such file or directoryinclude <cjson/cJSON.h>原因:缺少json库解决方法:sudo apt install libcjson1 libcjson-dev原创 2021-07-23 09:31:09 · 6297 阅读 · 0 评论 -
linux报错:/bin/sh: 1: flex: not found scripts/Makefile.host:9: recipe for target ‘scripts/kconfig/lexe
报错:LEX scripts/kconfig/lexer.lex.c/bin/sh: 1: flex: not foundscripts/Makefile.host:9: recipe for target ‘scripts/kconfig/lexer.lex.c’ failedmake[2]: *** [scripts/kconfig/lexer.lex.c] Error 127Makefile:567: recipe for target ‘imx_v8_defconfig’ fail原创 2021-06-27 23:47:48 · 8903 阅读 · 1 评论 -
linux报错scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: No such file or directory
现象:修改内核make menuconfig报错scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: No such file or directory原因:缺少curses库解决办法:apt-get install libncurses5-dev原创 2021-06-06 09:59:40 · 1033 阅读 · 0 评论 -
ubuntu解压报错tar: Error is not recoverable: exiting now
原因:传输文件的格式不对解决办法:传输文件到ubuntu的时候选择二进制格式,默认是ascii格式原创 2021-06-05 20:15:23 · 1349 阅读 · 0 评论 -
ubuntu老是提示ftp输入密码
解决办法vi /etc/vsftpd.conf#pam_service_name=vsftpdpam_service_name=ftp原创 2021-06-05 19:17:34 · 318 阅读 · 0 评论 -
ubuntu启动ftp报错“start: Unknown job: vsftpd”
解决办法:先输入 unset UPSTART_SESSION再启动 service vsftpd restart原创 2021-06-05 18:56:06 · 828 阅读 · 0 评论 -
ubuntu安装软件提示错误Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarly unavail
报错:Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarly unavailable)原因:默认有apt-get运行查看ps aux|grep apt-get解决方法:运行sudo rm /var/lib/dpkg/lock-frontendsudo rm /var/lib/dpkg/lock原创 2021-04-18 11:13:42 · 4354 阅读 · 2 评论 -
linux编译报错 You must install ‘hg‘ on your build machine hg is usually part of the mercurial package
报错:You must install ‘hg’ on your build machinehg is usually part of the mercurial package in your distributionmake: *** [core-dependencies] 错误 1ERROR: build buildroot Failed原因:缺少hg组建解决方法:sudo apt-get install hgsubversion...原创 2021-04-04 13:07:17 · 1074 阅读 · 1 评论 -
ubuntu启动A start job is running for Raise network interface(5min 4s)解决
原因解决方法进入系统后修改文件/etc/systemd/system/network-online.target.wants/networking.serviceTimeoutStartSec=5min 修改为TimeoutStartSec=2sec原创 2021-03-21 19:49:56 · 1461 阅读 · 0 评论 -
linux安装glibc报错these critical programs are missing or too old: as ld
问题 configure时报错these critical programs are missing or too old: as ld原因 缺少或者autoconf版本低解决 下载安装autoconf#wget ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gztar zxvf autoconf-2.68.tar.gzcd autoconf-2.68./configuremake && make install...原创 2020-11-11 10:08:49 · 5295 阅读 · 3 评论 -
linux安装autoconf报错:error: no accceptable m4 could be found in $PATH
报错:error: no accceptable m4 could be found in $PATH问题 缺少m4解决:下载安装wget http://ftp.gnu.org/gnu/m4/m4-1.4.9.tar.gztar -xvf m4-1.4.9.tar.gzcd m4-1.4.9./configuremake && make install原创 2020-11-11 10:02:57 · 725 阅读 · 0 评论 -
linux编译报错 can not found -lSDL2
原因:缺少sdl2库解决:apt-get install libsdl2-dev原创 2020-10-10 15:47:46 · 1242 阅读 · 0 评论 -
python3.7安装报错:No module named ‘_ctypes‘
python3.7安装,报错No module named ‘_ctypes’原因 缺少ctypes模块解决 apt install libffi-dev原创 2020-09-30 16:38:13 · 1715 阅读 · 0 评论 -
linux编译报错 /usr/bin/ld: 找不到 -lssl
/usr/bin/ld: 找不到 -lssl原因:没有lssl包解决:apt-get install libssl-dev原创 2020-09-28 10:27:05 · 2847 阅读 · 0 评论 -
linux Alsa-lib安装
缺少Alsa-lib解决apt-get install libasound2-dev原创 2020-09-24 17:51:13 · 733 阅读 · 0 评论 -
-bash: -bash:: command not found
-bash: -bash:: command not found未安装git工具解决:centos: sudo yum install gitubuntu:sudo apt-get install git原创 2020-09-21 20:05:23 · 428 阅读 · 0 评论 -
linux编译错误 xx找不到 -ljpeg
缺少jpeg库解决apt-get install libjpeg-dev原创 2020-09-18 17:00:42 · 859 阅读 · 0 评论 -
linux编译错误 fatal error: jpeglib.h: No such file or directory
报错:cameratest.c:23:21: fatal error: jpeglib.h: No such file or directory#include <jpeglib.h>^compilation terminated.解决:安装 jpeg库sudo apt-get install libjpeg62-dev原创 2020-09-18 10:41:41 · 10743 阅读 · 1 评论