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

undefined reference to `FlightSample::FlightSample(DJI::OSDK::Vehicle*)' #856

Closed
highfreq opened this issue Dec 9, 2021 · 4 comments
Closed

Comments

@highfreq
Copy link

highfreq commented Dec 9, 2021

Please help me in linking what is missing when compilint only flight-control.
Cmake works but when i compile i get the error : undefined reference to `FlightSample::FlightSample(DJI::OSDK::Vehicle*)'

Could you please let me know what to add to CMakeLists.txt to have it working?

Please DO NOT link me to a useless github or forum answer, i already went troygh all of them and didn't find an answer.

@dji-dev
Copy link
Contributor

dji-dev commented Dec 9, 2021

Agent comment from DJI SDK in Zendesk ticket #57604:

尊敬的开发者,感谢您联系DJI 大疆创新
由于github不是我们主要的咨询渠道,您的问题可能跟进不及时。我们建议您通过填写表单( https://djisdksupport.zendesk.com/hc/zh-cn/requests/new )向我们反馈问题。或者您也可以在论坛发帖,与其它开发者交流。论坛链接:https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

Dear developer, thank you for contacting DJI.
Since github is not our main consultation channel, your questions may not be followed up in time. We recommend that you fill in the form (https://djisdksupport.zendesk.com/hc/en-us/requests/new) to report problems to us. Or you can post in the forum to communicate with other developers. Forum link: https://djisdksupport.zendesk.com/hc/zh-cn/community/topics

°°°

@highfreq
Copy link
Author

highfreq commented Dec 9, 2021

I posted this question on every dji tech forum and i can't get an answer whatsoever. I think it is just some link missing in CMakeLists.txt but it looks like a secret and i can't get any help.

@dji-dev
Copy link
Contributor

dji-dev commented Dec 9, 2021

Agent comment from kyle.cai in Zendesk ticket #57604:


Just take the flight control sample as an example (copy telemetry CMakeLists.txt from github: #770)

update the CMakeLists.txt

Compile:
​​

update the source code:camera_manager_sync_sample.cpp



°°°

@highfreq
Copy link
Author

highfreq commented Dec 9, 2021

Without making it longer than it needs to be....................just needed to add the following:

${ONBOARDSDK_SOURCE}/../sample/core/src/flight_sample.cpp

@dji-kyle dji-kyle reopened this Dec 10, 2021
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