Closed aminya closed 2 years ago
You probably need to update https://github.com/ericfreese/node-freetype2/blob/master/gyp/libfreetype.gyp to include some of the new source files they added
Where is the list of files? I wish we could just glob them all. It is worthless to list them manually. The build breaks every time the list of files changes.
Maybe this list? https://github.com/ericfreese/node-freetype2/commit/7db7b7999f6006db3828cfee1e2b18a60f70b1ab#diff-f6a73d3af65b36c45f7b244b26e2a6041b38c94cdd6c9d8bcbc3a90de7b83a1aL317-L356 of which only src/sdf/sdf.c
was added.
Or this is new too https://github.com/ericfreese/node-freetype2/commit/7db7b7999f6006db3828cfee1e2b18a60f70b1ab#diff-f6a73d3af65b36c45f7b244b26e2a6041b38c94cdd6c9d8bcbc3a90de7b83a1aR411-R412
You could try using globs, but I wouldnt be surprised if that introduces other issues. Various of the files will be behind feature flags, some of which will require additional dependencies and so globbing sounds like it will instead turn into a game of blocking out various files you dont want to build instead of specifying what you do want to build, so will likely not save any effort.
This is partly why I am using cmake in a jpeg-turbo wrapper, but I am thinking of switching to this method so that I can use prebuildify. The 5 minutes to update a list of files every few months is really not that bad to me
I tried to update to freetype 2.11 in this commit, but I faced some build errors for missing symbols during link time
I updated the version, removed the previous .freetype-some-version file and ran:
Then the build failed: