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

Travis Build fails wanting PKG_CONFIG_ALLOW_CROSS=1 #79

Open
mmstick opened this issue Jun 12, 2017 · 2 comments
Open

Travis Build fails wanting PKG_CONFIG_ALLOW_CROSS=1 #79

mmstick opened this issue Jun 12, 2017 · 2 comments

Comments

@mmstick
Copy link

mmstick commented Jun 12, 2017

Having an odd issue where Travis fails to build with the error:

Cross compilation detected. Use PKG_CONFIG_ALLOW_CROSS=1 to override

Even though I have it specified as a global environment variable in the file:

env:
  global:
    - CRATE_NAME=tv-renamer
    - GTK=3.18
    - PKG_CONFIG_ALLOW_CROSS=1
    - LD_LIBRARY_PATH="$HOME/local/lib/"
    - PKG_CONFIG_PATH="$HOME/local/lib/pkgconfig"

Any ideas on how to get this working?

@japaric
Copy link
Owner

japaric commented Jun 14, 2017

Cross doesn't pass the host environment variables to the docker image that does the build. You can whitelist the ones you want to pass through.

@vitiral
Copy link

vitiral commented Sep 5, 2017

if there were a way to set environment variables, that would be really helpful :)

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

No branches or pull requests

3 participants