Adafruit-GFX-Library icon indicating copy to clipboard operation
Adafruit-GFX-Library copied to clipboard

Prebuild fontconvert

Open ikhoeyZX opened this issue 1 year ago • 2 comments

i did tried build fontconvert and still no luck (freetype2 also not detected) there is any precomplied binary (fontconvert,exe) that can used instead build by self (since building took too much my data plan and very slow because my country speed (only 25KB/s) for downloading tools (took 1GB of my data plan only for complied this)

$ make
gcc -Wall -I c:/mingw/include/freetype2 fontconvert.c -lfreetype -o fontconvert
/usr/lib/gcc/x86_64-pc-msys/13.2.0/../../../../x86_64-pc-msys/bin/ld: cannot find -lfreetype: No such file or directory
collect2: error: ld returned 1 exit status
make: *** [Makefile:8: fontconvert] Error 1

ikhoeyZX avatar Jun 23 '24 07:06 ikhoeyZX

Refer this link.

https://cadhut.com/2020/08/02/how-to-set-up-and-use-msys2/#:~:text=MSys2%20is%20a%20system%20that%20gives%20you%203,using%2064-bit%20tools%2C%20you%20launch%20this%20shell.%20

and run this command as well. pacman -S mingw-w64-x86_64-freetype

Vinayaksma avatar Dec 11 '24 11:12 Vinayaksma

I know you're in an unusual situation. I've privately rewritten fontconvert in Python, which might be useful for you.

https://github.com/adafruit/Adafruit-GFX-Library/pull/371

So you don't have to actually compile any C code to run a fontconvert.

BillyDonahue avatar Dec 18 '24 02:12 BillyDonahue