./patchApplication.sh
ustyui opened this issue · 5 comments
./patchApplication.sh cannot be run correctly.
Applying Model-Views Patch
patch: **** Can't open patch file /patches/model-views.patch : No such file or directory
Applying Incomplete Frames Patch
patch: **** Can't open patch file /patches/incomplete-frame.patch : No such file or directory
Difficult to provide much help since you did not provide any information as to what version of L4T you are using.
As far as I can guess, the environment variable INSTALL_DIR
is not set when you run patchApplication.sh
(which is not set by default.)
You can try as followings:
cd path/to/buildLibrealsense2Xavier
INSTALL_DIR=$(pwd)
cd path/to/librealsense
./patchApplication.sh
Hey, to continue on this, I fixed the INSTALL_DIR issue, hower I still get an error:
path/to/realsense/buildLibrealsense2Xavier$ ./patchApplication.sh
Applying Model-Views Patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|diff --git a/common/model-views.cpp b/common/model-views.cpp
|index eaeac779..ad246523 100644
|--- a/common/model-views.cpp
|+++ b/common/model-views.cpp
How do I point the script to the right file to be patched?
Thanks (and great work!).
Hey @eliabruni , as you can see on the code posted by furushchev, to avoid that error you have to run the ./patchApplication.sh script on the librealsense folder, that should be the one you want to patch.
Makes sense, will try it. Thank you @tberrielITA!