dji-sdk / Onboard-SDK

DJI Onboard SDK Official Repository
https://github.com/dji-sdk/Onboard-SDK
Other
915 stars 632 forks source link

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

Closed highfreq closed 2 years ago

highfreq commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

Just take the flight control sample as an example (copy telemetry CMakeLists.txt from github: https://github.com/dji-sdk/Onboard-SDK/issues/770)

update the CMakeLists.txt Compile: ​ ​​

update the source code:camera_manager_sync_sample.cpp

°°°

highfreq commented 2 years ago

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

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

makk521 commented 4 months ago

where can i add this "${ONBOARDSDK_SOURCE}/../sample/core/src/flight_sample.cpp" ? In include_directories or other?

makk521 commented 4 months ago

where can i add this "${ONBOARDSDK_SOURCE}/../sample/core/src/flight_sample.cpp" ? In include_directories or other?