The Windows build appears to be broken; it fails looking for libfreetype.a

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
danpike
Posts: 3
Joined: Fri Apr 09, 2021 8:12 am

The Windows build appears to be broken; it fails looking for libfreetype.a

Post by danpike »

Hi.

I've just downloaded the source for FreeCAD. When I use CMake on Windows using Visual Studio for my target generator, the build fails because the project files that were created by CMake are trying to link to a file called C:\Strawberry\c\lib\libfreetype.a:

Code: Select all

2>LINK : fatal error LNK1104: cannot open file 'C:\Strawberry\c\lib\libfreetype.a'
2>Done building project "SMDS.vcxproj" -- FAILED.
...
3>LINK : fatal error LNK1104: cannot open file 'C:\Strawberry\c\lib\libfreetype.a'
3>Done building project "Driver.vcxproj" -- FAILED.
...
6>LINK : fatal error LNK1104: cannot open file 'C:\Strawberry\c\lib\libfreetype.a'
6>Done building project "MEFISTO2.vcxproj" -- FAILED.
[etc.]
========== Rebuild All: 96 succeeded, 18 failed, 4 skipped ==========
There's no such folder on my machine (my perl installation is somewhere else), so does the panel have any idea why it's hardcoding the library file name to this?

There is a valid copy of freetype.lib in my libpack (which is also on my PATH):

Code: Select all

C:\>dir %FREECAD_LIBPACK_DIR%\lib\freetype.lib

 Directory of D:\work\libpack\FreeCADLibs_12.5.3_x64_VC17\lib

09/11/2020  11:31         1,792,950 freetype.lib
               1 File(s)      1,792,950 bytes
               0 Dir(s)  244,059,901,952 bytes free
               
C:\>where LICENSE_LGPL_21.txt
D:\work\libpack\FreeCADLibs_12.5.3_x64_VC17\LICENSE_LGPL_21.txt

Thanks,

Dan
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: The Windows build appears to be broken; it fails looking for libfreetype.a

Post by GeneFC »

I saw this same thing a couple of months ago. It is obvious that the Libpack has the extra stuff.

I used a different Libpack and everything worked fine.

Unfortunately I am not close to my usual workstation, so I cannot tell you which Libpack was bad.

Just try a different one.

Unless you are making changes or testing something the easiest method is to use one of the premade packages on

https://github.com/FreeCAD/FreeCAD-AppI ... kly-builds

Gene
david69
Veteran
Posts: 1780
Joined: Wed Jan 01, 2014 7:48 pm

Re: The Windows build appears to be broken; it fails looking for libfreetype.a

Post by david69 »

there is that page on the wiki Compile_on_Windows_with_VS2013 but I don't think it's up to date.
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: The Windows build appears to be broken; it fails looking for libfreetype.a

Post by GeneFC »

david69 wrote: Sat Oct 30, 2021 1:42 pm there is that page on the wiki Compile_on_Windows_with_VS2013 but I don't think it's up to date.
Probably true, but the parent page is up to date.

https://wiki.freecadweb.org/Compile_on_Windows

I do not believe that the current master can even be compiled with VS2013.

Gene
david69
Veteran
Posts: 1780
Joined: Wed Jan 01, 2014 7:48 pm

Re: The Windows build appears to be broken; it fails looking for libfreetype.a

Post by david69 »

in that case, do you think it is worth to keep the child page? again, I have no idea if it is important or not. I'm translating the wiki.
Post Reply