[Mesa-dev] [PATCH kmscube 3/3] meson build support (v2)

Rob Clark robdclark at gmail.com
Mon Mar 27 11:50:57 UTC 2017


On Mon, Mar 27, 2017 at 7:37 AM, Fabio Estevam <festevam at gmail.com> wrote:
> Hi Rob,
>
> On Sun, Mar 26, 2017 at 10:59 AM, Rob Clark <robdclark at gmail.com> wrote:
>> Figured I should figure out what this meson stuff is all about.  After a
>> bit of hunting around to find examples to look at (and interruptions) it
>> took maybe ~1hr to convert (for someone who never looked at meson
>> before).  The build speed is definitely faster even after Emil's auto-
>> tools improvements:
>>
>> meson:
>>         real    0m1.310s
>>         user    0m2.069s
>>         sys     0m0.459s
>>
>> autotools:
>>         real    0m4.489s
>>         user    0m3.754s
>>         sys     0m0.731s
>>
>> (with gst / video-cube enabled, fresh build in either case so it is
>> including the time spent compiling .c files in both cases)
>>
>> Signed-off-by: Rob Clark <robdclark at gmail.com>
>
> I got the following build error when applying this patch:
>
>   CC       kmscube-gst-decoder.o
> gst-decoder.c: In function ‘buf_to_fd’:
> gst-decoder.c:189:40: error: ‘GBM_FORMAT_R8’ undeclared (first use in
> this function)
>   bo = gbm_bo_create(gbm->dev, size, 1, GBM_FORMAT_R8, GBM_BO_USE_LINEAR);
>                                         ^
> gst-decoder.c:189:40: note: each undeclared identifier is reported
> only once for each function it appears in
> Makefile:613: recipe for target 'kmscube-gst-decoder.o' failed
> make: *** [kmscube-gst-decoder.o] Error 1

hmm, GBM_FORMAT_R8 might be kind of newer..  probably the build system
needs to check for a minimum gbm version

at any rate, newer mesa required

BR,
-R


More information about the mesa-dev mailing list