Date: Sun, 30 Jan 2011 10:26:31 +0000 From: Chris Rees <utisoft@gmail.com> To: ports@freebsd.org Subject: CMake strangeness with includes Message-ID: <AANLkTi=MugYbEdRJ3XwT=z4DwyPBgBq_1_=Bco3vQgkV@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi all, I'm working on porting projectM to fulfil [1], but my unfamiliarity with cmake is causing a few problems.... I can't get it to find and use ${LOCALBASE}/include, as evidenced by the error message at the end. I've tried CMAKE_ENV= "CFLAGS=\"I/usr/include:/usr/local/include\"" (I know it's hard-coded for now), but it's not making any difference.... Is there anything obvious I've missed? Yes ${LOCALBASE}/include/GL/glew.h does exist... TIA, Chris [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=152823 ===> 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 ===> Configuring for projectM-2.0.1 /bin/mkdir -p /tmp/portwork/usr/home/chris/workspace/projectm/work/projectM-2.0.1-Source -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for XOpenDisplay in /usr/local/lib/libX11.so;/usr/local/lib/libXext.so -- Looking for XOpenDisplay in /usr/local/lib/libX11.so;/usr/local/lib/libXext.so - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Found X11: /usr/local/lib/libX11.so -- checking for one of the modules 'ftgl' -- found ftgl, version 2.1.3~rc5 -- [projectM] FTGL font support was detected and enabled. -- Configuring done -- Generating done -- Build files have been written to: /tmp/portwork/usr/home/chris/workspace/projectm/work/projectM-2.0.1-Source ===> Building for projectM-2.0.1 Scanning dependencies of target Renderer [ 1%] Building CXX object Renderer/CMakeFiles/Renderer.dir/FBO.o In file included from /tmp/portwork/usr/home/chris/workspace/projectm/work/projectM-2.0.1-Source/Renderer/FBO.cpp:31: /tmp/portwork/usr/home/chris/workspace/projectm/work/projectM-2.0.1-Source/Renderer/FBO.hpp:35:21: error: GL/glew.h: No such file or directory
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=MugYbEdRJ3XwT=z4DwyPBgBq_1_=Bco3vQgkV>