On 11/19/2014 11:38 PM, Greg Jung wrote:
> 
> ---------- Forwarded message ----------
> From: *Greg Jung* <[email protected] <mailto:[email protected]>>
> Date: Wed, Nov 19, 2014 at 6:41 PM
> Subject: Re: [Msys2-users] CMAKE execute_process doesn't preserve
> environment variables.
> To: Alexey Pavlov <[email protected] <mailto:[email protected]>>
> 
> 
> Thanks a lot, that works, but then I had to rename
> /usr/bin/pkg-config.exe so it wouldn't be picked to call; even though my
> path is /mingw64/bin:/usr/bin: etc. 
> What's going on there? 

I have the same issue building KiCad.  CMake does not appear to know how
to properly define the default search path for MinGW.  It probably sees
MSYS defined and sets the default search path to /usr which is not what
you want unless you are actually building an msys application.  You can
find out what this path actually is by printing the CMAKE_PREFIX_PATH
variable.  You can override this by calling cmake with
-DCMAKE_PREFIX_PATH=/mingw64.  You shouldn't have to rename
/usr/bin/pkg-config.exe.

> 
> 
> On Wed, Nov 19, 2014 at 5:09 PM, Alexey Pavlov <[email protected]
> <mailto:[email protected]>> wrote:
> 
> 
>     > 20 нояб. 2014 г., в 3:38, Greg Jung <[email protected] 
> <mailto:[email protected]>> написал(а):
>     >
>     > I'm running cmake3.0.1 from an msys2 shell,
>     > it will read the  environment variables as well as if started from msys,
>     > but the reverse isn't working: execute_process lacks PKG_CONFIG_PATH
>     > and so does not find pango
>     >
>     > include(pkg-config)
>     > (0) execute: C:/msys64/usr/bin/pkg-config.exe --version
>     > 0.28
>     > (1): C:/msys64/usr/bin/pkg-config.exe --libs pango
>     >
>     > in shell screen:
>     >  Package pango was not found in the pkg-config search path.
>     > Perhaps you should add the directory containing `pango.pc'
>     > to the PKG_CONFIG_PATH environment variable
>     > No package 'pango’ found
> 
>     You need install mingw version of pkg-config:
>     pacman -S mingw-w64-x86_64-pkg-config
> 
>     Regards,
>     Alexey.
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> 
> 
> 
> _______________________________________________
> Msys2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/msys2-users
> 



------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to