<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
On 2011-04-01 18:34, Prerna Atri wrote:
<blockquote
cite="mid:AANLkTimRQca17c80GdDX2R3x_NmHF2rEAB_2eJ9SQf+W@mail.gmail.com"
type="cite">We have been working on porting TeXworks ( version
0.3) as a package on Fink.</blockquote>
<br>
It's great to hear that there still is some progress with Tw on the
Mac :). The latest version is labeled 0.5, though.<br>
<br>
<blockquote
cite="mid:AANLkTimRQca17c80GdDX2R3x_NmHF2rEAB_2eJ9SQf+W@mail.gmail.com"
type="cite">
<div>We are using the following Fink packages for building
TeXworks:</div>
<div><br>
</div>
<div>
<ul>
<li>
qt4-mac ( v <span style="border-collapse: collapse;
font-family: 'Trebuchet MS',sans-serif;">4.6.3-2)</span></li>
<li>poppler4-qt4-mac ( v <span style="border-collapse:
collapse; font-family: 'Trebuchet MS',sans-serif;">0.10.7-3)</span></li>
<li>fontconfig-config ( v <span style="border-collapse:
collapse; font-family: 'Trebuchet MS',sans-serif;">2.8.0-4)</span></li>
<li>poppler-data ( v <span style="border-collapse: collapse;
font-family: 'Trebuchet MS',sans-serif;">0.2.1-1)</span></li>
<li>hunspell ( v <span style="border-collapse: collapse;
font-family: 'Trebuchet MS',sans-serif;">1.2.12-1002)</span></li>
<li><span style="border-collapse: collapse; font-family:
arial,sans-serif;">poppler4-xpdf ( v </span><span
style="border-collapse: collapse; font-family: 'Trebuchet
MS',sans-serif;">0.10.7-1)</span></li>
<li><span style="border-collapse: collapse; font-family:
arial,sans-serif;">libhunspell ( v </span><span
style="border-collapse: collapse; font-family: 'Trebuchet
MS',sans-serif;">1.2.12-1002)</span></li>
</ul>
</div>
</blockquote>
<br>
Some of these seem outdated:<br>
* Qt - latest stable version: 4.7.2 (though the difference to the
4.6 series is probably not too important for Tw)<br>
* Hunspell - latest stable version: 1.3.1 (again, I don't think
this is very relevant)<br>
* poppler - latest stable version: 0.16 (now, this is very
relevant!)<br>
* poppler-data - latest stable version: 0.4.4<br>
<br>
<blockquote
cite="mid:AANLkTimRQca17c80GdDX2R3x_NmHF2rEAB_2eJ9SQf+W@mail.gmail.com"
type="cite">
<div>
<ul>
</ul>
</div>
<div>When building TeXworks after installing the above metioned
packages, we are getting the following failure:</div>
<div><br>
</div>
<div><font color="#000099"><i>/sw/src/fink.build/texworks-0.3-1/texworks-0.3/src/TWApp.cpp:
In member function ‘void TWApp::init()’:</i></font>
<div><font color="#000099"><i>/sw/src/fink.build/texworks-0.3-1/texworks-0.3/src/TWApp.cpp:159:
error: no matching function for call to
‘GlobalParams::GlobalParams(char*)’</i></font></div>
<div><font color="#000099"><i>/sw/include/poppler/GlobalParams.h:162:
note: candidates are: GlobalParams::GlobalParams()</i></font></div>
<div><font color="#000099"><i>/sw/include/poppler/GlobalParams.h:157:
note: GlobalParams::GlobalParams(const
GlobalParams&)</i></font></div>
<div><font color="#000099"><i>** BUILD FAILED **</i></font></div>
</div>
</blockquote>
<br>
This is a result of the ancient poppler version.<br>
In recent versions (I think from 0.12 on), the constructor of
GlobalParams takes as argument the location of the private poppler
directory. Note, however, that for this to be effective, you need to
have a patched version of poppler, which I guess is not what you
(initially) want with Fink, unless you have to. For more
information, see src/TWApp.cpp (lines 148-152), as well as the
lib-patches/ directory.<br>
<br>
The easiest solution would be to comment out the line<br>
QMAKE_CXXFLAGS += -DHAVE_POPPLER_XPDF_HEADERS<br>
in TeXworks.pro, though. This way, you will not be able to use a
poppler-data/ directory alongside the TeXworks.app bundle, but
poppler should look for the default ones in some system dependent
global directory. In any case, you should check if this works
properly (i.e., it picks up the files installed by poppler-data).<br>
<br>
HTH<br>
Stefan<br>
</body>
</html>