[texworks] compiling in Win7

Benny Lautrup lautrup at nbi.dk
Fri Feb 26 09:24:18 CET 2010

Hi Alain,

I have now recompiled with all references removed to the TW-plugins in texworks.pro. Then I get the following error output which indicates that the error lies in KDE. Have I made an error in the installation of KDE? Or is KDE in error. I have installed the latest version.


c:/Programs/MinGW/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory `C:/users/lautrup/texworks/texworks-read-only'
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 
mingw32-make.exe : c:\Programs\KDE\bin\..\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text+0x1c2): undefined referen
ce to `_Unwind_Resume'
At line:1 char:13
+ mingw32-make <<<<  2>&1 > log.txt
    + CategoryInfo          : NotSpecified: (c:\Programs\KDE..._Unwind_Resume':String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
mingw32-make[1]: Leaving directory `C:/users/lautrup/texworks/texworks-read-only'
ealloc(int, int)]+0x187): undefined reference to `_Unwind_Resume'
c:\Programs\KDE\bin\..\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.eh_frame+0x12): undefined reference to `__gxx_per
collect2: ld returned 1 exit status
mingw32-make[1]: *** [release\TeXworks.exe] Error 1

mingw32-make: *** [release] Error 2

-----Original Message-----
From: texworks-bounces at tug.org [mailto:texworks-bounces at tug.org] On Behalf Of Alain Delmotte
Sent: 26. februar 2010 08:53
To: Discuss the TeXworks front end.
Subject: Re: [texworks] compiling in Win7

Stefan Löffler a écrit :
> Hi,
> 2010/2/25 Benny Lautrup <lautrup at nbi.dk <mailto:lautrup at nbi.dk>>
>     I am nearly through the build of TW under Win7, following Stefans
>     instructions (even if they are not completely up-to-date ;-)).
> They should be fairly up-to-date. Did you notice anything in 
> particular that was missing/wrong?
>      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,
>     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.
> So did I, but I haven't investigated this any more closely, yet.
> I assume you commented the "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.
Ok I did comment that
> 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
>     LIBS += -Lplugins-src/TWLuaPlugin/release -lTWLuaPlugin
>     LIBS += -llua
>     LIBS += -Lplugins-src/TWPythonPlugin/release -lTWPythonPlugin
>     LIBS += -LC:/Programme/Python26/libs -lpython26
Here the end of the compilation and the error with these 4 lines 
g++ -fexceptions -Wl,-s -mthreads -Wl -Wl,-subsystem,windows -o 
.exe object_script.TeXworks.Release  -L'c:/Programmes/KDE/bin/../lib' 
-lqtmain ./obj/TeXworks_res.o 
-LC:/texworks/hunspell-1.2.8/src/hunspell/.libs -l
poppler-qt4 -lhunspell-1.2 -Lplugins-src/TWLuaPlugin/release 
-lTWLuaPlugin -llua
5.1 -Lplugins-src/TWPythonPlugin/release -lTWPythonPlugin 
-Lc:/Python26/libs -lp
ython26 -lQtScript -lQtScriptTools -lQtXml -lQtGui -lQtCore
can not find
collect2: ld a retournÚ 1 code d'Útat d'exÚcution [sent back 1 Satus 
Execution code!!]
mingw32-make[1]: *** [release/TeXworks.exe] Error 1
mingw32-make[1]: Leaving directory `C:/texworks/texworks'
mingw32-make: *** [release] Error 2

Why one looks in plugins-src/TWLuaPlugin/release unless that what is 
searched is created *before* looking!
The subfolder /release doesn't exist before compilation.

But commenting the 4 lines, the compilation is OK and it is then 
possible to go to plugins-src/TWLuaPlugin and plugins-src/TWPythonPlugin 
and use qmake and mingw32-make; the compilations go alright and the 
system works.

> Stefan

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.733 / Virus Database: 271.1.1/2710 - Release Date: 02/25/10 20:57:00

More information about the texworks mailing list