Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix pkg-config handling to make cross-compiling work#4430

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
vapier wants to merge3 commits intomatplotlib:masterfromvapier:master
Closed

fix pkg-config handling to make cross-compiling work#4430

vapier wants to merge3 commits intomatplotlib:masterfromvapier:master

Conversation

vapier
Copy link

This series cleans up the pkg-config logic so that cross-compile works properly. There's still some weirdness with the use of freetype-config/libpng-config, but I've ignored that as it only impacts the display and not the actual config/code generation.

When cross-compiling, it is common to set the PKG_CONFIG env var to acustom pkg-config that knows about the target.  Make sure we respectthat just like the standard pkg-config tools suggest (pkg.m4).  If itisn't set, we use the same default as today -- "pkg-config".
The current code always sets PKG_CONFIG_PATH to build paths in / whichbreaks cross-compiling -- things like /usr/lib are for the build system(e.g. x86) and not for the target (e.g. arm).  Since we're adding pathsthat are already the default for pkg-config, there's no point in tryingto be smart here.  Just punt the code.This basically reverts commit101beb9.
@tacaswelltacaswell added this to theproposed next point release milestoneMay 15, 2015
@tacaswell
Copy link
Member

This breaks every travis build because it can not find freetype (although it works in a conda env on arch both with and without their freetype package). I think travis is a pretty 'standard' ubuntu set up so if it does not compile there it probably won't compile on most user systems.

@cgohlke@jbmohler How badly does this break windows?

@jenshnielsen@efiring Does this work on mac?

This PR may require (significant?) documentation on how to 'properly' set up compilers on more-or-less every system.

@mdboom
Copy link
Member

It looks like this removes the fallbacks for when pkg-config isn't found. We definitely need that, because we can't depend on pkg-config being there -- we only want to use it (and give it preference) if it's there and working.

…ableIf we have pkg-config, then there's no need to hardcode the system -I/-Lpaths as the pkg-config files will give us all the info we need.
@vapier
Copy link
Author

i didn't touch the pkg-config fallbacks. the 3rd patch dropped the -I/-L system paths which were always applied. i guess the travis system is broken, but whatever -- i've reworked the 3rd patch so it adds those hardcodes only when pkg-config is not available.

@tacaswell
Copy link
Member

I actually don't know if pkg-config is installed on travis or not, that is probably something we should check and make sure it isnot installed as that is the profile that is going to provide a bigger pain point for us.

@tacaswelltacaswell modified the milestone:2.1 (next point release)Aug 29, 2017
@jklymak
Copy link
Member

Closing as unlikely to be still relevant. Feel free to re-open if I'm mistaken...

@jklymakjklymak closed thisMay 9, 2018
@vapier
Copy link
Author

commit64d8ac6 was merged later which was basically the same as my first commit (although mine used fewer loc).shrug

the other two patches are still relevant. i've rebased them now.

@vapier
Copy link
Author

looks like i don't have the ability to re-open. maybe only project members can do that.

@WeatherGod
Copy link
Member

Strange, I can't either. Go ahead and open a new PR, then.

@jklymak
Copy link
Member

I can't re-open either. I suspect it won't let you re-open if it conflicts? But a new PR against master would be easiest. Sorry to create an inconvenience; I am just trying to weed through old PRs...

@vapier
Copy link
Author

np. i've moved this to#11218 now.

@tacaswell
Copy link
Member

If you have force-pushed to a branch you can not re-open.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@vapier@tacaswell@mdboom@jklymak@WeatherGod@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp