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
Help creating CMakeList.txt for own project #770
Comments
Agent comment from kyle.cai in Zendesk ticket #47358: Thank you for contacting DJI. The lib: libdji-linker.a should be added(linked) to your project. Thank you for your understanding and support, hope you have a nice day. Best Regards, °°° |
Dear Agent,
It helped but I have now these errors:
Which library I should also add to the CMakeList.txt? |
Can you help me? |
Agent comment from kyle.cai in Zendesk ticket #47358: Thank you for contacting DJI. Thank you for your understanding and support, hope you have a nice day. Best Regards, °°° |
Dear, Agent. Now it works. Thank you!
|
The proper CMakeList.txt for creating your own project (example based on telemetry sample):
|
Tested you CMakelists.txt for telemetry and it works, do you know what adjustments should be done to have it working for flight-control ?? Scanning dependencies of target djiosdk-flightcontrol-sample A bunch of undefined references to FlightSample. |
Please help me in linking what is missing when compilint only flight-control. 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. |
Dear Community.
I would like to compile my own project. I have error with
**make**
.cmake ..
works properly.I tried to compile the example in /Onboard-SDK/sample/platform/telemetry.
I did mkdir build and
cd build
in telemetry directory.This is my CMakeList.txt
This is the result after
make
I often have
[100%] Linking CXX executable djiosdk-telemetry-sample
.The main problem is with "undefined reference".
I create CMakeList.txt according to: https://developer.dji.com/onboard-sdk/documentation/development-workflow/integrate-sdk.html
What I should do?
The text was updated successfully, but these errors were encountered: