[texworks] compiling in Win7
esperanto at swing.be
Fri Feb 26 08:53:05 CET 2010
Stefan Löffler a écrit :
> 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
> 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'
poppler-qt4 -lhunspell-1.2 -Lplugins-src/TWLuaPlugin/release
5.1 -Lplugins-src/TWPythonPlugin/release -lTWPythonPlugin
ython26 -lQtScript -lQtScriptTools -lQtXml -lQtGui -lQtCore
can not find
collect2: ld a retournÚ 1 code d'Útat d'exÚcution [sent back 1 Satus
mingw32-make: *** [release/TeXworks.exe] Error 1
mingw32-make: 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
More information about the texworks