antiprism / libu8g2arm

Other
9 stars 5 forks source link

setup_src fails #4

Open karlo922 opened 3 months ago

karlo922 commented 3 months ago

Hi,

I need the most current (development-)u8g2 lib as it includes fixes for my display. I tried to run setup_src.sh but it fails with errors:

../bdfconv/bdfconv -y -1 -th 2 -tv 2  -f 2 -b 3 -m '32-255>32' tmp.bdf -n u8x8_font_px437wyse700b_2x2_f -o font.c && cat font.c >>../../../csrc/u8x8_fonts.c
Can not open bdf file 'tmp.bdf'
../otf2bdf/otf2bdf -r 72 -p 16 ../ttf/Px437_Wyse700b.ttf -o tmp.bdf
sh: 1: ../otf2bdf/otf2bdf: not found
../bdfconv/bdfconv -y -1 -th 2 -tv 2  -f 2 -b 3 -m '32-127>32' tmp.bdf -n u8x8_font_px437wyse700b_2x2_r -o font.c && cat font.c >>../../../csrc/u8x8_fonts.c
Can not open bdf file 'tmp.bdf'
../otf2bdf/otf2bdf -r 72 -p 16 ../ttf/Px437_Wyse700b.ttf -o tmp.bdf
sh: 1: ../otf2bdf/otf2bdf: not found
../bdfconv/bdfconv -y -1 -th 2 -tv 2  -f 2 -b 3 -m '32,42-58>42' tmp.bdf -n u8x8_font_px437wyse700b_2x2_n -o font.c && cat font.c >>../../../csrc/u8x8_fonts.c
Can not open bdf file 'tmp.bdf'
update u8g2.h
update u8x8.h
Segmentation fault
cp: cannot stat 'src/setup/font/build//fonts_gplcopyleft': No such file or directory
cp: cannot stat 'src/setup/font/build//fonts_noncommercial': No such file or directory
cp: cannot stat 'src/setup/font/build//fonts_permissive': No such file or directory
rm: cannot remove 'src/csrc/fonts_permissive/*.txt': No such file or directory
rm: cannot remove 'src/csrc/fonts_gplcopyleft/*.txt': No such file or directory
rm: cannot remove 'src/csrc/fonts_noncommercial/*.txt': No such file or directory
cc -Wall -g  codebuild_cpp.c -o codebuild_cpp
  1 4W_SW_SPI  1 4W_HW_SPI  1 8080  1 4W_SW_SPI  1 4W_HW_SPI  1 8080  2 4W_SW_SPI  2 4W_HW_SPI  2 8080  2 4W_SW_SPI  2 4W_HW_SPI  2 8080  f 4W_SW_SPI  f 4W_HW_SPI  f 8080  f 4W_SW_SPI  f 4W_HW_SPI  f 8080
....
....
...
patched ../../cppsrc/U8x8lib.h
cp: cannot stat 'src/csrc/fonts_gplcopyleft/*.h': No such file or directory
cp: cannot stat 'src/csrc/fonts_noncommercial/*.h': No such file or directory
antiprism commented 3 months ago

Hi

It will be common that setup_src.sh will fail when run with an updated U8g2. It looks like the first errors occurred earlier than your printout (i.e. tmp.bdf wasn't created and otf2bdf wasn't built). The script creates a source tree for the libu8g2arm library by processing the U8g2 source, and is fiddly to update depending on the changes to U8g2. Sorry, but I don't have time to synchronise the script with the latest U8g2 at the moment.

Adrian.

karlo922 commented 3 months ago

Hi, ok, do you maybe know which release of U8G2 you used when you built it? Then I could compare the changes and see where it fails.

antiprism commented 3 months ago

I last synchonised with U8g2 2.32.10. Given the difficulty of amending setup_src.sh, maybe you could just apply the fixes for your display to that release.

karlo922 commented 3 months ago

So I could just put the code in that release and try - yes - good idea!

karlo922 commented 3 months ago

If I just change the code in the files which come with your lib under csrc etc. I do not even need to run setup_src.sh correct?

antiprism commented 3 months ago

If it is only a question of amending an existing file, it might work.