Rex Dieter wrote:
Brad Hards wrote:
On Tuesday 12 December 2006 14:23, Rex Dieter wrote:
Cleanup of the m4 code.
OK, easy,
rm -f m4/qt.m4

(:
You don't want Qt3 poppler bindings any more?

My patch uses pkg-config for qt3 too. Though, not everyone likely has pkg-config and/or qt properly configured for that, it could break previously working setups if the legacy config checks for qt3 were dropped. ):

I'll respin a new patch that simply prefers pkg-config, and falls back
> to the old checks in case of failure. Does that sound (more) acceptable?

I'll have to shelve that for now, too busy with other stuff. I still consider the patch as-is to be much superior to the existing checks.

Also, can you check that the unittests build and pass with your patch? I
had to do some change to the linker lines, but I don't remember if that
was for the PKG_CONFIG stuff, or because I merged the tests for Qt and
QtTest together (because QtTestLib was included into Qt 4.1, so it didn't
make much sense to test separately at this stage).
I have yet to confirm it, but the tests should be better off with my
approach, since I kept the QtTest bits separate instead of lumping it
together with the other libs as you did.
Test, please.

will do.

tests work as advertised, provided one includes an additional patch for defining moc, since both qt3 and qt4 provide a tool called 'moc', but only qt4's moc works with qt4/tests.

It doesn't address the existing problems with the test pdfs missing:

make[4]: Entering directory `/playground/tmp/BUILD/poppler-0.5.4/poppler-0.5.4/qt4/tests'
********* Start testing of TestAttachments *********
Config: Using QTest library 4.2.2, Qt 4.2.2
PASS   : TestAttachments::initTestCase()
Error: Couldn't open file '../../../test/unittestcases/truetype.pdf'
FAIL!  : TestAttachments::checkNoAttachments() 'doc' returned FALSE. ()
   Loc: [check_attachments.cpp(23)]
Error: Couldn't open file '../../../test/unittestcases/WithAttachments.pdf'
FAIL!  : TestAttachments::checkAttach1() 'doc' returned FALSE. ()
   Loc: [check_attachments.cpp(35)]
Error: Couldn't open file '../../../test/unittestcases/A6EmbeddedFiles.pdf'
FAIL!  : TestAttachments::checkAttach2() 'doc' returned FALSE. ()
   Loc: [check_attachments.cpp(76)]
Error: Couldn't open file '../../../test/unittestcases/shapes+attachments.pdf'
FAIL!  : TestAttachments::checkAttach3() 'doc' returned FALSE. ()
   Loc: [check_attachments.cpp(110)]
Error: Couldn't open file '../../../test/unittestcases/imageretrieve+attachment.pdf'
FAIL!  : TestAttachments::checkAttach4() 'doc' returned FALSE. ()
...

-- Rex

--- poppler-0.5.4/qt4/tests/Makefile.am.moc-qt4	2006-01-23 08:43:39.000000000 -0600
+++ poppler-0.5.4/qt4/tests/Makefile.am	2006-12-15 09:07:39.000000000 -0600
@@ -15,8 +15,10 @@
 
 SUFFIXES: .moc
 
+MOC = moc
+
 .cpp.moc:
-	moc -i $< -o $@
+	$(MOC) -i $< -o $@ 
 
 noinst_PROGRAMS = test-poppler-qt4 stress-poppler-qt4 \
 	poppler-fonts test-password-qt4 poppler-attachments
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to