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

fly_qgc_mission: link to json11 #395

Merged
merged 5 commits into from
May 17, 2018
Merged

fly_qgc_mission: link to json11 #395

merged 5 commits into from
May 17, 2018

Conversation

julianoes
Copy link
Collaborator

We need to link to libjson11 as well because libdronecore_mission.so doesn't include it.

@JonasVautherin any better idea? Or should we include json11 inside libdronecore.a like tinyxml2 to prevent this?

Fixes #381.

We need to link to libjson11 as well because libdronecore_mission.so
doesn't include it.
@hamishwillee
Copy link
Collaborator

Is json present by default on machines or will library need to be installed (so it can be linked). Or to put it another way, is there an extra step that needs to be added to run this example?

@JonasVautherin
Copy link
Collaborator

Isn't json11 supposed to be statically linked to libdronecore_mission? At least it is for iOS. For which platform is this fix?

@julianoes
Copy link
Collaborator Author

@JonasVautherin this fix is for macOS.

@JonasVautherin
Copy link
Collaborator

Are you sure you updated your submodules? It should be in github.com/dronecore/json11. I believe it works for me, but I need to try it again.

@julianoes
Copy link
Collaborator Author

Are you sure you updated your submodules?

Let me check.

This fixes the issue where json11 symbols were not included in the .a
plugin library files. When the plugins are compiled as dynamic libs, the
needed symbols from libjson11.a are included.

This means that the symbols will still be missing for Android and iOS,
however, the functionality is currently not needed there.
Copy link
Collaborator

@JonasVautherin JonasVautherin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about the install patch in the fork, but as I already mentioned, I don't really know how the whole install thing works yet. I guess it does it for now!

We should not need to link to json11 in the example because the symbols
are already included in dronecore_mission.so.
@julianoes julianoes merged commit 3c282b5 into develop May 17, 2018
@julianoes julianoes deleted the fix-mission-example branch May 17, 2018 17:20
rt-2pm2 pushed a commit to rt-2pm2/DronecodeSDK that referenced this pull request Nov 27, 2018
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

Successfully merging this pull request may close these issues.

3 participants