[gdal-dev] Is there a way to build GDAL without FreeType?

Jeff McKenna jmckenna at gatewaygeomatics.com
Mon Apr 27 05:25:23 PDT 2020


Hi Craig,

Maybe your GDAL build uses libPoppler, which references the Freetype 
lib; you could disable that from your GDAL build and retry.

-jeff



-- 
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeo.com/




On 2020-04-25 4:40 p.m., Craig Delancy wrote:
> (Windows 10, 64-bit)
> 
> Is there a way to compile GDAL (3.0.4) without the dependency on FreeType?
> 
> I am trying to integrate the GDAL libraries into an existing software, 
> which itself already links to FreeType2. This causes a series of 
> conflicts such as:
> 
> freetype.lib(ftbase.obj) : error LNK2005: FT_DivFix already defined in 
> gdal_i.lib(gdal300.dll)
> 
> These prevent me from being able to link GDAL and compile the 
> executable. Is there a way to remove the dependency, or another way to 
> resolve the multiple definitions?
> 
> Thanks.
> 



More information about the gdal-dev mailing list