-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Use native build instead of x86/jetson target #31
base: main
Are you sure you want to change the base?
Conversation
Discussion: [ Ignore msposd_jetson for gs on jetson orin OpenIPC#29 ](OpenIPC#29)
5f539b2
to
31e8542
Compare
I like this more !
|
@henkwiedig Please review (I just do it first time, consulting https://docs.github.com/en/actions), I don't know how to trigger the test. But those script and binary name should be simple for review. And PLEASE send me a link if there is any steps for local test. |
Testbuild looks fine, hi3536dv100_fpv doesn't build locally as well with main. So no regression for that. What about the DISPLAY envvar ? I now testest more then 3 ways to set this on remote ssh session. |
If you don't use it, then a segfault when launching from ssh, and no warning, no feedback. |
Yes, but why setting this in the application, especially forcefully overwrite it ? |
Not forcefully.
That's what I consider.
Then to provide code's robustness of NOT properly setting env, casuing segfault issue. |
|
This is what we mean: if we don't have this env, it will segfault. If there is no display set, then we simply use default display. Lines 79 to 85 in cabc6b8
|
this
is equivalant to this:
hence the "0". from
Edit: we can remove the ifdef in my opinion |
You can do the test. If you don't have this code. It'll be a segfault launching from ssh. EDIT: Or did you mean use |
Yes just use the non overwrite option from setenv. "0" as thid argument. Then the whole "if" part is useless. All boils down to one line ! More readable ;) |
@henkwiedig It doesn't work on jetson. Can you check if the below is what we meant to do. If I didn't mis-understand, please let me know about setenv I think lanuching from remote ssh(putty) mgiht be different or something about the understanding of the posix API.
|
I assume _DEBUG_x86 was set durting compile time ? |
@henkwiedig what this MACRO for? |
@henkwiedig I'll left BTW, it works on jetson, should work on x86 either, as posix api. EDIT: add _DEBUG_x86 MACRO optimization & clarification #33 for |
Discussion: Ignore msposd_jetson for gs on jetson orin #29