Hi,<br><br>We are working on creating a package of TeXworks for MAC users on Fink. As a step towards that we tried building TeXworks from source by following the instructions given in the link for issue 107. <br><br><a href="http://code.google.com/p/texworks/issues/detail?id=107">http://code.google.com/p/texworks/issues/detail?id=107</a><br>

<br>We got an error saying qmake command not found. We had installed pkgconfig, fontconfig, Qt4 version 4.7, as per the instructtions given in the above link.<br>We would need  to build TeXworks successfully from source files, in order to proceed with the source tarball creation for packaging on fink.<br>

<br>If anyone has encountered the above mentioned error while building TeXworks before, kindly guide us with your suggestion or information on this regard.<br><br>Meanwhile, we shall follow the build procedure with the changes suggested by Bruno Voisin in this mail chain.<br>

<br>Thanks,<br>Prerna Atri<br><br><div class="gmail_quote">On Sun, Feb 6, 2011 at 4:21 PM, Joseph Wright <span dir="ltr"><<a href="mailto:joseph.wright@morningstar2.co.uk">joseph.wright@morningstar2.co.uk</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">[While this thread is clearly relevant to TeXworks, it's mainly about<br>
building Mac binaries. I wonder if there is somewhere more appropriate<br>
to discuss things: most TeXworks *users* don't care about this type of<br>
thing at all!]<br>
<div class="im"><br>
On 05/02/2011 22:09, Joseph Wright wrote:<br>
> Right, task one is to sort the fontconfig business, I guess.<br>
<br>
</div>As a first pass, I decided to have a go using poppler 0.12.0, which is<br>
the one that Jonathan patched. (If you try to apply the patches to the<br>
current release, it fails. Deal with one thing at a time!)<br>
<br>
The patches apply okay (not a surprise), but 'autoconf' is not happy. If<br>
try the Git version, I get<br>
<br>
palladium:poppler joseph$ autoconf<br>
<a href="http://configure.ac:536" target="_blank">configure.ac:536</a>: warning: AC_LIB_PREPARE_PREFIX is m4_require'd but not<br>
m4_defun'd<br>
m4/iconv.m4:18: AM_ICONV_LINKFLAGS_BODY is expanded from...<br>
m4/iconv.m4:152: AM_ICONV_LINK is expanded from...<br>
m4/iconv.m4:180: AM_ICONV is expanded from...<br>
<a href="http://configure.ac:536" target="_blank">configure.ac:536</a>: the top level<br>
<br>
whereas if I try the .tar.gz I get<br>
<br>
palladium:poppler-0.12.0 joseph$ autoconf<br>
aclocal.m4:20: warning: this file was generated for autoconf 2.63.<br>
You have another version of autoconf.  It may work, but is not<br>
guaranteed to.<br>
If you have problems, you may need to regenerate the build system entirely.<br>
To do so, use the procedure documented by the package, typically<br>
`autoreconf'.<br>
<br>
So I try 'autoreconf', which seems to work itself, but ./configure gives<br>
<br>
[various perfectly normal things]<br>
checking for libpng... (cached) no<br>
./configure: line 22207: normal: command not found<br>
configure: WARNING: libpng not found. disable PNG support.<br>
./configure: line 22281: syntax error near unexpected token `FREETYPE,'<br>
./configure: line 22281: `PKG_CHECK_MODULES(FREETYPE, freetype2,'<br>
<br>
at the point where the unpatched one dies complaining about a lack of<br>
fontconfig.<br>
<br>
I've no experience of 'autoconf' (being used only to "./configure &&<br>
make && make check && sudo make install"), so I'm a bit stuck here!<br>
--<br>
<font color="#888888">Joseph Wright<br>
</font></blockquote></div><br>