trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: May 2011

Re: [trinity-devel] kdegraphics - dlggeneral.ui.h:15:20: fatal error: config.h: No such file or directory

From: "David C. Rankin" <drankinatty@...>
Date: Mon, 16 May 2011 12:04:22 -0500
On 05/15/2011 07:28 PM, Baho Utot wrote:
> On 05/15/2011 07:55 PM, David C. Rankin wrote:
>> On 05/15/2011 06:30 PM, David C. Rankin wrote:
>>>
>>> Thanks Baho, but this is a CMake - autogenerate thing... It was building fine a
>>> couple of days ago. I think the tqt adjustments must have adjusted something
>>> unexpectedly...:
>>>
>>
>> I've tried exporting /usr/include/freetype2 with
>>
>> export CMAKE_INCLUDE_PATH=/opt/qt/include/tqt:/usr/include/freetype2
>>
>> and
>>
>> [ 45%] Building CXX object
>> kpovmodeler/CMakeFiles/kpovmodeler-shared.dir/pmtext.cpp.o
>> cd /build/src/build/kpovmodeler && /usr/bin/c++ -Dkpovmodeler_shared_EXPORTS
>> -DHAVE_CONFIG_H -fpermissive -DQT_NO_ASCII_CAST -DQT_CLEAN_NAMESPACE
>> -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -DQT_THREAD_SUPPORT
>> -D_REENTRANT -include tqt.h -fPIC -I/build/src/build/kpovmodeler
>> -I/build/src/build -I/opt/trinity/include -I/opt/qt/include
>> -I/opt/qt/include/tqt -I/usr/include/libdrm -o
>> CMakeFiles/kpovmodeler-shared.dir/pmtext.cpp.o -c
>> /build/src/kdegraphics/kpovmodeler/pmtext.cpp
>> In file included from /build/src/kdegraphics/kpovmodeler/pmtruetypecache.h:32:0,
>> from /build/src/kdegraphics/kpovmodeler/pmtext.cpp:26:
>> /usr/include/ft2build.h:56:38: fatal error: freetype/config/ftheader.h: No
>> such file or directory
>> compilation terminated.
>> make[2]: *** [kpovmodeler/CMakeFiles/kpovmodeler-shared.dir/pmtext.cpp.o] Error 1
>> make[2]: Leaving directory `/build/src/build'
>> make[1]: *** [kpovmodeler/CMakeFiles/kpovmodeler-shared.dir/all] Error 2
>> make[1]: Leaving directory `/build/src/build'
>> make: *** [all] Error 2
>> ==> ERROR: A failure occurred in build().
>>
>> What doesn't make sense is "THE FILE IS THERE"
>>
>> l /dat_e/david/bld/david/usr/include/freetype2/freetype/config/ftheader.h
>> -rw-r--r-- 1 root root 24761 Jan 10 04:23
>> /dat_e/david/bld/david/usr/include/freetype2/freetype/config/ftheader.h
>>
>> Both in the archroot and in the system generally:
>>
>> l /usr/include/freetype2/freetype/config/ftheader.h
>> -rw-r--r-- 1 root root 24761 Jan 10 04:23
>> /usr/include/freetype2/freetype/config/ftheader.h
>>
>> Prior to this hiccup, kdegraphics was building without 'any' extra export
>> CMAKE_INCLUDE_PATH= paths. So I don't know what is up.
>>
>
> CXXFLAGS="${CXXFLAGS} -I /usr/include/freetype2/freetype/config"
>
>

That crashed at the same place as well. However, I was able to build with:

-DCMAKE_CXX_FLAGS="-I /usr/include/freetype2 -fpermissive" \

8507172 May 16 11:42 trinity-kdegraphics-1232067-1-i686.pkg.tar.xz

The questions is why can't kdegraphics find the freetype2 includes? It used to 
find them... It finds all other includes, but it just started crashing on the 
freetype2 include this past week?? The Arch header location hasn't changed, so 
why so much trouble with this header?

It is building though. I'm currently building with:

   cmake ${srcdir}/${_svnmod} \
     -DCMAKE_INSTALL_PREFIX=${trinity_prefix} \
     -DCMAKE_VERBOSE_MAKEFILE=ON \
     -DQT_VERSION=3 \
     -DCMAKE_CXX_FLAGS="-I /usr/include/freetype2 -fpermissive" \
     -DWITH_T1LIB=ON \
     -DWITH_LIBPAPER=ON \
     -DWITH_TIFF=ON \
     -DWITH_OPENEXR=ON \
     -DWITH_PAM=ON \
     -DBUILD_ALL=ON
   make


-- 
David C. Rankin, J.D.,P.E.