Open jku opened 7 years ago
Thanks for your rising issue, @jku . But I can’t reproduce the issue in my Yocto environment. Compile libyami-utils with –disable-x11 and --enable-tests-gles is ok on my side. The environment as followings: Poky: master: 6e20b31d5d17133e0fca086e12a0ad06ab5c4cc8 meta-intel: master: af8e3762a5932d6705f20e72b43457e112df0c28 libyami-utils_1.1.0.bb: EXTRA_OECONF = " --disable-x11 --enable-tests-gles --disable-md5" Compile cmd: bitbake libyami-utils
I have written a test code as followings, it can be built as well: //g++ -o dd.exe ./dd.cpp
Display *x11Display; XID x11Window;
int main(int argc, char* argv[]) { printf("sssssssssssss\n"); return 0; }
I hope it can check if your environment is ok.
Maybe I've not mentioned it explicitly so: In the builds with "--disable-x11" X11 is not actually available. This bit in your example will fail when you don't have libx11:
Display *x11Display;
XID x11Window;
I can check what the reproduction instructions are for yocto...
Right, current meta-intel master already has a workaround I sent for this:
PACKAGECONFIG[x11] = "--enable-x11 --enable-tests-gles,--disable-x11 --disable-tests-gles, virtual/libx11"
If you remove the "--disable-tests-gles" from that line, a build without "x11" DISTRO_FEATURE will fail.
(I now notice I've forgotten the "--enable-tests-gles" in the EXTRA_OECONF line: it should not be there but it also does not change the results).
libyami-utils fails to build with "--disable-x11". It does build with "--disable-x11 --disable-tests-gles". Tested on 1.1.0 release only (on Yocto if that matters).
Here's the failure: