New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ft2build.h file is missing #88
Comments
Hi HP_, what platform are you building on? pj |
Hi @pljakobs, Sorry, my bad... I was so focus on my work and the parallel hunts for data, files and information that I forgot to share this information... :-/ Now, going to search for Font Type 2 development packages... Thank you for the clue ! :-) Best regards, P.S.
|
Well, I found something from there: http://download.savannah.gnu.org/releases/freetype/freetype-2.6.tar.gz (latest version at the moment) |
Ah, couple of things: the font converter is not an arduino sketch, it cannot be compiled with the arduino IDE but has to be compiled with the gcc that comes with your Linux distro. So you have to install the current development environment for your platform plus the freetype2 system along with it's development packages. You would do that through the package manager provided by your Linux distro (for example aptitude on many Debian based systems, or apt-cache / apt-get at the command line). Those tools have a search function that allows you to find the correct packages and meta packages. What you want is something along the lines of "C development", and "freetype2" - for the latter, there will be an option to also install the devel package. [edit] once you have the required packages installed, simply cd into the fontconvert directory and type "make" - that should do the trick. Again: fontconvert is not an arduino sketch, it's a program that runs natively on your pc (provided you run linux / Windows with cygwin or maybe even that fruit based OS). It is used to convert pc-style true type fonts into bitmap fonts that you can then use in your sketch. pj |
I'm having the same problem on OSX when I am compiling for the esp8266. I've downloaded the newest version of the Arduino IDE, installed the newest ESP8266/Arduino code and included adafruit GFX in my project. Compilation always fails because of the missing ft2build.h file |
I can submit a patch for this if you want it. It sounds like people are incorporating the entire GFX repo into their projects, not using the Arduino library management. If you incorporate the entire GFX repo into your sketch directory, the Arduino IDE will try to build I think a simple fix would be to add |
Hi BRC where should we add those codes please? |
I am having the same problem with ft2build.h in Windows 10 as the IDE keeps trying to load it from the Programs(x64) directory (cores etc.) and when I do a search for ft2build.h it does not find it in the cores directory setup. It is in the Sketches directory (it is not visible in this directory but the search says it's there) but apparently the IDE only looks for the hardware cores directory. I copy/paste it into the hardware/cores directory then search for it there but the search does not find it either. Why is that |
@Johnvan please see my comment above, you cannot build fontconvert with the Arduino ide since it's not an Arduino Sketch, it's a program that has to be run natively on your platform (Linux, MacOS or Windows). Since I don't do any coding on Windows, I have no compiler that can create Windows code (would there even be free ones?). pj |
Hi Peter,
Thanks for your quick and accurate response. I had so much trouble with this that I even reloaded the Arduino IDE and also got into the Web version IDE.
This has made me tired of all this mucking around so I will have to throw this 2.8TFT TJCTM24028-SPI out. This is getting worse and worse with non-Arduino modules and I am about to delete all my Arduino apps and look into something else.
Thanks anyway.
John van der Linden.
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
…________________________________
From: Peter Jakobs <notifications@github.com>
Sent: Wednesday, November 29, 2017 7:57:26 PM
To: adafruit/Adafruit-GFX-Library
Cc: John van der Linden; Mention
Subject: Re: [adafruit/Adafruit-GFX-Library] ft2build.h file is missing (#88)
@Johnvan<https://github.com/johnvan> please see my comment above, you cannot build fontconvert with the Arduino ide since it's not an Arduino Sketch, it's a program that has to be run natively on your platform (Linux, MacOS or Windows). Since I don't do any coding on Windows, I have no compiler that can create Windows code (would there even be free ones?).
But there has been work done to make it compile on Windows, please look around in the actual repo and the issues here.
pj
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#88 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ADqQCx73IO_dfG3oxGZvCmZ1V1VWY8_9ks5s7Rx2gaJpZM4I6jmt>.
|
Hi John, did you see https://github.com/adafruit/Adafruit-GFX-Library/blob/master/fontconvert/fontconvert_win.md ? I think there should be a rather straightforward path to building fontconvert on Windows... kind regards pj |
Hi guys, i was building a game that is written in C++ and it use the SFML library, and i had the same problem in Linux, and i fixed it copying the content of /usr/include/freetype2 to /usr/include :) |
Hello! I have an error while trying to install the matplotlib library in python 3.4, I found out that it needs ft2build.h which I already downloaded, but I can't find command to install it. Can you help me? What command to us to install ft2build.h? I'm using windows 10 thank you! I'm a graduating student and we badly need this in our thesis. |
@aaseagrass you are posting this question to the github repo for Adafruit-gfx, this has nothing to do with python. Please check out the freetype website on how to install the freetype develop packages on your platform. |
hi, I've faced the same problem to create the .h file from .ttf file , I'm using MacOS |
Thanks man, it worked like a charm. Is there any issue that may arise due to this change? |
When compiling the example sketch for adafruit OLED display, the sketch refers to Adafruit_GFX and consequently to fontconvert.c This file includes a header file named ft2build.h, which many of the compilers fail to find, resulting in compilation error. Check the discussion on this issue: adafruit#88 Simply adding two lines solves the problem.
I've referenced this issue, committed a change and opened a pull request. Its already been merged. Thanks to @bcr for his quick fix. This issue is resolved now. |
Hi,
I'm giving a try to a simple Arduino-based Oscilloscope project, the " fontconvert.c " file refers to a " ft2build.h " file to be included. (see line 23:
#include <ft2build.h>
)Where can we find this file if Not present amongst the already present libraries on the computer ?
Thanks in advance.
Best regards,
HP_
The text was updated successfully, but these errors were encountered: