Skip to content

Instantly share code, notes, and snippets.

@Kumataro
Created August 31, 2017 14:16
Show Gist options
  • Select an option

  • Save Kumataro/9c3c94b05914eb081616d701c7cf7c4f to your computer and use it in GitHub Desktop.

Select an option

Save Kumataro/9c3c94b05914eb081616d701c7cf7c4f to your computer and use it in GitHub Desktop.
How to build Harfbuzz and freetype2
I am very sorry that I can only help you incompletely.
(1) I believe this site is helpful to build harfbuzz and freetype libraries.
http://www.gregwessels.com/dev/2017/05/02/freetype-harfbuzz.html
- c:/usr/local/lib/freetype.lib
- c:/usr/local/lib/freetype.dll
- c:/usr/local/include/ft2build.h
- c:/usr/local/include/freetype/*.h
- c:/usr/local/lib/harfbuzz.lib
- c:/usr/local/lib/harfbuzz.dll
- c:/usr/local/include/harfbuzz/*.h
(2) Currently freetype module requires PKG-CONFIG, so to change CMakeLists.txt in modules/freetype is needed.
And add Entry "FREETYPE_INCLUDE_DIRS" and "HARFBUZZ_INCLUDE_DIRS" with cmake configuration.
> FREETYPE_INCLUDE : c:/usr/local/include/
> HARFBUZZ_INCLUDE : c:/usr/local/include/harfbuzz
if(PKG_CONFIG_FOUND)
pkg_search_module(FREETYPE freetype2)
pkg_search_module(HARFBUZZ harfbuzz)
endif()
if(NOT FREETYPE_FOUND)
if( FREETYPE_INCLUDE_DIRS )
set ( FREETYPE_FOUND YES)
endif()
endif()
if(NOT HARFBUZZ)
if( HARFBUZZ_INCLUDE_DIRS )
set ( HARFBUZZ_FOUND YES)
endif()
endif()
(3) Build OpenCV with those dlls, but ...
Linking opencv with static libraries looks like good.
However to link with dll failed...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment