Hi, I would like to have openjdk-8 in the built SDK. Because there is not yet a nativesdk- package, I have tried in the usual way, but I am facing some issues I do not understand.
I have added a .bbappend for openjdk-8-native with : BBCLASSEXTEND_append = " nativesdk" (meta-java: master, poky: still krogoth for now) This let me start a "bitbake nativesdk-openjdk-8-native". I have also fixed in the configure the check for COMPILE_TYPE (it was reported "cross" when I try to build). Anyway, configure reports errors because it does not find freetype. But freetype-native is in DEPENDS, and I can build successfully openjdk-8-native. Last part of the log is: | configure: WARNING: Ignoring CFLAGS(-isystem/work/stefano/db-krogoth-arri/theadorable-mv78260/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/work/stefano/db-krogoth-arri/theadorable-mv78260/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -Wno-error=deprecated-declarations -DHEADLESS=true) found in environment. Use --with-extra-cflags | configure: WARNING: Ignoring CXXFLAGS(-isystem/work/stefano/db-krogoth-arri/theadorable-mv78260/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/work/stefano/db-krogoth-arri/theadorable-mv78260/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe -DHEADLESS=true) found in environment. Use --with-extra-cxxflags | configure: WARNING: Ignoring LDFLAGS(-L/work/stefano/db-krogoth-arri/theadorable-mv78260/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/work/stefano/db-krogoth-arri/theadorable-mv78260/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/work/stefano/db-krogoth-arri/theadorable-mv78260/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/work/stefano/db-krogoth-arri/theadorable-mv78260/tmp/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/work/stefano/db-krogoth-arri/theadorable-mv78260/tmp/sysroots/x86_64-linux/usr/lib -Wl,-O1 -L/work/stefano/db-krogoth-arri/theadorable-mv78260/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/opt/poky/2.1.2/sysroots/x86_64-pokysdk-linux/lib -Wl,-rpath-link,/work/stefano/db-krogoth-arri/theadorable-mv78260/tmp/sysroots/x86_64-nativesdk-pokysdk-linux/opt/poky/2.1.2/sysroots/x86_64-pokysdk-linux/lib -Wl,-rpath,/opt/poky/2.1.2/sysroots/x86_64-pokysdk-linux/lib -Wl,-O1) found in environment. Use --with-extra-ldflags | checking if compiler supports "-m64"... yes | checking if compiler supports "-m64"... yes | checking for broken SuSE 'ld' which only understands anonymous version tags in executables... no | checking if we should generate debug symbols... true | checking if we should zip debug-info files... yes | checking what is not needed on Linux?... pulse | checking for X... libraries /work/stefano/db-krogoth-arri/theadorable-mv78260/tmp/sysroots/x86_64-linux/usr/lib64, headers | checking whether -R must be followed by a space... neither works | checking for gethostbyname... (cached) yes | checking for connect... (cached) yes | checking for remove... (cached) yes | checking for shmat... (cached) yes | checking for IceConnectionNumber in -lICE... yes | checking for X11/extensions/shape.h... yes | checking for X11/extensions/Xrender.h... yes | checking for X11/extensions/XTest.h... yes | checking for X11/Intrinsic.h... yes | checking for FREETYPE... no | configure: error: Could not find freetype! You might be able to fix this by running 'sudo apt-get install libfreetype6-dev'. | NOTE: The following config.log files may provide further information. | NOTE: /work/stefano/db-krogoth-arri/theadorable-mv78260/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-openjdk-8-native/102b14-r0/build/config.log | ERROR: configure failed | ERROR: Function failed: do_configure (log file is located at /work/stefano/db-krogoth-arri/theadorable-mv78260/tmp/work/x86_64-nativesdk-pokysdk-linux/nativesdk-openjdk-8-native/102b14-r0/temp/log.do_configure.13211) Anyway, there is something I am missing, because building openjdk-8-native reports no error and it works flawlessly. Has somebody tried to put openjdk to the SDK or some hints that can put me in the right direction ? Regards, Stefano -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de ===================================================================== -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto