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

./patchApplication.sh #8

Open
ustyui opened this issue Apr 3, 2019 · 5 comments
Open

./patchApplication.sh #8

ustyui opened this issue Apr 3, 2019 · 5 comments

Comments

@ustyui
Copy link

ustyui commented Apr 3, 2019

./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
@JetsonHacksNano
Copy link

Difficult to provide much help since you did not provide any information as to what version of L4T you are using.

@furushchev
Copy link
Contributor

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

@eliabruni
Copy link

eliabruni commented Nov 7, 2019

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!).

@tberriel
Copy link

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.

@eliabruni
Copy link

Makes sense, will try it. Thank you @tberrielITA!

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

5 participants