VincentWei / build-minigui-5.0

The building scripts for MiniGUI 5.0
29 stars 11 forks source link

ERROR COMPILING: bin2c -o png_pics.inc res/*.png #23

Closed SamuraiBUPT closed 6 months ago

SamuraiBUPT commented 6 months ago

Hello, here is my logs when executing ./build-minigui.sh:

make[2]: Leaving directory '/d_workspace/embed_miniqq/downloads/build-minigui-5.0/mg-samples/minesweeper'
make[1]: Leaving directory '/d_workspace/embed_miniqq/downloads/build-minigui-5.0/mg-samples/minesweeper'
Making all in incore-data
make[1]: Entering directory '/d_workspace/embed_miniqq/downloads/build-minigui-5.0/mg-samples/incore-data'
bin2c -o png_pics.inc res/*.png
upf2c res/unifont_160_50.upf unifont_160_50
bin2c fatal   : Unknown option 'o'
make[1]: *** [Makefile:617: png_pics.inc] Error 1
make[1]: *** Waiting for unfinished jobs....
OK! translation is successful! there are 1407504 bytes in the unifont_160_50.c.c
make[1]: Leaving directory '/d_workspace/embed_miniqq/downloads/build-minigui-5.0/mg-samples/incore-data'
make: *** [Makefile:391: all-recursive] Error 1
=====
ERROR WHEN COMPILING 'mg-samples' FOR MiniGUI configured with --with-runmode=procs --enable-compositing --enable-virtualwindow
=====

It seems to be something wrong with bin2c, but I don't know how to fix this.

My OS is Ubuntu 20.04, I don't know if I have missed some important libs or for other reasons...

Any help will be appreciated :)

VincentWei commented 6 months ago

bin2c and upf2c are utilities in mg-tools. This is a bug of build-minigui.sh script. You can try to change the script and build mg-tools first.

SamuraiBUPT commented 6 months ago

Thanks :)