Buildroot trouble shootings
1. toolchain-external-custom Configuring
Incorrect selection of kernel headers: expected 4.10.x, got 4.20.x
=> toolchain 配置错误, modify configd/defconfig
BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y BR2_TOOLCHAIN_EXTERNAL_PATH="/opt/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu" BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="aarch64-linux-gnu" BR2_TOOLCHAIN_EXTERNAL_GCC_7=y BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_10=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y BR2_TOOLCHAIN_EXTERNAL_CXX=y
To check kernel headers version of the toolchain:
cat /opt/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/aarch64-linux-gnu/libc/usr/include/linux/version.h
#define LINUX_VERSION_CODE 264707 (=0x040a03)
Match the required version 4.10
2. Download package too slow
Use download_cache, add
BR2_DL_DIR="/data/download_cache/buildroot"
3. add OpenCV4 into rootfs
vi package/opencv4/opencv4.mk
#with Qt5 ifeq ($(BR2_PACKAGE_OPENCV4_WITH_QT5),y) OPENCV4_CONF_OPTS += -DWITH_QT=5 OPENCV4_DEPENDENCIES += qt5base else OPENCV4_CONF_OPTS += -DWITH_QT=OFF endif #add gapi OPENCV4_CONF_OPTS += -DBUILD_opencv_gapi=ON #with OPENCL OPENCV4_CONF_OPTS += \ -DWITH_OPENCL=ON \ -DWITH_OPENCL_SVM=OFF \ -DWITH_OPENCLAMDBLAS=ON \ -DWITH_OPENCLAMDFFT=ON
in .config 文件:Opencv4.jpg
无效的语言。
您需要指定一种语言,像这样: <source lang="html4strict">...</source>
语法高亮所支持的语言:
4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript, actionscript3, ada, algol68, apache, applescript, apt_sources, arm, asm, asp, asymptote, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_loadrunner, c_mac, caddcl, cadlisp, cfdg, cfm, chaiscript, cil, clojure, cmake, cobol, coffeescript, cpp, cpp-qt, csharp, css, cuesheet, d, dcl, dcpu16, dcs, delphi, diff, div, dos, dot, e, ecmascript, eiffel, email, epc, erlang, euphoria, f1, falcon, fo, fortran, freebasic, freeswitch, fsharp, gambas, gdb, genero, genie, gettext, glsl, gml, gnuplot, go, groovy, gwbasic, haskell, haxe, hicest, hq9plus, html4strict, html5, icon, idl, ini, inno, intercal, io, j, java, java5, javascript, jquery, kixtart, klonec, klonecpp, latex, lb, ldif, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, matlab, mirc, mmix, modula2, modula3, mpasm, mxml, mysql, nagios, netrexx, newlisp, nsis, oberon2, objc, objeck, ocaml, ocaml-brief, octave, oobas, oorexx, oracle11, oracle8, oxygene, oz, parasail, parigp, pascal, pcre, per, perl, perl6, pf, php, php-brief, pic16, pike, pixelbender, pli, plsql, postgresql, povray, powerbuilder, powershell, proftpd, progress, prolog, properties, providex, purebasic, pycon, pys60, python, q, qbasic, rails, rebol, reg, rexx, robots, rpmspec, rsplus, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, spark, sparql, sql, stonescript, systemverilog, tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, upc, urbi, uscript, vala, vb, vbnet, vedit, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xbasic, xml, xorg_conf, xpp, yaml, z80, zxbasic
BR2_PACKAGE_OPENCV4=y # # OpenCV modules # BR2_PACKAGE_OPENCV4_LIB_CALIB3D=y BR2_PACKAGE_OPENCV4_LIB_DNN=y BR2_PACKAGE_OPENCV4_LIB_FEATURES2D=y BR2_PACKAGE_OPENCV4_LIB_FLANN=y BR2_PACKAGE_OPENCV4_LIB_HIGHGUI=y BR2_PACKAGE_OPENCV4_WITH_QT5=y # # opengl support needs an OpenGL provider # BR2_PACKAGE_OPENCV4_LIB_IMGCODECS=y BR2_PACKAGE_OPENCV4_LIB_IMGPROC=y BR2_PACKAGE_OPENCV4_LIB_ML=y BR2_PACKAGE_OPENCV4_LIB_OBJDETECT=y BR2_PACKAGE_OPENCV4_LIB_PHOTO=y BR2_PACKAGE_OPENCV4_LIB_SHAPE=y BR2_PACKAGE_OPENCV4_LIB_STITCHING=y # BR2_PACKAGE_OPENCV4_LIB_SUPERRES is not set # BR2_PACKAGE_OPENCV4_LIB_TS is not set BR2_PACKAGE_OPENCV4_LIB_VIDEOIO=y BR2_PACKAGE_OPENCV4_LIB_VIDEO=y BR2_PACKAGE_OPENCV4_LIB_VIDEOSTAB=y # # 3rd party support # BR2_PACKAGE_OPENCV4_WITH_FFMPEG=y BR2_PACKAGE_OPENCV4_WITH_GSTREAMER1=y BR2_PACKAGE_OPENCV4_JPEG2000_NONE=y # BR2_PACKAGE_OPENCV4_JPEG2000_WITH_JASPER is not set # BR2_PACKAGE_OPENCV4_JPEG2000_WITH_OPENJPEG is not set # BR2_PACKAGE_OPENCV4_WITH_JPEG is not set # BR2_PACKAGE_OPENCV4_WITH_PNG is not set BR2_PACKAGE_OPENCV4_WITH_PROTOBUF=y # BR2_PACKAGE_OPENCV4_WITH_TBB is not set # BR2_PACKAGE_OPENCV4_WITH_TIFF is not set BR2_PACKAGE_OPENCV4_WITH_V4L=y # BR2_PACKAGE_OPENCV4_WITH_WEBP is not set