[texworks] compiling in Win7

Benny Lautrup lautrup at nbi.dk
Fri Feb 26 08:25:42 CET 2010


Hi Stefan,

 

I’ll come back later and comment your (otherwise excellent) instructions.

 

I didn’t find the library references that you mention in my texworks.pro

 

    LIBS += -Lplugins-src/TWLuaPlugin/release -lTWLuaPlugin
    LIBS += -llua
    LIBS += -Lplugins-src/TWPythonPlugin/release -lTWPythonPlugin
    LIBS += -LC:/Programme/Python26/libs -lpython26

 

Here is the output from my make (the object files (.o) are all compiled at this moment), so it is just the loading process

-------------------------------------------------------------------------------------------------------------------------------------

c:/Programs/MinGW/bin/mingw32-make -f Makefile.Release

mingw32-make[1]: Entering directory `C:/users/lautrup/texworks/texworks-read-only'

fixQtLibs.bat

        1 file(s) copied.

        1 file(s) copied.

        1 file(s) copied.

        1 file(s) copied.

        1 file(s) copied.

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 : ./obj\TWScriptable.o:TWScriptable.cpp:(.text+0x6349): undefined reference to `qt_plugin_instance_TWL

uaPlugin()'

At line:1 char:13

+ mingw32-make <<<<  2>&1 > log.txt

    + CategoryInfo          : NotSpecified: (./obj\TWScripta..._TWLuaPlugin()':String) [], RemoteException

    + FullyQualifiedErrorId : NativeCommandError

 

.

/obj

\TWScriptable.o:TWScriptable.cpp:(.text+0x6356): undefined reference to `qt_plugin_instance_TWPythonPlugin()'

c:\Programs\KDE\bin\..\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text+0x1c2): undefined reference to `_Unwind_Resu

me'

c:\Programs\KDE\bin\..\lib/libqtmain.a(qtmain_win.o):qtmain_win.cpp:(.text$_ZN7QVectorIPcE7reallocEii[QVector<char*>::r

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

sonality_v0'

collect2: ld returned 1 exit status

 

mingw32-make[1]: *** [release\TeXworks.exe] Error 1

 

mingw32-make[1]: Leaving directory `C:/users/lautrup/texworks/texworks-read-only'

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

 

--Benny

 

From: texworks-bounces at tug.org [mailto:texworks-bounces at tug.org] On Behalf Of Stefan Löffler
Sent: 25. februar 2010 18:11
To: Discuss the TeXworks front end.
Subject: Re: [texworks] compiling in Win7

 

Hi,

2010/2/25 Benny Lautrup <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.

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

HTH
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texworks/attachments/20100226/9a1efcda/attachment-0001.html>


More information about the texworks mailing list