Qt for Jetson Nano - Qt 5.15 Cross Compilation Development Environment on Ubuntu Virtual Machine

Поделиться
HTML-код
  • Опубликовано: 9 сен 2024

Комментарии • 22

  • @MrMihailnt09
    @MrMihailnt09 3 года назад +3

    What about "Failed to load EGL device integration " error on 53:38 ? How do you fix it?

    • @abhijeet6989
      @abhijeet6989 7 месяцев назад

      Same here, any solution ?

  • @mohamedhelmy3069
    @mohamedhelmy3069 Год назад

    Why CMake doesn't work I get the following errors

  • @nhungpham6770
    @nhungpham6770 3 года назад +1

    Hello, could you share your link to the files and the ./configure command needed? I follow your steps but I get serious errors when trying to configure the source code. Thanks

  • @sahilpawaskar5512
    @sahilpawaskar5512 2 года назад +1

    Is it possible some how that macbook Air M1 can be use an monitor for Jetson board ?
    Please reply I am new to this field.

  • @aaronlee5749
    @aaronlee5749 2 года назад

    thanks for the video, but how do you get rid of the second mouse? by the way, if i deploy and execute the application right from the nano i can only see 1 mouse pointer but it does not seem to be able to interact with the application. Can you provide suggestion?

  • @ponnyao-ek6pl
    @ponnyao-ek6pl 5 месяцев назад

    I sincerely ask God for help. Thank you.I put my jetson orin through rsync and put /usr and /lib into ~/orin/sysroot under wsl ubuntu, and then cross-compile my application, and an error occurred

    • @ponnyao-ek6pl
      @ponnyao-ek6pl 5 месяцев назад

      orinCroosTool.cmake
      cmake_minimum_required(VERSION 3.10)
      include_guard(GLOBAL)
      # Set the system name and processor for cross-compilation
      set(CMAKE_SYSTEM_NAME Linux)
      set(CMAKE_SYSTEM_PROCESSOR arm)
      # Set the target sysroot and architecture
      set(TARGET_SYSROOT /home/yao/orin/sysroot)
      set(TARGET_ARCHITECTURE aarch64-linux-gnu)
      set(CMAKE_SYSROOT ${TARGET_SYSROOT})
      set(CMAKE_FIND_ROOT_PATH ${TARGET_SYSROOT})
      set(CMAKE_INCLUDE_PATH ${TARGET_SYSROOT}/usr/include)
      set(CMAKE_INCLUDE_PATH ${TARGET_SYSROOT}/usr/include/aarch64-linux-gnu)
      set(CMAKE_LIBRARY_PATH ${TARGET_SYSROOT}/usr/lib)
      # Add library directories
      list(APPEND CMAKE_LIBRARY_PATH "${TARGET_SYSROOT}/usr/lib")
      list(APPEND CMAKE_LIBRARY_PATH "${TARGET_SYSROOT}/lib/aarch64-linux-gnu")
      list(APPEND CMAKE_LIBRARY_PATH "${TARGET_SYSROOT}/usr/lib/aarch64-linux-gnu")
      set(CMAKE_INSTALL_RPATH "${TARGET_SYSROOT}/lib/aarch64-linux-gnu")
      list(APPEND CMAKE_RPATH_LINK_PATH "${TARGET_SYSROOT}/lib/aarch64-linux-gnu")
      # Add RPATH link directories
      list(APPEND CMAKE_RPATH_LINK_PATH "${TARGET_SYSROOT}/usr/lib")
      list(APPEND CMAKE_RPATH_LINK_PATH "${TARGET_SYSROOT}/usr/lib/aarch64-linux-gnu")
      list(APPEND CMAKE_RPATH_LINK_PATH "${TARGET_SYSROOT}/lib/aarch64-linux-gnu")
      # Set paths for CUDA libraries
      set(CUDA_INCLUDE_DIR ${TARGET_SYSROOT}/usr/local/cuda/include)
      set(CUDA_LIB_DIR ${TARGET_SYSROOT}/usr/local/cuda/lib64)
      # Configure the pkg-config environment variables
      set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${CMAKE_SYSROOT}/usr/lib/${TARGET_ARCHITECTURE}/pkgconfig")
      set(ENV{PKG_CONFIG_LIBDIR} "${TARGET_SYSROOT}/usr/lib/pkgconfig:${TARGET_SYSROOT}/usr/share/pkgconfig:${CMAKE_SYSROOT}/usr/lib/${TARGET_ARCHITECTURE}/pkgconfig:${CMAKE_SYSROOT}/usr/lib/pkgconfig")
      set(ENV{PKG_CONFIG_SYSROOT_DIR} "${CMAKE_SYSROOT}")
      # Set the C and C++ compilers
      set(tools /home/yao/orin/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu)
      set(CMAKE_C_COMPILER ${tools}/bin/${TARGET_ARCHITECTURE}-gcc)
      set(CMAKE_CXX_COMPILER ${tools}/bin/${TARGET_ARCHITECTURE}-g++)
      # Define additional compiler flags
      set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -isystem=${TARGET_SYSROOT}/usr/include -isystem=${TARGET_SYSROOT}/usr/local/include -isystem=${TARGET_SYSROOT}/usr/include/${TARGET_ARCHITECTURE}")
      set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}")
      # Configure CMake find root path modes
      set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
      set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
      set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
      set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
      # Set the install RPATH use and build RPATH
      set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
      set(CMAKE_BUILD_RPATH ${TARGET_SYSROOT})
      # Append to CMake library and prefix paths
      list(APPEND CMAKE_LIBRARY_PATH ${CMAKE_SYSROOT}/usr/lib/${TARGET_ARCHITECTURE})
      list(APPEND CMAKE_PREFIX_PATH "${CMAKE_SYSROOT}/usr/lib/${TARGET_ARCHITECTURE}/cmake")

    • @ponnyao-ek6pl
      @ponnyao-ek6pl 5 месяцев назад

      CMakeLists.txt
      cmake_minimum_required(VERSION 3.10)
      project(yolov5-tensorrt VERSION 0.1 DESCRIPTION "Real-time object detection with YOLOv5 and TensorRT")
      set(CMAKE_CXX_STANDARD 17)
      set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -g -Wall -Wextra -Wno-deprecated -fPIC")
      set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -g -pthread")
      set(CMAKE_INCLUDE_CURRENT_DIR ON)
      set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
      if(NOT DEFINED CMAKE_LIBRARY_OUTPUT_DIRECTORY)
      set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
      endif()
      find_package(OpenCV REQUIRED)
      # find_package(CUDA REQUIRED)
      include_directories(include)
      file(GLOB SOURCES "src/*.cc")
      add_executable(camera_detect
      main_camera.cc
      ${SOURCES}
      )
      target_include_directories(camera_detect PUBLIC
      ${OpenCV_INCLUDE_DIRS}
      ${CUDA_INCLUDE_DIR}
      )
      target_link_libraries(camera_detect
      nvinfer
      nvonnxparser
      ${CUDA_LIB_DIR}
      ${OpenCV_LIBRARIES}
      )

    • @ulasdikme7307
      @ulasdikme7307  5 месяцев назад

      What is the error?

  • @windloid
    @windloid 3 года назад

    Thanks for the video. But, following the step, when I looked at the directory with ls /opt/qt5jnano/sysroot/usr/local at 42:33. There was nothing. Am I missing something?

    • @ulasdikme7307
      @ulasdikme7307  3 года назад

      Maybe you can share the history then I can check.

    • @windloid
      @windloid 3 года назад

      @@ulasdikme7307 Thank you for your reply. I tried once again from the beginning. Then, it worked good. By the way, what did you try to explain later at 52:03?
      Is that what makes two mouse pointers?
      Anyway, again I thank you that I could experience cross-compilation in NANO with this video.

    • @whiteman14
      @whiteman14 2 года назад

      forgot to execute 'make install'

  • @MrAlexeyVikt
    @MrAlexeyVikt 3 года назад

    Error (36:00)
    /opt/qt5jnano/qt-everywhere-src-5.15.0/qtbase/configure: 484: shift: can't shift that many

  • @ognjen11
    @ognjen11 3 года назад

    Hello, could you elaborate on how you get rid of the second mouse cursor at the end? Thanks

    • @MrMihailnt09
      @MrMihailnt09 3 года назад

      I'am using NoMachine for remote access at Jetson

  • @riounathalie2539
    @riounathalie2539 7 месяцев назад

    Hello Ulas, I no longer see our exchange concerning my problem. I tried docker but it is not satisfactory because the process is too long, I need to debug my windows quickly

    • @ulasdikme7307
      @ulasdikme7307  7 месяцев назад

      Hi, you can still compile it with vm, but yes docker takes muc longer time you need more ram. But it is easier than solution with vm as long as you have faster computer. Btw I did not show how to debug application with docker? I just showed how to compile? You can still build your development environment with vm using tar files which are produced by docker. If you see last lines in the dockerfile you will see 3 tar files, if you extract them in vm you will have old vm based development environment.

  • @niralsoni
    @niralsoni 3 года назад

    Hi Ulas do you have document for the same?