Bug Report? Compiling on Arch can't find Freetype Headers

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

mmatt
Just popping in
Just popping in
Posts: 3
Joined: Sun Jul 07, 2013 13:01

Bug Report? Compiling on Arch can't find Freetype Headers

Postby mmatt » Fri Dec 20, 2013 14:45

Hello.

I'm not sure whether this necessarily constitutes a bug, but cmake can't find the Freetype headers when compiling on an Arch system. The patch below resolves this:

Code: Select all

diff -r 319182022f9f cmake/FindFreetype.cmake
--- a/cmake/FindFreetype.cmake  Sat Dec 07 09:00:48 2013 +0000
+++ b/cmake/FindFreetype.cmake  Sun Dec 15 10:30:53 2013 +0000
@@ -3,8 +3,8 @@
################################################################################
include(FindPackageHandleStandardArgs)

-find_path(FREETYPE_H_PATH_ft2build NAMES ft2build.h)
-find_path(FREETYPE_H_PATH_ftconfig NAMES freetype/config/ftconfig.h PATH_SUFFIXES freetype2)
+find_path(FREETYPE_H_PATH_ft2build NAMES ft2build.h PATH_SUFFIXES freetype2)
+find_path(FREETYPE_H_PATH_ftconfig NAMES config/ftconfig.h PATH_SUFFIXES freetype2)
find_library(FREETYPE_LIB NAMES freetype2 freetype libfreetype PATH_SUFFIXES dynamic)
find_library(FREETYPE_LIB_DBG NAMES freetype_d libfreetype_d PATH_SUFFIXES dynamic)
mark_as_advanced(FREETYPE_H_PATH_ft2build FREETYPE_H_PATH_ftconfig FREETYPE_LIB FREETYPE_LIB_DBG)


However, I'm not a cmake expert, so I'm not sure whether this will have a detrimental effect in other environments...

Thoughts/comments appreciated.

Thanks,
Matt

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Bug Report? Compiling on Arch can't find Freetype Header

Postby Ident » Sat Jan 04, 2014 14:52

What CMAKE version did you use?

This only appeared with freetype? odd.
CrazyEddie: "I don't like GUIs"


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 4 guests