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

Segmentation fault #76

Closed
ghost opened this issue Nov 26, 2016 · 4 comments
Closed

Segmentation fault #76

ghost opened this issue Nov 26, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Nov 26, 2016

I'm following the instructions here:
https://developer.dji.com/onboard-sdk/documentation/github-platform-docs/Linux/README.html

I ran the script using this command:
./scripts/build —-build-type Debug -—clean true --lidar-logging OFF

But I get segmentation fault. This is what I got:

[ 72%] Building CXX object osdk-wrapper/CMakeFiles/djiosdk-wrapper.dir/src/LinuxMobile.cpp.o
[ 75%] Building CXX object osdk-wrapper/CMakeFiles/djiosdk-wrapper.dir/src/LinuxCamera.cpp.o
[ 77%] Building CXX object osdk-wrapper/CMakeFiles/djiosdk-wrapper.dir/src/ReadUserConfig.cpp.o
[ 80%] Building CXX object osdk-wrapper/CMakeFiles/djiosdk-wrapper.dir/src/LinuxCleanup.cpp.o
[ 83%] Building CXX object osdk-wrapper/CMakeFiles/djiosdk-wrapper.dir/src/LinuxWaypoint.cpp.o
[ 86%] Building CXX object osdk-wrapper/CMakeFiles/djiosdk-wrapper.dir/src/LinuxFlight.cpp.o
[ 88%] Building CXX object osdk-wrapper/CMakeFiles/djiosdk-wrapper.dir/src/LinuxSetup.cpp.o
Linking CXX static library ../libs/libdjiosdk-wrapper.a
[ 88%] Built target djiosdk-wrapper
Scanning dependencies of target djiosdk-linux-sample-nonblock
[ 91%] Building CXX object sample/Linux/Non-Blocking/CMakeFiles/djiosdk-linux-sample-nonblock.dir/src/main.cpp.o
[ 94%] Building CXX object sample/Linux/Non-Blocking/CMakeFiles/djiosdk-linux-sample-nonblock.dir/src/LinuxInteractiveNonBlocking.cpp.o
Linking CXX executable ../../../bin/djiosdk-linux-sample-nonblock
collect2: error: ld terminated with signal 11 [Segmentation fault]
make[2]: *** [bin/djiosdk-linux-sample-nonblock] Error 1
make[1]: *** [sample/Linux/Non-Blocking/CMakeFiles/djiosdk-linux-sample-nonblock.dir/all] Error 2
make: *** [all] Error 2

I'm using Jetson TX1 with ubuntu 14.04.

@lanyusea
Copy link
Member

@ghost
Copy link
Author

ghost commented Nov 26, 2016

I just realized that this could be my fault. Jetson TX1 uses 64bit ubuntu, i think 32bit might work, let me give it a try.

EDIT: 32bit worked out fine. So onboard-sdk doesn't support 64bit arm

when will there be an update for 64bit arm?

@ghost ghost closed this as completed Nov 27, 2016
@rohitsantdji
Copy link

@aznshodan The only issue with the linking here is the precompiled libraries we provide (precision trajectory missions) - they are only built for 32-bit Ubuntu 14.04 on ARM (and 64-bit Ubuntu 16.04 on x86). In the next release, we will be making it optional for the Linux sample to link with those libraries. You should be able to run all other functionality of the SDK without any issues once that happens.

@ghost
Copy link
Author

ghost commented Nov 29, 2016

ah i see. thank you

pcler pushed a commit that referenced this issue May 7, 2020
…develop

* commit '40923ffa40e3a274d7d359f40233a7d2cb2fe3ab':
  fix:fix usb callback log print format
  fix:fix the sample flag to be original
  feat:add gimbal manager sample in STM32
  fix:fix stm32 running cash issues
This issue was closed.
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

2 participants