<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
On 2011-04-05 16:44, Prerna Atri wrote:
<blockquote
cite="mid:BANLkTiko7Z5vJE70mziNYpdunucFSfNSFg@mail.gmail.com"
type="cite">Thanks for your valuable suggestions. We commented the
compilation flag used for enabling the poppler-xpdf headers and
compiled TeXworks source. The error reported earlier is no longer
seen.</blockquote>
<br>
That's good news. In the long run, I still think this should be
re-enabled in the future, but for now every error that is gone is a
good one ;).<br>
<br>
<blockquote
cite="mid:BANLkTiko7Z5vJE70mziNYpdunucFSfNSFg@mail.gmail.com"
type="cite">
<div>However, we are currently facing the following failure on
TeXworks compilation.<br>
<div><i><font class="Apple-style-span" color="#000099"><br>
</font></i></div>
<div><span class="Apple-style-span" style="border-collapse:
collapse; font-family: arial,sans-serif; font-size: 13px;"><i><font
class="Apple-style-span" color="#000099">
<div>
/sw/src/fink.build/texworks-0.3-1/texworks-0.3/../../../../opt/kde4/mac/include/poppler/qt4/poppler-optcontent.cc:428:34:
error: poppler-optcontent.moc: No such file or
directory</div>
<div><br>
</div>
<div>The following build commands failed:</div>
<div>TeXworks:</div>
<div><span style="white-space: pre-wrap;"> </span>CompileC
obj/TeXworks.build/Default/TeXworks.build/Objects-normal/i386/poppler-optcontent.o
/sw/src/fink.build/texworks-0.3-1/texworks-0.3/../../../../opt/kde4/mac/include/poppler/qt4/poppler-optcontent.cc
normal i386 c++ com.apple.compilers.gcc.4_2</div>
<div>(1 failure)</div>
</font></i></span></div>
<div><br>
</div>
<div>We searched for the .moc file but in vain. The poppler
source folder for 10.7 has only the poppler-optcontent.cc
file, which makes a reference to the poppler-optcontent.moc
file, but we have not been able to locate the actual file.<br>
</div>
</div>
</blockquote>
<br>
Again the old reminders: Tw is currently at 0.5, not 0.3, and you
should really use an up-to-date version of poppler!<br>
<br>
Anyway, I've looked at poppler 0.16.4, and the same file is still
mentioned. Makefile.am (in the same directory) lists it as
BUILT_SOURCES, so it's reasonable to assume it is an intermediate
file produced on the fly. Indeed, there are also the following three
lines in the same file:<br>
# This rule lets GNU make create any *.moc from the equivalent *.h<br>
.h.moc:<br>
$(AM_V_GEN) $(MOCQT4) -i $< -o $@<br>
<br>
This suggests that you have to run Qt's moc to generate that file.
Why this is not done automatically, however, is still a mystery to
me.<br>
<br>
Speaking of mysteries - why does this error occur during the Tw
build? Poppler is a dependency, but I'd expect it to be
built/installed separately before Tw is touched for the first time.
Related to this: if poppler is built as part of Tw (as opposed to
separately), how is this done? For example, if it's not done using
the usual ./configure && make, implicit rules like the .moc
rule are easily missed.<br>
<br>
HTH<br>
Stefan<br>
</body>
</html>