Hide Forgot
Description of problem: CMake cannot be used to configure realsense(2) because of wrong import targets. The same issue was present in Fedora 31 (and possibly before that, too). Version-Release number of selected component (if applicable): 2.31.0-2.fc32 How reproducible: Always Steps to Reproduce: 1. setup a simple CMake project 2. find_package(realsense2) Actual results: Running /usr/bin/cmake /home/chris/workspace/uni/realstream '-GCodeBlocks - Ninja' -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_CXX_COMPILER:STRING=/usr/lib64/ccache/g++ -DCMAKE_C_COMPILER:STRING=/usr/lib64/ccache/gcc -DCMAKE_PREFIX_PATH:STRING= -DQT_QMAKE_EXECUTABLE:STRING=/usr/bin/qmake-qt5.sh in /home/chris/workspace/uni/build-realstream-Desktop-Debug. CMake Error at /usr/lib64/cmake/realsense2/realsense2Targets.cmake:83 (message): The imported target "realsense2::realsense-file" references the file "/usr/lib64/librealsense-file.a" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib64/cmake/realsense2/realsense2Targets.cmake" but not all the files it references. Call Stack (most recent call first): /usr/lib64/cmake/realsense2/realsense2Config.cmake:45 (include) src/lib/CMakeLists.txt:35 (find_package) Expected results: CMake should not try to import the static lib as that is not installed by the Fedora -devel package.
Thank you, I was carrying the same patch locally. Will you backport this fix to F32 and F31?
Yes, it's currently building for F32 and for the module, which contains packages for all Fedora releases. I'll follow up with F31. I'll post the updates here.
FEDORA-2020-c822954c9c has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-c822954c9c
FEDORA-2020-c78e6369ad has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-c78e6369ad
FEDORA-MODULAR-2020-cbfd215e18 has been submitted as an update to Fedora 32 Modular. https://bodhi.fedoraproject.org/updates/FEDORA-MODULAR-2020-cbfd215e18
FEDORA-MODULAR-2020-e2cb3b53af has been submitted as an update to Fedora 30 Modular. https://bodhi.fedoraproject.org/updates/FEDORA-MODULAR-2020-e2cb3b53af
FEDORA-2020-c822954c9c has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-c822954c9c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-c822954c9c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-c78e6369ad has been pushed to the Fedora 31 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-c78e6369ad` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-c78e6369ad See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-MODULAR-2020-cbfd215e18 has been pushed to the Fedora 32 Modular testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-MODULAR-2020-cbfd215e18 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-MODULAR-2020-d9b792b28d has been pushed to the Fedora 31 Modular testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-MODULAR-2020-d9b792b28d See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-MODULAR-2020-e2cb3b53af has been pushed to the Fedora 30 Modular testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-MODULAR-2020-e2cb3b53af See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-c822954c9c has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-MODULAR-2020-d9b792b28d has been pushed to the Fedora 31 Modular stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-MODULAR-2020-cbfd215e18 has been pushed to the Fedora 32 Modular stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-MODULAR-2020-e2cb3b53af has been pushed to the Fedora 30 Modular stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2020-c78e6369ad has been pushed to the Fedora 31 stable repository. If problem still persists, please make note of it in this bug report.