Hi Stefan,<div><br></div><div>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. </div>


<div><br></div><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.  </div>


<div><br></div><div>Thanks,</div><div>Prerna Atri</div><div><br></div><div><br></div><div><div class="gmail_quote">On Sat, Apr 2, 2011 at 4:06 PM, Stefan Löffler <span dir="ltr"><<a href="mailto:st.loeffler@gmail.com" target="_blank">st.loeffler@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

  
    
  
  <div bgcolor="#ffffff" text="#000000">
    Hi,<div><br>
    <br>
    On 2011-04-01 18:34, Prerna Atri wrote:
    <blockquote type="cite">We have been working on porting TeXworks ( version
      0.3) as a package on Fink.</blockquote>
    <br></div>
    It's great to hear that there still is some progress with Tw on the
    Mac :). The latest version is labeled 0.5, though.<div><br>
    <br>
    <blockquote 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></div>
    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 type="cite"><div>
      <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><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>
    </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>
  </div>

</blockquote></div><br></div></div>