Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/librealsense/common/fw-update-helper.cpp:15:10:fatal error:common/fw/D4xx_fw_Image.h:No such file or directory #18

Open
leelaser opened this issue Aug 9, 2019 · 2 comments

Comments

@leelaser
Copy link

leelaser commented Aug 9, 2019

fatal error:common/fw/D4xx_fw_Image.h:No such file or directory

@lights0123
Copy link

I was able to build this when I changed LIBREALSENSE_VERSION in install-librealsense.sh to LIBREALSENSE_VERSION=v2.25.0. I also changed the cmake line to:

/usr/bin/cmake ../ -DBUILD_WITH_CUDA="$USE_CUDA" -DCMAKE_BUILD_TYPE=release -DBUILD_PYTHON_BINDINGS=bool:true -DBUILD_EXAMPLES=OFF -DIMPORT_DEPTH_CAM_FW=OFF -DBUILD_WITH_TM2=OFF

I also changed patches/model-views.patch to:

diff --git a/common/fw-update-helper.cpp b/common/fw-update-helper.cpp
index 4ad9737c..d069f9ce 100644
--- a/common/fw-update-helper.cpp
+++ b/common/fw-update-helper.cpp
@@ -11,13 +11,8 @@

 #include "os.h"

-#ifdef INTERNAL_FW
-#include "common/fw/D4XX_FW_Image.h"
-#include "common/fw/SR3XX_FW_Image.h"
-#else
 #define FW_D4XX_FW_IMAGE_VERSION ""
 #define FW_SR3XX_FW_IMAGE_VERSION ""
-#endif // INTERNAL_FW

 namespace rs2
 {
@@ -45,7 +40,7 @@ namespace rs2
     std::map<int, std::vector<uint8_t>> create_default_fw_table()
     {
         std::map<int, std::vector<uint8_t>> rv;
-
+#if 0
         if ("" != FW_D4XX_FW_IMAGE_VERSION)
         {
             int size = 0;
@@ -61,7 +56,7 @@ namespace rs2
             auto vec = std::vector<uint8_t>(hex, hex + size);
             rv[RS2_PRODUCT_LINE_SR300] = vec;
         }
-
+#endif
         return rv;
     }

diff --git a/common/model-views.cpp b/common/model-views.cpp
index b3c29b97..0d79ffab 100644
--- a/common/model-views.cpp
+++ b/common/model-views.cpp
@@ -3131,6 +3131,7 @@ namespace rs2
                 }
             }
             catch (...) {}
+            std::this_thread::sleep_for(std::chrono::milliseconds(5));
         }
     }

Note that this disables the firmware upgrade feature and all examples, but that's a temporary workaround.

@HomeLH
Copy link

HomeLH commented Nov 12, 2019

use this command
~/librealsense/build$ cmake ..

Details at IntelRealSense/librealsense#4420

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants