On 03/06/2012 06:07 PM, Darrell Anderson wrote:
How are you
getting around:
[ 10%] Building CXX object
kfile-plugins/dependencies/poppler-tqt/CMakeFiles/poppler-tqt-shared.dir/poppler-document.cc.o
/build/src/tdegraphics/kfile-plugins/dependencies/poppler-tqt/poppler-document.cc:25:26:
fatal error: GlobalParams.h: No such file or directory
compilation terminated.
make[2]: ***
[kfile-plugins/dependencies/poppler-tqt/CMakeFiles/poppler-tqt-shared.dir/poppler-document.cc.o]
Error 1
make[1]: ***
[kfile-plugins/dependencies/poppler-tqt/CMakeFiles/poppler-tqt-shared.dir/all]
Error 2
make: *** [all] Error 2
Yesterday I built tdegraphics without error. Here is my build script configuration:
cmake $SOURCES_ROOT \
-DCMAKE_C_FLAGS:STRING="$CPUOPT" \
-DCMAKE_CXX_FLAGS:STRING="$CPUOPT $DEBUG_CMAKE_OPT" \
-DCMAKE_INSTALL_PREFIX=${PREFIX} \
-DSYSCONF_INSTALL_DIR=${SYSCONFDIR} \
-DLIB_SUFFIX=${LIBDIRSUFFIX} \
-DMAN_INSTALL_DIR=${MANDIR} \
-DWITH_T1LIB=ON \
-DWITH_PAPER=ON \
-DWITH_TIFF=ON \
-DWITH_OPENEXR=ON \
-DWITH_PDF=ON \
-DBUILD_ALL=ON || exit 1
I'll make another full build run soon and will post should I run into problems.
Darrell
I have tried several things, the latest being:
msg "Starting cmake..."
cmake ${srcdir}/${pkgname#*-} \
-DCMAKE_INSTALL_PREFIX=${TDEDIR} \
-DCMAKE_CXX_FLAGS="-I /usr/include/freetype2 -I /usr/include/poppler/
-fpermissive" \
-DWITH_T1LIB=ON \
-DWITH_LIBPAPER=ON \
-DWITH_TIFF=ON \
-DWITH_OPENEXR=ON \
-DWITH_PDF=ON \
-DBUILD_ALL=ON
and even tried patching
tdegraphics/kfile-plugins/dependencies/poppler-tqt/poppler-document.cc with:
--- tdegraphics/kfile-plugins/dependencies/poppler-tqt/poppler-document.cc
+++ tdegraphics/kfile-plugins/dependencies/poppler-tqt/poppler-document.cc
2012-03-06 18:04:52.937413238 -0600
@@ -22,7 +22,8 @@
#include <config.h>
#include <poppler-qt.h>
#include <tqfile.h>
-#include <GlobalParams.h>
+//#include <GlobalParams.h>
+#include "poppler/GlobalParams.h"
#include <Outline.h>
#include <PDFDoc.h>
#include <PSOutputDev.h>
18:19 providence:~/tde/scr>
No Joy, same error :(
[ 10%] Building CXX object
kfile-plugins/dependencies/poppler-tqt/CMakeFiles/poppler-tqt-shared.dir/poppler-document.cc.o
/build/src/tdegraphics/kfile-plugins/dependencies/poppler-tqt/poppler-document.cc:26:34:
fatal error: poppler/GlobalParams.h: No such file or directory
compilation terminated.
make[2]: ***
[kfile-plugins/dependencies/poppler-tqt/CMakeFiles/poppler-tqt-shared.dir/poppler-document.cc.o]
Error 1
make[1]: ***
[kfile-plugins/dependencies/poppler-tqt/CMakeFiles/poppler-tqt-shared.dir/all]
Error 2
make: *** [all] Error 2
The darn file is there.... Why can't make find it??
--
David C. Rankin, J.D.,P.E.