trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: January 2012

Re: [trinity-devel] Konqueror: Does not update file pane with file changes

From: Darrell Anderson <humanreadable@...>
Date: Sat, 14 Jan 2012 20:36:48 -0800 (PST)
> > The header includes look correct so I'm guessing a
> linker problem.
> > 
> > Ideas?

> You need to link to libfam.so or libgamin-1.so.
> I don't know how to do the CMake wizardry right but if
> pkg-config is to
> be used both fam and gamin shall be checked in the
> CMakeLists.txt.

I won't pretend to fully understand much about cmake, but I took an educated guess and updated my patch to use the pkg_search_module function, but no success. :(

=============================================================
diff -urN kdelibs/CMakeLists.txt kdelibs.new/CMakeLists.txt
--- kdelibs/CMakeLists.txt  2011-10-29 15:47:19.000000000 -0500
+++ kdelibs.new/CMakeLists.txt  2012-01-14 22:21:09.000000000 -0600
@@ -736,6 +736,17 @@
 endif( WITH_HSPELL )


+##### check for FAM/GAMIN ##########################
+
+check_include_file( "fam.h" HAVE_FAM_H )
+if( HAVE_FAM_H )
+  pkg_search_module( FAM gamin )
+  if( FAM_FOUND )
+    set( HAVE_FAM 1 )
+  endif( FAM_FOUND )
+endif( HAVE_FAM_H )
+
+
 ##### write configure files #####################

 configure_file( config.h.cmake config.h )
diff -urN kdelibs/config.h.cmake kdelibs.new/config.h.cmake
--- kdelibs/config.h.cmake  2011-08-10 21:30:27.000000000 -0500
+++ kdelibs.new/config.h.cmake  2012-01-14 19:42:56.000000000 -0600
@@ -114,7 +114,7 @@
 #undef HAVE_FADVISE

 /* Define if your system has libfam */
-#undef HAVE_FAM
+#cmakedefine HAVE_FAM 1

 /* Define to 1 if you have the <float.h> header file. */
 #cmakedefine HAVE_FLOAT_H 1
=============================================================


Darrell