diff --git a/common/fw/CMakeLists.txt b/common/fw/CMakeLists.txt index 5bd018dce6..b29d9d6881 100644 --- a/common/fw/CMakeLists.txt +++ b/common/fw/CMakeLists.txt @@ -44,6 +44,13 @@ set(L53X_FW_URL "${REALSENSE_FIRMWARE_URL}/Releases/L5xx/FW") add_library(${PROJECT_NAME} STATIC empty.c) +# disable link time optimization for fw by adding -fno-lto to disable -flto flag +# jammy debian has build errors without it +if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") + message(STATUS "disable link time optimization for fw project") + target_compile_options(${PROJECT_NAME} PRIVATE -fno-lto) +endif() + if (MSVC) # lib.exe can't handle multiple .res files, so include them in one. # even then, the linker won't grab a .res out of a .lib object, so it needs to be explicitly listed diff --git a/doc/distribution_linux.md b/doc/distribution_linux.md index e842f0a2f4..d2dd07e980 100644 --- a/doc/distribution_linux.md +++ b/doc/distribution_linux.md @@ -1,8 +1,8 @@ # Linux Distribution #### Using pre-build packages -**Intel® RealSense™ SDK 2.0** provides installation packages for Intel X86/AMD64-based Debian distributions in [`dpkg`](https://en.wikipedia.org/wiki/Dpkg) format for Ubuntu 16/18/20 [LTS](https://wiki.ubuntu.com/LTS). -The Realsense [DKMS](https://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support) kernel drivers package (`librealsense2-dkms`) supports Ubuntu LTS kernels 4.4, 4.8, 4.10, 4.13, 4.15, 4.18*, 5.0*, 5.3* and 5.4. Please refer to [Ubuntu Kernel Release Schedule](https://wiki.ubuntu.com/Kernel/Support) for further details. +**Intel® RealSense™ SDK 2.0** provides installation packages for Intel X86/AMD64-based Debian distributions in [`dpkg`](https://en.wikipedia.org/wiki/Dpkg) format for Ubuntu 16/18/20/22 [LTS](https://wiki.ubuntu.com/LTS). +The Realsense [DKMS](https://en.wikipedia.org/wiki/Dynamic_Kernel_Module_Support) kernel drivers package (`librealsense2-dkms`) supports Ubuntu LTS kernels 4.4, 4.8, 4.10, 4.13, 4.15, 4.18*, 5.0*, 5.3*, 5.4, 5.13 and 5.15. Please refer to [Ubuntu Kernel Release Schedule](https://wiki.ubuntu.com/Kernel/Support) for further details. #### Configuring and building from the source code While we strongly recommend to use DKMS package whenever possible, there are certain cases where installing and patching the system manually is necessary: diff --git a/doc/installation.md b/doc/installation.md index e148bac207..63ed4c371c 100644 --- a/doc/installation.md +++ b/doc/installation.md @@ -66,7 +66,7 @@ The scripts and commands below invoke `wget, git, add-apt-repository` which may 4. Build and apply patched kernel modules for:
* **Ubuntu 20/22 (focal/jammy) with LTS kernel 5.13, 5.15 **
`./scripts/patch-realsense-ubuntu-lts-hwe.sh`
- * **Ubuntu 14/16/18/20 with LTS kernel**
+ * **Ubuntu 14/16/18/20 with LTS kernel (< 5.13) **
`./scripts/patch-realsense-ubuntu-lts.sh`
* **Ubuntu with Kernel 4.16**
`./scripts/patch-ubuntu-kernel-4.16.sh`
diff --git a/package.xml b/package.xml index a40ce3bb77..61d2cd7532 100644 --- a/package.xml +++ b/package.xml @@ -12,11 +12,11 @@ Library for controlling and capturing data from the Intel(R) RealSense(TM) D400 devices. - LibRS ROS Team + LibRealSense ROS Team https://github.com/IntelRealSense/librealsense/ - LibRS ROS Team + LibRealSense ROS Team Apache License, Version 2.0 diff --git a/readme.md b/readme.md index cd674f12c5..16aa0dac87 100644 --- a/readme.md +++ b/readme.md @@ -55,7 +55,7 @@ The librealsense port in vcpkg is kept up to date by Microsoft team members and | **[Depth Quality Tool](./tools/depth-quality)** | This application allows you to test the camera’s depth quality, including: standard deviation from plane fit, normalized RMS – the subpixel accuracy, distance accuracy and fill rate. You should be able to easily get and interpret several of the depth quality metrics and record and save the data for offline analysis. |[**Depth.Quality.Tool.exe**](https://github.com/IntelRealSense/librealsense/releases) | | **[Debug Tools](./tools/)** | Device enumeration, FW logger, etc as can be seen at the tools directory | Included in [**Intel.RealSense.SDK.exe**](https://github.com/IntelRealSense/librealsense/releases)| | **[Code Samples](./examples)** |These simple examples demonstrate how to easily use the SDK to include code snippets that access the camera into your applications. Check some of the [**C++ examples**](./examples) including capture, pointcloud and more and basic [**C examples**](./examples/C) | Included in [**Intel.RealSense.SDK.exe**](https://github.com/IntelRealSense/librealsense/releases) | -| **[Wrappers](https://github.com/IntelRealSense/librealsense/tree/development/wrappers)** | [Python](./wrappers/python), [C#/.NET](./wrappers/csharp), [Node.js](./wrappers/nodejs) API, as well as integration with the following 3rd-party technologies: [ROS](https://github.com/intel-ros/realsense/releases), [ROS2](https://github.com/intel/ros2_intel_realsense), [LabVIEW](./wrappers/labview), [OpenCV](./wrappers/opencv), [PCL](./wrappers/pcl), [Unity](./wrappers/unity), [Matlab](./wrappers/matlab), [OpenNI](./wrappers/openni2), [UnrealEngine4](./wrappers/unrealengine4) and more to come. | | +| **[Wrappers](https://github.com/IntelRealSense/librealsense/tree/development/wrappers)** | [Python](./wrappers/python), [C#/.NET](./wrappers/csharp), [Node.js](./wrappers/nodejs) API, as well as integration with the following 3rd-party technologies: [ROS1](https://github.com/IntelRealSense/realsense-ros/tree/ros1-legacy), [ROS2](https://github.com/IntelRealSense/realsense-ros/tree/ros2-development), [LabVIEW](./wrappers/labview), [OpenCV](./wrappers/opencv), [PCL](./wrappers/pcl), [Unity](./wrappers/unity), [Matlab](./wrappers/matlab), [OpenNI](./wrappers/openni2), [UnrealEngine4](./wrappers/unrealengine4) and more to come. | | ## Ready to Hack! diff --git a/scripts/patch-realsense-ubuntu-lts-hwe.sh b/scripts/patch-realsense-ubuntu-lts-hwe.sh index 13fcb97f6a..2671528e5e 100755 --- a/scripts/patch-realsense-ubuntu-lts-hwe.sh +++ b/scripts/patch-realsense-ubuntu-lts-hwe.sh @@ -125,7 +125,7 @@ then kernel_git_tag=$(git ls-remote --tags origin | grep "${kernel_full_num}\." | grep '[^^{}]$' | head -n 1 | awk -F/ '{print $NF}') fi echo -e "\e[32mFetching Ubuntu LTS tag \e[47m${kernel_git_tag}\e[0m \e[32m to the local kernel sources folder\e[0m" - git fetch origin tag ${kernel_git_tag} --no-tags + git fetch origin tag ${kernel_git_tag} --no-tags --depth 1 # Verify that there are no trailing changes., warn the user to make corrective action if needed if [ $(git status | grep 'modified:' | wc -l) -ne 0 ]; @@ -153,7 +153,7 @@ then if [ $reset_driver -eq 1 ]; - then + then echo -e "\e[43mUser requested to rebuild and reinstall ubuntu-${ubuntu_codename} stock drivers\e[0m" else # Patching kernel for RealSense devices diff --git a/scripts/patch-realsense-ubuntu-lts.sh b/scripts/patch-realsense-ubuntu-lts.sh index 255a490026..ed9a0ee37d 100755 --- a/scripts/patch-realsense-ubuntu-lts.sh +++ b/scripts/patch-realsense-ubuntu-lts.sh @@ -116,7 +116,7 @@ then kernel_full_num=$(echo $LINUX_BRANCH | cut -d '-' -f 1,2) kernel_git_tag=$(git ls-remote --tags origin | grep "${kernel_full_num}\." | grep '[^^{}]$' | tail -n 1 | awk -F/ '{print $NF}') echo -e "\e[32mFetching Ubuntu LTS tag \e[47m${kernel_git_tag}\e[0m \e[32m to the local kernel sources folder\e[0m" - git fetch origin tag ${kernel_git_tag} --no-tags + git fetch origin tag ${kernel_git_tag} --no-tags --depth 1 # Verify that there are no trailing changes., warn the user to make corrective action if needed if [ $(git status | grep 'modified:' | wc -l) -ne 0 ]; @@ -144,7 +144,7 @@ then if [ $reset_driver -eq 1 ]; - then + then echo -e "\e[43mUser requested to rebuild and reinstall ubuntu-${ubuntu_codename} stock drivers\e[0m" else # Patching kernel for RealSense devices