[Piglit] [PATCH 2/4] cmake: Don't rely on pkg-config for all Windows builds.
Emil Velikov
emil.l.velikov at gmail.com
Mon Dec 15 13:44:22 PST 2014
On 15/12/14 20:09, Jose Fonseca wrote:
> On 15/12/14 19:47, Emil Velikov wrote:
>> On 15/12/14 12:19, Jose Fonseca wrote:
>>> From: José Fonseca <jfonseca at vmware.com>
>>>
>>> Instead of just MSVC builds.
>>>
>>> Because pkg-config is not commonly available when compiling natively on
>>> Windows, and gives the wrong results (the host package instead of target
>>> package) when cross-compiling to Windows.
>> Short version:
>> Also might be worth checking Dylan's fixes (touching both waffle and
>> piglit). And then build on top if needed.
>>
>>
>> Longer version:
>> Don't know about native non-msvc builds, but cygwin had pkg-config which
>> was working fine. I've not tried waffle or piglit with cygwin.
>>
>> The cross-compiling issue is likely to be caused by
>> something/miss-configured in your "toolchain" file. Take a look/install
>> the mingw-w64-cmake [1].
>>
>>
>> Cheers,
>> Emil
>>
>> [1]
>> https://urldefense.proofpoint.com/v2/url?u=https-3A__aur.archlinux.org_packages_mingw-2Dw64-2Dcmake_&d=AAIDaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=zfmBZnnVGHeYde45pMKNnVyzeaZbdIqVLprmZCM2zzE&m=jZIn8FKasi0habXCHbsoRS823LO0ZFGCba4GIDrlUBw&s=uISto3_loppZ5FFgWi7vZfrdad1Vlw1IiRXRCruxjMo&e=
>>
>>
>
>
> I did but it couldn't make it work for me. pkg-config insists on
> picking the system's waffle-1.pc somehow.
>
> Does this actually work for you?
>
Yes it did. I recall having two successful cross-builds of the whole of
piglit around the time of the GSoC midterm. One with glut and another
one with waffle.
Things may have changed since then, but I'll check within the next
couple of days.
-Emil
More information about the Piglit
mailing list