关于最新的3.4 Nvidia Jetson NX编译报错

Completed

Comments

3 comments

  • DJI Developer Support
    这个是编译文件路径指定有误,PSDK会尽快修正推到GitHub上。 ![](https://djisdksupport.zendesk.com/attachments/token/Qhh3JcCwcd2mtJAMfHgsIiSxE/?name=image.png)
    0
    Comment actions Permalink

    /Payload-SDK-master/samples/sample_c/platform/linux/nvidia_jetson/hal/hal_uart.c: In function ‘HalUart_Init’:
    /Payload-SDK-master/samples/sample_c/platform/linux/nvidia_jetson/hal/hal_uart.c:88:35: warning: ‘%s’ directive writing up to 127 bytes into a region of size 54 [-Wformat-overflow=]
       88 |     sprintf(systemCmd, "chmod 777 %s", uartName);
          |                                   ^~   ~~~~~~~~
    /Payload-SDK-master/samples/sample_c/platform/linux/nvidia_jetson/hal/hal_uart.c:88:5: note: ‘sprintf’ output between 11 and 138 bytes into a destination of size 64
       88 |     sprintf(systemCmd, "chmod 777 %s", uartName);
          |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    [ 55%] Linking C executable ../../../../../bin/dji_sdk_demo_on_jetson
    -- Found OPUS installed in the system
    --  - Includes: /usr/local/include/opus
    --  - Libraries: /usr/local/lib/libopus.so
    -- Found LIBUSB installed in the system
    --  - Includes: /usr/include/libusb-1.0
    --  - Libraries: /usr/lib/aarch64-linux-gnu/libusb-1.0.so

    dji_sdk_demo_on_jetson_cxx...
    -- Found OpenCV installed in the system, will use it to display image in AdvancedSensing APIs
    --  - Includes: /usr/include/opencv4
    --  - Libraries: opencv_calib3d;opencv_core;opencv_dnn;opencv_features2d;opencv_flann;opencv_gapi;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_photo;opencv_stitching;opencv_video;opencv_videoio
    -- Found FFMPEG installed in the system
    --  - Includes: /usr/local/include
    --  - Libraries: /usr/local/lib/libavcodec.so;/usr/local/lib/libavformat.so;/usr/local/lib/libavutil.so;/usr/local/lib/libswscale.so;/usr/lib/aarch64-linux-gnu/libz.so
    --  - Version:  4.2.7 
    -- Found OPUS installed in the system
    --  - Includes: /usr/local/include/opus
    --  - Libraries: /usr/local/lib/libopus.so
    -- Found LIBUSB installed in the system
    --  - Includes: /usr/include/libusb-1.0
    --  - Libraries: /usr/lib/aarch64-linux-gnu/libusb-1.0.so
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Payload-SDK-master/cmake-build-debug
    /usr/bin/ld: CMakeFiles/dji_sdk_demo_on_jetson.dir/application/main.c.o: in function `main':
    main.c:(.text+0x0): multiple definition of `main'; CMakeFiles/dji_sdk_demo_on_jetson.dir/application/CMakeFiles/3.16.3/CompilerIdC/CMakeCCompilerId.c.o:CMakeCCompilerId.c:(.text+0x0): first defined here
    collect2: error: ld returned 1 exit status
    make[2]: *** [samples/sample_c/platform/linux/nvidia_jetson/CMakeFiles/dji_sdk_demo_on_jetson.dir/build.make:792: bin/dji_sdk_demo_on_jetson] Error 1
    make[1]: *** [CMakeFiles/Makefile2:144: samples/sample_c/platform/linux/nvidia_jetson/CMakeFiles/dji_sdk_demo_on_jetson.dir/all] Error 2
    make: *** [Makefile:130: all] Error 2

    0
    Comment actions Permalink

Please sign in to leave a comment.