<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.com
        {mso-style-name:com;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=DA link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Stefan,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I’ll come back later and comment your (otherwise excellent)
instructions.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I didn’t find the library references that you mention in my
texworks.pro<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><span class=com><span
lang=EN-US> LIBS += -Lplugins-src/TWLuaPlugin/release
-lTWLuaPlugin</span></span><span lang=EN-US><br>
<span class=com> LIBS += -llua</span><br>
<span class=com> LIBS += -Lplugins-src/TWPythonPlugin/release
-lTWPythonPlugin</span><br>
<span class=com> LIBS += -LC:/Programme/Python26/libs
-lpython26</span><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Here is the output from my make (the object files (.o) are all
compiled at this moment), so it is just the loading process<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>-------------------------------------------------------------------------------------------------------------------------------------<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>c:/Programs/MinGW/bin/mingw32-make -f Makefile.Release<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>mingw32-make[1]: Entering directory
`C:/users/lautrup/texworks/texworks-read-only'<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>fixQtLibs.bat<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> 1 file(s) copied.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> 1 file(s) copied.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> 1 file(s) copied.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> 1 file(s) copied.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> 1 file(s) copied.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>g++ -fexceptions -Wl,-s -mthreads -Wl -Wl,-subsystem,windows -o
release\TeXworks.exe object_script.TeXworks.Release
-L"c:\Programs\KDE\bin\..\lib" -lmingw32 -lqtmain
.\obj\TeXworks_res.o -LC:/Users/lautrup/texworks/hunspell-1.2.8/src/hunspell/.libs
-lpoppler-qt4 -lhunspell-1.2 -lQtScript -lQtScriptTools -lQtXml -lQtGui
-lQtCore <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>mingw32-make.exe :
./obj\TWScriptable.o:TWScriptable.cpp:(.text+0x6349): undefined reference to
`qt_plugin_instance_TWL<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>uaPlugin()'<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>At line:1 char:13<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>+ mingw32-make <<<< 2>&1 > log.txt<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> + CategoryInfo : NotSpecified:
(./obj\TWScripta..._TWLuaPlugin()':String) [], RemoteException<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> + FullyQualifiedErrorId : NativeCommandError<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> <o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>/obj<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>\TWScriptable.o:TWScriptable.cpp:(.text+0x6356): undefined
reference to `qt_plugin_instance_TWPythonPlugin()'<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>c:\Programs\KDE\bin\..\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text+0x1c2):
undefined reference to `_Unwind_Resu<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>me'<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>c:\Programs\KDE\bin\..\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text$_ZN7QVectorIPcE7reallocEii[QVector<char*>::r<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>ealloc(int, int)]+0x187): undefined reference to
`_Unwind_Resume'<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>c:\Programs\KDE\bin\..\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.eh_frame+0x12):
undefined reference to `__gxx_per<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>sonality_v0'<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>collect2: ld returned 1 exit status<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>mingw32-make[1]: *** [release\TeXworks.exe] Error 1<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>mingw32-make[1]: Leaving directory
`C:/users/lautrup/texworks/texworks-read-only'<o:p></o:p></span></p>
<div style='mso-element:para-border-div;border:none;border-bottom:solid windowtext 1.0pt;
padding:0cm 0cm 1.0pt 0cm'>
<p class=MsoNormal style='border:none;padding:0cm'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif";color:#1F497D'>mingw32-make: *** [release]
Error 2<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>--Benny<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> texworks-bounces@tug.org
[mailto:texworks-bounces@tug.org] <b>On Behalf Of </b>Stefan Löffler<br>
<b>Sent:</b> 25. februar 2010 18:11<br>
<b>To:</b> Discuss the TeXworks front end.<br>
<b>Subject:</b> Re: [texworks] compiling in Win7<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'>Hi,<o:p></o:p></p>
<div>
<p class=MsoNormal>2010/2/25 Benny Lautrup <<a href="mailto:lautrup@nbi.dk">lautrup@nbi.dk</a>><o:p></o:p></p>
<div>
<div>
<p class=MsoNormal><span lang=EN-US>I am nearly through the build of TW under
Win7, following Stefans instructions (even if they are not completely
up-to-date ;-)).</span><span lang=EN-US> </span><o:p></o:p></p>
</div>
</div>
<div>
<p class=MsoNormal><br>
They should be fairly up-to-date. Did you notice anything in particular that
was missing/wrong?<br>
<span lang=EN-US> </span><o:p></o:p></p>
</div>
<blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm'>
<div>
<div>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US> Unfortunately, I have run into a problem towards the end of
the build, when the loader tries to assemble the release version of
qtmain_win, </span><o:p></o:p></p>
<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
lang=EN-US>and bombs out with undefined references to the LuaPlugin og
PythonPlugin. I thought they could be left out with no problem, and put in
later.</span><o:p></o:p></p>
</div>
</div>
</blockquote>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><br>
So did I, but I haven't investigated this any more closely, yet.<br>
I assume you commented the "<a name="Obtaining_and_building_TeXworks"><span
class=com>QMAKE_CXXFLAGS += -DSTATIC_SCRIPTING_PLUGINS" line? If this is
the case, please include the exact error message / build protocol - otherwise
it's difficult to debug the problem.</span><br>
<br>
<span class=com>Right now, I can only see one possibility: TWLuaPlugin is
mentioned explicitly in TeXworks.pro for linking. I had hoped so far that if
it's not needed, it's not used. In any case, the workaround would be to comment
out the lines</span><br>
<span class=com> LIBS += -Lplugins-src/TWLuaPlugin/release
-lTWLuaPlugin</span><br>
<span class=com> LIBS += -llua</span><br>
<span class=com> LIBS += -Lplugins-src/TWPythonPlugin/release
-lTWPythonPlugin</span><br>
<span class=com> LIBS += -LC:/Programme/Python26/libs
-lpython26</span></a><o:p></o:p></p>
</div>
</div>
<p class=MsoNormal>HTH<br>
Stefan<o:p></o:p></p>
<p><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>No virus
found in this incoming message.<br>
Checked by AVG - www.avg.com<br>
Version: 9.0.733 / Virus Database: 271.1.1/2710 - Release Date: 02/25/10
20:57:00</span><o:p></o:p></p>
</div>
</body>
</html>