Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jan 2011 18:06:50 +0000
From:      Chris Rees <utisoft@gmail.com>
To:        ports@freebsd.org
Subject:   cmake and Freetype strangeness
Message-ID:  <AANLkTi=wo-tgBk83eWgNLUuC%2BirrQ5v05O8JzDTjnMDn@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi all,

I'm trying (still) to make a port for projectM.

The one I've made works fine on my production system, but when I put
it on my test system which has no ports installed, it throws a
tantrum.

I've added the depends:

LIB_DEPENDS=    ftgl:${PORTSDIR}/graphics/ftgl \
                GLEW:${PORTSDIR}/graphics/glew \
                freetype:${PORTSDIR}/print/freetype2

which should be enough, according to the cmake error, but it still happens!

Why can't cmake find Freetype???

# make
===>   projectM-2.0.1 depends on file: /usr/local/bin/cmake - found
===>   projectM-2.0.1 depends on shared library: ftgl - found
===>   projectM-2.0.1 depends on shared library: GLEW - found
===>   projectM-2.0.1 depends on shared library: freetype - found
===>   projectM-2.0.1 depends on shared library: ttf - found
===>  Configuring for projectM-2.0.1
/bin/mkdir -p /tmp/portwork/usr/home/chris/projectm/work/projectM-2.0.1-Source
************************************
  Necessary libfreetype2 files not found
  FREETYPE2_INCLUDE_DIR = FREETYPE2_INCLUDE_DIR-NOTFOUND
  FREETYPE2_FT_CONFIG    = /usr/local
  FREETYPE2_LIBRARIES   = FREETYPE2_LIBRARIES-NOTFOUND
  libfreetype will be build locally
************************************
CMake Error at cmake/FindFreetype2.cmake:148 (EXECUTE_PROCESS):
  execute_process called with no value for WORKING_DIRECTORY.
Call Stack (most recent call first):
  CMakeLists.txt:97 (find_package)


ERROR freetype library not found on the system and could not be build
Using FREETYPE2_INCLUDE_DIR = FREETYPE2_INCLUDE_DIR-NOTFOUND
Using FREETYPE2_FT_CONFIG    = /usr/local
Using FREETYPE2_LIBRARIES   = FREETYPE2_LIBRARIES-NOTFOUND
-- [projectM] FTGL font support was detected and enabled.
CMake Error: The following variables are used in this project, but
they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the
CMake files:
FREETYPE2_INCLUDE_DIR
   used as include directory in directory
/tmp/portwork/usr/home/chris/projectm/work/projectM-2.0.1-Source
   used as include directory in directory
/tmp/portwork/usr/home/chris/projectm/work/projectM-2.0.1-Source/Renderer

-- Configuring incomplete, errors occurred!
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_C_COMPILER= cc
CMAKE_CXX_COMPILER= c++

-- Generating done
-- Build files have been written to:
/tmp/portwork/usr/home/chris/projectm/work/projectM-2.0.1-Source
*** Error code 1

Stop in /usr/home/chris/projectm.
testing#



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=wo-tgBk83eWgNLUuC%2BirrQ5v05O8JzDTjnMDn>