Message: previous - next
Month: January 2012

Re: [trinity-users] Can't build kdemultimedia (half solved)

From: Darrell Anderson <humanreadable@...>
Date: Tue, 10 Jan 2012 21:19:33 -0800 (PST)
> I'm revamping my build scripts in
> preparation for building from GIT. I no longer can build
> kdemultimedia 3.5.13. My build script for that package is
> almost unchanged although my master script that runs
> everything has changed a bit. The following messages appears
> in the build log:
> =============================================================
> checking audiofile.h usability... yes
> checking audiofile.h presence... no
> configure: WARNING: audiofile.h: accepted by the compiler,
> rejected by the preprocessor!
> configure: WARNING: audiofile.h: proceeding with the
> compiler's result
> checking for audiofile.h... yes
> =============================================================
> I presume the messages mean that audiofile.h is available
> (true: /usr/include), but that has somehow failed some other
> test. I don't know what "presence" means. I have audiofile
> 0.2.6 installed.

I don't know why this solves the problem, but I checked the configure log and the problem for this error was "tqt.h No such file or directory." I only have a few build logs of past builds, but this error appears in all of them. I was able to stop this particular error with this patch:

diff -urN kdemultimedia/admin/
--- kdemultimedia/admin/ 2011-10-23 17:53:19.000000000 -0500
+++ 2012-01-10 23:02:01.000000000 -0600
@@ -1236,7 +1236,7 @@
-  #include <tqt.h>
+  #include <tqt/tqt.h>
   #ifdef USE_QT4
   choke me
@@ -2846,7 +2846,7 @@
   qtlib="$qtlib $LIBTQT_LDFLAGS"
-  LIBTQT_CXXFLAGS="-include tqt.h"
+  LIBTQT_CXXFLAGS="-include tqt/tqt.h"
   all_includes="$all_includes $LIBTQT_CXXFLAGS"

diff -urN kdemultimedia/cmake/modules/TDEMacros.cmake
--- kdemultimedia/cmake/modules/TDEMacros.cmake 2011-10-27 11:11:44.000000000 -0500
+++ 2012-01-10 23:02:35.000000000 -0600
@@ -1120,7 +1120,7 @@

 macro( tde_include_tqt )
   foreach( _cpp ${ARGN} )
-    set_source_files_properties( ${_cpp} PROPERTIES COMPILE_FLAGS "-include tqt.h" )
+    set_source_files_properties( ${_cpp} PROPERTIES COMPILE_FLAGS "-include tqt/tqt.h" )
 endmacro( )

Tim, this solves the error message problem but is this a valid patch? If yes, do you want this submitted through the bugzilla or do you want copy and paste to merge? If no, then what is the correct solution?


P.S. The build still fails at the same point. I don't know why when I have built the package several times.