m5stack / M5Stack

M5Stack Arduino Library
MIT License
1.19k stars 424 forks source link

Unable to build Factory Test. #257

Closed g0lgs closed 2 years ago

g0lgs commented 2 years ago

If I try to build the Factory Test code (Arduino IDE 1.8.15 on Pi4B 32bit or Windows 10 64bit ) I get:

sketch/FactoryTest.ino.cpp.o:(.literal._Z11startupLogov+0x0): undefined reference to `m5stack_startup_music'

sketch/FactoryTest.ino.cpp.o:(.literal._Z11startupLogov+0x8): undefined reference to `gImage_logoM5'

At least some of the other examples build fine.

Tinyu-Zhao commented 2 years ago

Try putting both files in the same path as factorytest.ino bmp_map.c startup_music.c like this .

image
g0lgs commented 2 years ago

That sorted it - Thanks.