2020-05-20 12:39 AM
####Error messages are below..
ERROR: gstreamer1.0-plugins-bad-1.14.4-r0 do_compile: oe_runmake failed
ERROR: gstreamer1.0-plugins-bad-1.14.4-r0 do_compile: Function failed: do_compile (log file is located at /home/kheng_sw/work/STM32MP1/Distribution-Package/openstlinux-20-02-19/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/gstreamer1.0-plugins-bad/1.14.4-r0/temp/log.do_compile.8464)
ERROR: Logfile of failure stored in: /home/kheng_sw/work/STM32MP1/Distribution-Package/openstlinux-20-02-19/build-openstlinuxeglfs-stm32mp1/tmp-glibc/work/cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi/gstreamer1.0-plugins-bad/1.14.4-r0/temp/log.do_compile.8464
---------------------------------
##### The specific location of the error is like below.
| photography-enumtypes.c:6:1: error: stray '\' in program
| \#include "photography.h"
| ^
| photography-enumtypes.c:6:2: error: stray '#' in program
| \#include "photography.h"
| ^
| photography-enumtypes.c:6:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before string constant
| \#include "photography.h"
| ^~~~~~~~~~~~~~~
| photography-enumtypes.c: In function 'gst_photography_white_balance_mode_get_type':
| photography-enumtypes.c:33:9: error: 'GST_PHOTOGRAPHY_WB_MODE_AUTO' undeclared (first use in this function); did you mean 'GST_PHOTOGRAPHY_API'?
| { GST_PHOTOGRAPHY_WB_MODE_AUTO, "GST_PHOTOGRAPHY_WB_MODE_AUTO", "auto" },
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
---------------------------------------
I did open photography-enumtypes.c file and remove '\' of #include by manual and it fixed.
But it is not only single file. Several of *-enumtypes.c files was same.
How can i fix it?
2020-05-20 06:20 AM
Hello @SKim.12
I noticed in your error message path "openstlinuxeglfs". It seems you didn't choose the corect DISTRO.
Top build st-image-weston you need to run:
PC $> DISTRO=openstlinux-weston MACHINE=stm32mp1 source layers/meta-st/scripts/envsetup.sh
PC $> bitbake st-image-weston
See details:
https://wiki.st.com/stm32mpu/wiki/STM32MP1_Distribution_Package
https://wiki.st.com/stm32mpu/wiki/OpenSTLinux_distribution
BR,
Milan
2020-05-20 04:41 PM
Hello mleo.
Thank you for your reply.
"openstlinuxeglfs" is displayed because I built it with DISTRO = openstlinux-eglfs and bitbake st-example-image-qt.
However, I had the same problem when building with DISTRO = openstlinux-weston and bitbake st-image-weston.
2020-05-27 06:48 AM
Hi @SKim.12
Maybe worth to try a clean
bitbake <image> - c cleanall
see :
https://wiki.st.com/stm32mpu/wiki/BitBake_cheat_sheet
Hope it help
Olivier