Yours3lf / rpi-vk-driver

VK driver for the Raspberry Pi (Broadcom Videocore IV)
MIT License
1.23k stars 70 forks source link

Build fails with error: 'genxml_files_table' undeclared #12

Closed juanitotc closed 4 years ago

juanitotc commented 4 years ago

Compiling the latest git, using tinycorelinux piCore and gcc-9.2:

cmake --build . --target all
...
[  1%] Building C object brcm/CMakeFiles/brcm.dir/cle/v3d_decoder.c.o
cd /usr/src/rpi-vk-driver/build/brcm && /usr/local/bin/cc -DV3D_VERSION=21 -I/usr/src/rpi-vk-driver/external/include -I/usr/src/rpi-vk-driver  -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe   -Wall -std=c99 -march=armv6z -fPIC -o CMakeFiles/brcm.dir/cle/v3d_decoder.c.o   -c /usr/src/rpi-vk-driver/brcm/cle/v3d_decoder.c
...
In file included from /usr/src/rpi-vk-driver/brcm/cle/v3d_decoder.c:34:
/usr/src/rpi-vk-driver/brcm/cle/v3d_decoder.c: In function 'v3d_spec_load':
/usr/src/rpi-vk-driver/brcm/cle/v3d_decoder.c:656:40: error: 'genxml_files_table' undeclared (first use in this function)
  656 |         for (int i = 0; i < ARRAY_SIZE(genxml_files_table); i++) {
Yours3lf commented 4 years ago

that's declared in brcm/cle/v3d_xml.h can you please make sure that exists? it's generated by brcm/CMakeLists.txt so please make sure that runs correctly

juanitotc commented 4 years ago

Thanks for the suggestion - the problem was that python3 was in the path, but not python - after creating a symlink the build completed.