在ubuntu 上测试mjpeg-streamer

本文详细介绍了如何在Ubuntu 18.04上安装和配置mjpg-streamer,这是一个开源的网络视频流服务器。首先,通过安装必要的依赖库如libv4l-dev和libjpeg62-dev来准备环境。接着,从GitHub克隆mjpg-streamer源码,并以root权限编译安装。在编译过程中,虽然遇到OpenCV等依赖未找到的问题,但依然成功构建了包括UVC摄像头输入插件在内的多个输出和输入插件。最后,通过运行mjpg_streamer并指定输入和输出插件,启动了内置的HTTP服务器,可以在本地浏览器中通过特定URL访问摄像头视频流。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

mjpg-streamer 是一个开源的网络视频流服务器,本文使用UVC摄像头在UBUNTU18.04上建立一个测试环境。

1.安装环境依赖库

sudo apt-get install subversion  libv4l-dev  libjpeg62-dev  imagemagick cmake subversion

 2.编译并安装mjpeg-streamer源码,注意要切换到root模式编译,否则安装失败。

    git clone https://github.com/vcsy1994/mjpg-streamer.git
    cd mjpg-streamer
    make clean && make all && make install
root@czl-RedmiBook-14:/home/czl/Workspace/mjpg-streamer# make clean && make all && make install
[ ! -f _build/Makefile ] || make -C _build clean
rm -f mjpg_streamer *.so
[ -d _build ] || mkdir _build
[ -f _build/Makefile ] || (cd _build && cmake  -DCMAKE_BUILD_TYPE=Release ..)
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMAKE_BUILD_TYPE = Release
-- Looking for include file sys/inotify.h
-- Looking for include file sys/inotify.h - found
CMake Warning at plugins/input_opencv/CMakeLists.txt:4 (find_package):
  By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "OpenCV", but
  CMake did not find one.

  Could not find a package configuration file provided by "OpenCV" with any
  of the following names:

    OpenCVConfig.cmake
    opencv-config.cmake

  Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
  "OpenCV_DIR" to a directory containing one of the above files.  If "OpenCV"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Could NOT find GPHOTO2 (missing: GPHOTO2_LIBRARY GPHOTO2_INCLUDE_DIR) 
-- Looking for include file linux/videodev2.h
-- Looking for include file linux/videodev2.h - found
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Could NOT find SDL (missing: SDL_LIBRARY SDL_INCLUDE_DIR) 
-- The following features have been enabled:

 * PLUGIN_INPUT_FILE, File input plugin
 * PLUGIN_INPUT_HTTP, HTTP input proxy plugin
 * PLUGIN_INPUT_UVC, Video 4 Linux input plugin
 * PLUGIN_OUTPUT_FILE, File output plugin
 * PLUGIN_OUTPUT_HTTP, HTTP server output plugin
 * PLUGIN_OUTPUT_RTSP, RTSP output plugin
 * PLUGIN_OUTPUT_UDP, UDP output stream plugin

-- The following OPTIONAL packages have been found:

 * Threads

-- The following features have been disabled:

 * WXP_COMPAT, Enable compatibility with WebcamXP
 * PLUGIN_INPUT_OPENCV, OpenCV input plugin (unmet dependencies)
 * PLUGIN_INPUT_RASPICAM, Raspberry Pi input camera plugin (unmet dependencies)
 * PLUGIN_INPUT_PTP2, PTP2 input plugin (unmet dependencies)
 * ENABLE_HTTP_MANAGEMENT, Enable experimental HTTP management option
 * PLUGIN_OUTPUT_VIEWER, SDL output viewer plugin (unmet dependencies)

-- The following OPTIONAL packages have not been found:

 * OpenCV
 * Gphoto2
 * SDL

-- Configuring done
-- Generating done
-- Build files have been written to: /home/czl/Workspace/mjpg-streamer/_build
make -C _build
make[1]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
make[2]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
Scanning dependencies of target mjpg_streamer
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
[  4%] Building C object CMakeFiles/mjpg_streamer.dir/mjpg_streamer.c.o
[  8%] Building C object CMakeFiles/mjpg_streamer.dir/utils.c.o
[ 13%] Linking C executable mjpg_streamer
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 13%] Built target mjpg_streamer
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
Scanning dependencies of target input_file
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 17%] Building C object plugins/input_file/CMakeFiles/input_file.dir/input_file.c.o
[ 21%] Linking C shared library input_file.so
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 21%] Built target input_file
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
Scanning dependencies of target input_http
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 26%] Building C object plugins/input_http/CMakeFiles/input_http.dir/input_http.c.o
[ 30%] Building C object plugins/input_http/CMakeFiles/input_http.dir/misc.c.o
[ 34%] Building C object plugins/input_http/CMakeFiles/input_http.dir/mjpg-proxy.c.o
[ 39%] Linking C shared library input_http.so
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 39%] Built target input_http
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
Scanning dependencies of target input_uvc
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 43%] Building C object plugins/input_uvc/CMakeFiles/input_uvc.dir/dynctrl.c.o
[ 47%] Building C object plugins/input_uvc/CMakeFiles/input_uvc.dir/input_uvc.c.o
[ 52%] Building C object plugins/input_uvc/CMakeFiles/input_uvc.dir/jpeg_utils.c.o
[ 56%] Building C object plugins/input_uvc/CMakeFiles/input_uvc.dir/v4l2uvc.c.o
[ 60%] Linking C shared library input_uvc.so
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 60%] Built target input_uvc
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
Scanning dependencies of target output_file
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 65%] Building C object plugins/output_file/CMakeFiles/output_file.dir/output_file.c.o
/home/czl/Workspace/mjpg-streamer/plugins/output_file/output_file.c: In function ‘worker_thread’:
/home/czl/Workspace/mjpg-streamer/plugins/output_file/output_file.c:292:17: warning: ignoring return value of ‘link’, declared with attribute warn_unused_result [-Wunused-result]
                 (void) link(buffer2, buffer1);
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 69%] Linking C shared library output_file.so
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 69%] Built target output_file
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
Scanning dependencies of target output_http
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 73%] Building C object plugins/output_http/CMakeFiles/output_http.dir/httpd.c.o
/home/czl/Workspace/mjpg-streamer/plugins/output_http/httpd.c: In function ‘send_input_JSON’:
/home/czl/Workspace/mjpg-streamer/plugins/output_http/httpd.c:1731:38: warning: ‘%d’ directive writing between 1 and 10 bytes into a region of size 6 [-Wformat-overflow=]
                 sprintf(buffer_num, "%d", j);
                                      ^~
/home/czl/Workspace/mjpg-streamer/plugins/output_http/httpd.c:1731:37: note: directive argument in the range [0, 2147483647]
                 sprintf(buffer_num, "%d", j);
                                     ^~~~
In file included from /usr/include/stdio.h:862:0,
                 from /home/czl/Workspace/mjpg-streamer/plugins/output_http/httpd.c:28:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: note: ‘__builtin___sprintf_chk’ output between 2 and 11 bytes into a destination of size 6
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       __bos (__s), __fmt, __va_arg_pack ());
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 78%] Building C object plugins/output_http/CMakeFiles/output_http.dir/output_http.c.o
[ 82%] Linking C shared library output_http.so
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 82%] Built target output_http
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
Scanning dependencies of target output_rtsp
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 86%] Building C object plugins/output_rtsp/CMakeFiles/output_rtsp.dir/output_rtsp.c.o
[ 91%] Linking C shared library output_rtsp.so
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 91%] Built target output_rtsp
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
Scanning dependencies of target output_udp
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 95%] Building C object plugins/output_udp/CMakeFiles/output_udp.dir/output_udp.c.o
[100%] Linking C shared library output_udp.so
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
[100%] Built target output_udp
make[2]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
make[1]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
make -C _build install
make[1]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
make[2]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 13%] Built target mjpg_streamer
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 21%] Built target input_file
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 39%] Built target input_http
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 60%] Built target input_uvc
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 69%] Built target output_file
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 82%] Built target output_http
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
[ 91%] Built target output_rtsp
make[3]: Entering directory '/home/czl/Workspace/mjpg-streamer/_build'
make[3]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
[100%] Built target output_udp
make[2]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/bin/mjpg_streamer
-- Set runtime path of "/usr/local/bin/mjpg_streamer" to "/usr/local/lib/mjpg-streamer"
-- Installing: /usr/local/share/mjpg-streamer/www
-- Installing: /usr/local/share/mjpg-streamer/www/favicon.ico
-- Installing: /usr/local/share/mjpg-streamer/www/java.html
-- Installing: /usr/local/share/mjpg-streamer/www/fix.css
-- Installing: /usr/local/share/mjpg-streamer/www/LICENSE.txt
-- Installing: /usr/local/share/mjpg-streamer/www/jquery.rotate.js
-- Installing: /usr/local/share/mjpg-streamer/www/JQuerySpinBtn.css
-- Installing: /usr/local/share/mjpg-streamer/www/JQuerySpinBtn.js
-- Installing: /usr/local/share/mjpg-streamer/www/control.htm
-- Installing: /usr/local/share/mjpg-streamer/www/functions.js
-- Installing: /usr/local/share/mjpg-streamer/www/static_simple.html
-- Installing: /usr/local/share/mjpg-streamer/www/jquery.ui.custom.css
-- Installing: /usr/local/share/mjpg-streamer/www/spinbtn_updn.gif
-- Installing: /usr/local/share/mjpg-streamer/www/stream_simple.html
-- Installing: /usr/local/share/mjpg-streamer/www/jquery.js
-- Installing: /usr/local/share/mjpg-streamer/www/jquery.ui.tabs.min.js
-- Installing: /usr/local/share/mjpg-streamer/www/jquery.ui.widget.min.js
-- Installing: /usr/local/share/mjpg-streamer/www/static.html
-- Installing: /usr/local/share/mjpg-streamer/www/bodybg.gif
-- Installing: /usr/local/share/mjpg-streamer/www/stream.html
-- Installing: /usr/local/share/mjpg-streamer/www/jquery.ui.core.min.js
-- Installing: /usr/local/share/mjpg-streamer/www/example.jpg
-- Installing: /usr/local/share/mjpg-streamer/www/style.css
-- Installing: /usr/local/share/mjpg-streamer/www/cambozola.jar
-- Installing: /usr/local/share/mjpg-streamer/www/javascript_motiondetection.html
-- Installing: /usr/local/share/mjpg-streamer/www/java_control.html
-- Installing: /usr/local/share/mjpg-streamer/www/javascript.html
-- Installing: /usr/local/share/mjpg-streamer/www/java_simple.html
-- Installing: /usr/local/share/mjpg-streamer/www/videolan.html
-- Installing: /usr/local/share/mjpg-streamer/www/favicon.png
-- Installing: /usr/local/share/mjpg-streamer/www/sidebarbg.gif
-- Installing: /usr/local/share/mjpg-streamer/www/javascript_simple.html
-- Installing: /usr/local/share/mjpg-streamer/www/index.html
-- Installing: /usr/local/share/mjpg-streamer/www/rotateicons.png
-- Installing: /usr/local/lib/mjpg-streamer/input_file.so
-- Installing: /usr/local/lib/mjpg-streamer/input_http.so
-- Installing: /usr/local/lib/mjpg-streamer/input_uvc.so
-- Installing: /usr/local/lib/mjpg-streamer/output_file.so
-- Installing: /usr/local/lib/mjpg-streamer/output_http.so
-- Installing: /usr/local/lib/mjpg-streamer/output_rtsp.so
-- Installing: /usr/local/lib/mjpg-streamer/output_udp.so
make[1]: Leaving directory '/home/czl/Workspace/mjpg-streamer/_build'
root@czl-RedmiBook-14:/home/czl/Workspace/mjpg-streamer# 

3.启动mjpeg_streamer并且启动http服务器。

mjpeg_streamer启动后内部会继续启动一个http server,用来响应客户端连接.

./mjpg_streamer -i "./input_uvc.so -d /dev/video0 -u -f 30" -o "./output_http.so -w ./www"

 4.在浏览器中测试,浏览器中输入以下网址,可以直接打开远程UVC摄像头.查看MJPEG 数据。

 http://127.0.0.1:8080/

或者输入如下URL,直接看视频:

http://127.0.0.1:8080/?action=stream

结束!

<think>好的,我现在需要帮助用户解决他们在Ubuntu 18.04上安装交叉编译工具链的问题。用户已经按照之前的建议提供了系统信息和包策略的输出。让我先仔细看看这些信息。 首先,用户的系统是Ubuntu 18.04 LTS,代号bionic。当他们尝试安装gcc-aarch64-linux-gnu和g++-aarch64-linux-gnu时,提示找不到安装候选。运行apt-cache policy显示这两个包没有可用的候选版本。这说明在Ubuntu 18.04的默认仓库中,这两个包可能不存在或被移除了。我需要确认这一点。 回想一下,Ubuntu的不同版本中软件包的名称和可用性可能不同。比如,较新的Ubuntu版本可能将aarch64的工具链放在不同的仓库或使用不同的包名。对于18.04这样的较旧版本,可能需要启用其他仓库或寻找替代包名。 用户之前已经尝试过添加universe和multiverse仓库,但问题依然存在。现在需要进一步检查可能的替代方案。例如,是否在Ubuntu 18.04中,这些工具链包的名字不同?或者是否已经被废弃,需要手动安装? 我记得在较旧的Ubuntu版本中,交叉编译工具链的包名可能带有版本号,比如gcc-7-aarch64-linux-gnu,而用户可能使用的是不带版本号的包名,导致无法找到。需要让用户尝试安装带有特定版本号的包,比如gcc-7-aarch64-linux-gnu和g++-7-aarch64-linux-gnu,因为Ubuntu 18.04默认的GCC版本是7。 另外,用户的目标设备是Jetson Xavier,本身已经是aarch64架构,如果用户是在Xavier上进行本地编译,可能不需要交叉编译工具链,而是直接使用系统自带的gcc。但用户可能因为项目配置需要而使用交叉编译,或者是在其他环境下构建。需要进一步确认用户的实际需求,是否需要交叉编译,或者是否可以直接本地编译。 如果用户确实需要交叉编译,但Ubuntu 18.04的仓库中没有合适的包,可能需要手动下载工具链,例如从Linaro或ARM官方网站获取预编译的工具链,并配置环境变量。此外,用户的项目可能依赖openssl,需要确保openssl的开发库已经安装,无论是本地还是交叉编译环境。 还需要考虑用户可能遇到的路径问题,比如在编译时指定正确的include路径和库路径,特别是当使用手动安装的工具链时。用户之前的错误日志中提到openssl的路径,可能需要检查该路径是否存在,或者是否正确安装了openssl的开发包。 总结来说,解决方案可能包括以下几个步骤: 1. 尝试安装带有版本号的交叉编译工具链,如gcc-7-aarch64-linux-gnu。 2. 如果仓库中没有,手动下载并安装Linaro或ARM官方的工具链。 3. 检查是否需要本地编译,直接使用系统gcc。 4. 确保openssl等依赖库正确安装,并配置编译时的路径。 需要将这些步骤以清晰的结构传达给用户,并提供具体的命令示例,帮助他们逐步解决问题。同时,提醒用户根据他们的实际编译需求(交叉编译还是本地编译)选择合适的工具链,避免不必要的复杂操作。</think>--- ### **问题诊断** 根据你提供的系统信息: - **Ubuntu版本**:18.04 LTS (bionic) - **包状态**:`gcc-aarch64-linux-gnu`在官方仓库中已不可用 Ubuntu 18.04的官方源已移除`gcc-aarch64-linux-gnu`的默认支持,需通过其他方式解决。以下是针对此情况的完整解决方案: --- ### **解决方案一:使用旧版包名安装** 在Ubuntu 18.04中,交叉编译工具链的包名可能包含版本号后缀。尝试以下命令: ```bash # 安装GCC 7版本的交叉编译工具链(适配Ubuntu 18.04) sudo apt install gcc-7-aarch64-linux-gnu g++-7-aarch64-linux-gnu # 创建符号链接兼容默认名称 sudo ln -s /usr/bin/aarch64-linux-gnu-gcc-7 /usr/bin/aarch64-linux-gnu-gcc sudo ln -s /usr/bin/aarch64-linux-gnu-g++-7 /usr/bin/aarch64-linux-gnu-g++ ``` --- ### **解决方案二:通过交叉编译元包安装** 安装Ubuntu提供的交叉编译元包(可能包含依赖工具链): ```bash sudo apt install crossbuild-essential-arm64 ``` --- ### **解决方案三:手动安装Linaro工具链** #### 步骤1:下载预编译工具链 ```bash # 下载适用于Ubuntu 18.04的Linaro GCC 7.5.0 wget https://releases.linaro.org/components/toolchain/binaries/7.5-2019.12/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz ``` #### 步骤2:解压到系统目录 ```bash sudo tar -xvf gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz -C /opt/ ``` #### 步骤3:配置环境变量 ```bash # 将以下内容添加到~/.bashrc末尾 export PATH=/opt/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin:$PATH # 使配置生效 source ~/.bashrc ``` #### 步骤4:验证安装 ```bash aarch64-linux-gnu-gcc --version # 应显示类似 "Linaro GCC 7.5-2019.12" 的信息 ``` --- ### **解决方案四:直接本地编译(推荐)** 由于Jetson Xavier本身是**ARM64架构**,若你直接在Xavier上编译mjpg-streamer,**无需交叉编译**。请尝试以下操作: ```bash # 进入项目目录 cd ~/Desktop/mjpeg-stream/mjpeg-stream/mjpg-streamer-code-r182/mjpg-streamer # 清除之前的交叉编译配置 make clean # 使用本地编译器重新编译 make CC=gcc ``` --- ### **依赖项修复(openssl问题)** 若编译时报错涉及`openssl`头文件缺失,需安装开发包: ```bash sudo apt install libssl-dev ``` --- ### **关键操作对比表** | 方法 | 适用场景 | 优点 | 缺点 | |-------|---------|------|------| | 旧版包名安装 | 需要快速部署 | 无需下载外部工具链 | 版本较老(GCC 7) | | Linaro工具链 | 需要新编译器 | 可控性强 | 需手动管理路径 | | 本地编译 | 在Jetson上直接运行 | 编译速度更快 | 仅限Xavier本地使用 | --- ### **后续操作建议** 1. **优先尝试本地编译**:除非你有明确的交叉编译需求(例如在x86主机上编译后传输到Xavier),否则直接本地编译更简单可靠。 2. 若必须交叉编译,推荐使用**Linaro工具链**,编译时需指定完整路径: ```bash make CC=/opt/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc ``` --- 如有其他错误信息,请提供完整的编译日志,我会进一步分析!
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

papaofdoudou

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值