Skip to content

Backport json build fixes #4956

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

Merged
merged 5 commits into from
Sep 12, 2018
Merged

Backport json build fixes #4956

merged 5 commits into from
Sep 12, 2018

Conversation

chriseth
Copy link
Contributor

This backports the following PRs:

#4160
#4235
#4470
#4528

chfast and others added 5 commits September 12, 2018 18:55
When building on Debian/Ubuntu with install prefix /usr (e.g. in PPA builds) the CMAKE_INSTALL_LIBDIR is resolved to lib/x86_64-linux-gnu. For jsoncpp external project this is never the case because the install prefix is not /usr. Remove multiarch part from libdir if there.
According to cmake documents, we cannot assume CMAKE_INSTALL_LIBDIR is a
relative path. This commit fixes the "no rule to make libjsoncpp.a"
error by passing -DCMAKE_INSTALL_LIBDIR=lib to jsoncpp external project.
@chriseth chriseth requested review from axic and chfast September 12, 2018 17:03
Copy link
Member

@chfast chfast left a comment

Choose a reason for hiding this comment

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

The #4235 effectively replaces #4160 so the later is no-op here. I think you can safely drop it from here unless that makes the backporting easier.

The rest is fine.

@chriseth
Copy link
Contributor Author

I have the impression that the merge back later might be easier if we do not delete it.

@chriseth
Copy link
Contributor Author

This seems to have fixed the problems with the ubuntu build.

@chriseth chriseth merged commit eb1fbaa into develop_v0425 Sep 12, 2018
@axic axic deleted the backport_json_build_fix branch September 18, 2018 10:27
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.

6 participants