全志TinaLinux编译错误fatalerror:unicode/ucnv.h:Nosuchfileordirectorymcdull^0^

拿到一个全志Tina的板子还有一个SDK压缩包,要求我这周(只剩一天半。。。)就要把sdk编译通过并且把板子跑起来。

还特别跟我说他们试了下这个sdk编译没法通过,会报错。。。

竟然是有坑!

————————————————————————————————————————————————————————————————

准备工作:

拷贝解压SDK

阅读Guide手册(如何配置环境,如何编译,如何烧录)

读完了接下来正式开工

第一步,配置编译环境。

但是老子是ssh远程编译服务器编译,没有全向apt-install,问老大,老大说应该配好了,叫我先编译一下试试看。

应该?好吧,先略过。

第二步,编译

还好编译的时候回自动检测编译环境是否配置ok。

按照手册开始一步一步编译,问了下公司的服务器只有4核,为了不影响其他人使用,在这里只能make-j4编译。

之后就是等待结果。。同时可以去找找烧录套件准备硬件连接。

$tar-xvfHomlet-Tina-H2_H3$cdHomlet-Tina-H2_H3$sourcebuild/envsetup.sh$lunchdolphin_p1-tina$make–j4

编译了大概13分钟之后就Error报错了!

停止编译了!

打开mxmlds.c看一下,含有以下几个头文件其中tree.h和parser.h都包含了encoding.h

#include#include#include编译该源码包的时候指向的头文件路径是/usr/include/libxml2/libxml/encoding.h

看下头文件

现在报错找不到unicode/ucnv.h说明这个宏被人定义了,但是在sdk目录下搜索LIBXML_ICU_ENABLED关键字的文件只有两个,其中xmlversion.h明确屏蔽了这个宏

./package/allwinner/liballwinner_tina/liballwinner/LIBRARY/EXTERNAL/include/libxml/encoding.h./package/allwinner/liballwinner_tina/liballwinner/LIBRARY/EXTERNAL/include/libxml/xmlversion.h/***LIBXML_ICU_ENABLED:**Whethericusupportisavailable*/#if0#defineLIBXML_ICU_ENABLED#endif

上面两个文件和指定目录的文件是同一个类型,只是不同版本,查看指定路径头文件/usr/include/libxml2/libxml/xmlversion.h,发现里面打开了这个宏。

/**281*LIBXML_ICU_ENABLED:282*283*Whethericusupportisavailable284*/285#if1286#defineLIBXML_ICU_ENABLED287#endif原本可以在指定的头文件里屏蔽掉这个宏重新编译就可以了。

但是这个是编译服务器的系统头文件

首先没有权限修改。

其次为了编译某个项目屏蔽公用的头文件功能对别人使用会有影响。

最重要的是这个sdk编译完了要打包烧录到arm板子上,最好不要依赖牵涉宿主机上的东西,所有依赖自带并打包才更符合逻辑。

--------------------------------------------------------------------------------------------------------------------------------------------------

问题原因找到了,解决办法就是修改头文件指定目录。

现在需要找到头文件路径设置的地方进而修改。

整个sdk编译走的都是Makefile结构,头文件路径有些是从父级环境变量继承下来的,有些是子目录源码自己添加的。

查看出问题的源码Makefile发现了CPPFLAGS里面就是包含了刚才那个系统头文件目录

/usr/include/libxml2/libxml但是改这个Makefile是没有任何意义的,因为Makefile文件是configure之后自动产生的,所以这个应该问题和configure有关

看下源码libmgncs-1.2.0目录下的configure文件(重新解压未编译过的)果然发现了里面自带的configure.as包含这个固定路径

iftest"x$build_datasource_xml"="xyes";thenAC_DEFINE(_MGNCSDB_DATASOURCE,1,[Defineifsupportdatasource])AC_DEFINE(_MGNCSDB_XML,1,[Defineifsupportxmldatasource])CPPFLAGS="$CPPFLAGS-I/usr/include/libxml2"fi现在只要把这个头文件地址改到自己指定的libxml2目录就可以了

CPPFLAGS="$CPPFLAGS-I../../../../package/allwinner/liballwinner_tina/liballwinner/LIBRARY/EXTERNAL/include/libxml"

THE END
1.长连接服务tcp连接断连问题我司最近一长连接服务(该服务是接收合作企业的设备采集数据)频繁出现断连问题。 从监控显示,这周已经出现过三次,发生的时间点分别是: 2024-11-18 14:00 2024-11-19 14:36 2024-11-20 04:45 image.png 对方反馈,之前偶尔出现断连,代码层面出现 socket read timed out 或者 connect timed out 异常。 最近https://www.jianshu.com/p/e7c11676190f
2.[fix]修复客户端在服务端挂掉后的处理逻辑·PullRequest!841The PR is not associated with any Issue, Please associate the PR with one Issue before trigger build. 表态 回复 gaozhichao 关联了 openharmony/time_time_service Issue IB6Y8Z 11月25日 20:35 gaozhichao 成员 11月25日 20:35 start build 表态 回复 openharmony_ci 成员 11月25日 20:35 https://gitee.com/openharmony/time_time_service/pulls/841
3.coredumpto/usr/lib/systemd/systemdcoredumppipfailed返回值为0表禁用功能,则不会产生coredum文件。ulimit -c unlimited暂时开启 #ulimit -c unlimited --- 限制coredump产生: #vim /etc/profile #半永久 #尾部追加 #ulimit -c unlimited #无限制,其他限制用数字表示k。 ulimit -c 1024 ***#vim /etc/security/limits.conf #永久https://blog.csdn.net/2401_84008551/article/details/144081592
4.Java网络编程:如何处理TCP连接异常System.out.println("Error occurred: "+e.getMessage()); e.printStackTrace(); } 诊断和识别异常: 确定是由于网络问题(如断开连接、防火墙限制等)还是客户端代码错误导致的异常。 适当地响应异常: 对于某些可以预知的异常,例如已关闭的Socket,可以提供相应的提示信息而不是抛出异常。 https://dandelioncloud.cn/article/details/1862613764344512514
5.wiresharkincorrectmob64ca13f53d41的技术博客char const* rtcpmuxLine = fMultiplexRTCPWithRTP ? "a=rtcp-mux\r\n" : ""; char const* rangeLine = rangeSDPLine(); char const* auxSDPLine = getAuxSDPLine(rtpSink, inputSource); if (auxSDPLine == NULL) auxSDPLine = ""; https://blog.51cto.com/u_16213571/12701717
6.RecipeTerminatedwithFatalError:Spawn·Issue#503is in, and only the latest two (Recipe terminated with error) when you take the ! out and leave the spaces in. It certainly seems like the magic comment does have something to do with this error, but I think something else might be going on in the background as well. In all instanchttps://github.com/James-Yu/LaTeX-Workshop/issues/503
7.请问用VSC编译时显示“Recipeterminatedwitherror.”的解决请问用VSC编译时显示“Recipe terminated with error.”的解决方法?发布于 2021-06-17 11:26:37 每一次在VSC里编译都出现问题:去查询类似问题,已经弄好了环境变量,且文件名和地址非中文。还是没效果。json代码如下 查看更多关注者 0 被浏览 14.4k https://ask.latexstudio.net/ask/question/3564.html
8.zliberrorutil/zbin.c:7:18: fatal error: lzma.h: No such file or directory #include <lzma.h> ^ compilation terminated. Makefile.housekeeping:1294: recipe for target 'util/zbin' failed make: *** [util/zbin] Error 1 -end quote I have all the required dependencies installed and I am trying http://forum.ipxe.org/showthread.php?tid=7730
9.railsmigration[gitlabLoading Cinc Auditor profile files: Loading Cinc Auditor input files: Loading Cinc Auditor waiver files: Recipe: gitlab::default * directory[/etc/gitlab] action create (up to date) [2022-07-22T19:47:45+02:00] WARN: Selected systemd because /run/systemd/system/ exists /opt/gitlab/https://gitlab.com/gitlab-org/gitlab/-/issues/368631
10.Fatalerror:CalltoundefinedfunctionfieldattachWhen running D7 install it breaks out with an error on front-end saying AJAX load error: An AJAX HTTP request terminated abnormally. Debugging information follows. Path: http://localhost/drupal-7.x-dev/install.php?q=install.php&profile=minima This is browser independent, at least I triehttps://www.drupal.org/node/481758
11.Steamworks.P2PSessionErrorP2PSessionError.NotRunningApp1 P2PSessionError.NoRightsToApp2 P2PSessionError.DestinationNotLoggedIn3 P2PSessionError.Timeout4 P2PSessionError.Max5 Getting Started3 About Facepunch.Steamworks Frequently Asked Questions Setting Up Installing1 Installing For Unity https://wiki.facepunch.com/steamworks/P2PSessionError
12.recipeterminatedwithfatalerror:spawnlatexmkenoent例如:\usepackage{fontspec}[< font path >]。这将告诉LaTeX系统去查找指定的字体文件。 总的来说,当遇到“recipe terminated with fatal error: spawn latexmk enoent”的错误时,我们需要仔细检查LaTeX文件中的字体配置,并根据实际情况采取相应的措施来解决问题。通过以上方法,相信你应该能够顺利解决这个问题。https://www.imooc.com/article/343644
13.配置VScode+Latex(Recipeterminatedwithfatalerror:spawn配置VScode+Latex (Recipe terminated with fatal error: spawn xelatex ENOENT),程序员大本营,技术文章内容聚合第一站。https://www.pianshen.com/article/66961308137/
14.MechanicallyDiverseGelswithEqualSolventContentACSTo validate the concept ofGgelvariation at constantQeq, we synthesize a library of brush elastomers with systematically varied [nsc,ng,nx] combinationsGgelis not reported for fragile gels due to large error. Even though knowing the architectural parameters is vital for understanding molecular mechahttps://pubs.acs.org/doi/10.1021/acscentsci.2c00472
15.Solved:SRCREV="${AUTOREV}"ErrorinNXPYoctoRev.LF5.15I got a related problem with nxp-demo-experience repo. If you looked at demo-experience-demo.bb recipe you can see SRCREV_model = "${AUTOREV}". If you have a network issue or you tried to building offline, this recipe is trying to access githun page and you chttp://community.nxp.com/t5/i-MX-Processors/SRCREV-quot-AUTOREV-quot-Error-in-NXP-Yocto-Rev-LF5-15-52-2-1-0/td-p/1562439
16.IntroductiontoExperimentalQuantumMeasurementwithIntroduction to Experimental Quantum Measurement with Superconducting Qubits Mahdi Naghiloo, Murch Lab Washington University in St. Louis, April 2019 Abstract—Quantum technology has been rapidly growing due to its potential revolutionary applications. In particular, superconducting qubits provide a strong http://arxiv.org/pdf/1904.09291v1
17.error#5078:Unrecognizedtoken'?'skippedI have taken one function from press numerical recipees and milenko@milenkons:~/pauel$ ifort -c assert_eq.f90 assert_eq.f90(10): error #5078:https://community.intel.com/t5/Intel-Fortran-Compiler/error-5078-Unrecognized-token-skipped/m-p/759847
18.[Bugc/69866]New:lto1:internalcompilererror:inaddterminated. /files/work/acr/wip_elibos/elibos_toolchains/gcc-arm/gcc-arm-none-eabi-5.3.0-a/bin/../lib/gcc/arm-none-eabi/5.3.0/../../error: lto-wrapper failed collect2: error: ld returned 1 exit status ../../../os/common/ports/ARMCMx/compilers/GCC/rules.mk:238: recipe https://gcc.gnu.org/pipermail/gcc-bugs/2016-February/535939.html
19.DOTA2自定义地图发布Will stop ALL hints with this name chat_new_message: the specified channel contains new dota_hud_error_message reason ( byte ) message ( string ) dota_action_success dota_startingrecipe ( byte ) toggle ( bool ) dota_quick_buy_changed item ( string ) recipe ( bytehttps://www.dota2.com.cn/wiki/Dota_2_Workshop_Tools/Scripting/Built-In_Engine_Events.htm
20.传说中16天记住7000考研单词的文本1.WithmyownearsI286. The miracle mirrors a horrible error made by the terrorists in the terrible territory. 这683. The thermal therapy terminated after the terminal germ seminar. 热疗在期末细菌研讨会后终止了714. The recipe recipient transiently made the conscientious alien client unconscious. 烹饪法接受https://www.newsmth.net/bbsanc.php?path=/groups/literal.faq/EnglishWorld/resources/books/swewe/7000&ap=1292
21.hasterminatedunexpectedlyduringstartupwithexitcodeBut only 15 days back, exactly after I upgraded to macOS Sierra,when i opened virtual box, this error appeared for the 1st time: "The virtual machine 'Windows7' has terminated unexpectedly during startup with exit code 1 (0x1)." https://forums.virtualbox.org/viewtopic.php?t=80328
22.CommandLineKungFu:April2009with bash but is a real pain in the uh neck in Windows cmd.exe. But, saddled Try putting the above recipe into your /etc/profile file next April Fool's Day and watch yourBigger than that will either push you into negative territory, or outright give you an error http://blog.commandlinekungfu.com/2009/04/