[texworks] Error in compiling r.577/78

Alain Delmotte esperanto at swing.be
Sun Mar 7 14:16:08 CET 2010


Hi!

OK I compiled first the plugins and then TeXworks itself, but I had to 
change TeXworks.pro adding references to Lua (see below)
Perhaps I added too much in TeXworks.pro!! But it works!
I also modified llua to llua5.1 to match my system (also in 
TWLuaPlugin.pro).

Alain

win32 { # paths here are specific to my setup
    INCLUDEPATH += c:/Programmes/KDE/include/poppler/qt4
    INCLUDEPATH += c:/texworks/hunspell-1.2.8/src/hunspell
    INCLUDEPATH += c:/texworks/lua-5.1.4/include                  #added

    LIBS += -LC:/texworks/hunspell-1.2.8/src/hunspell/.libs
    LIBS += -lpoppler-qt4
    LIBS += -lhunspell-1.2

    RC_FILE = res/TeXworks.rc

    # for the Windows build, we use static plugins:
    QMAKE_CXXFLAGS += -DSTATIC_SCRIPTING_PLUGINS

    LIBS += 
-LC:/texworks/lua-5.1.4                                         #added
    LIBS += -Lplugins-src/TWLuaPlugin/release -lTWLuaPlugin
    LIBS += 
-llua5.1                                                                  
#modified

    LIBS += -Lplugins-src/TWPythonPlugin/release -lTWPythonPlugin
    LIBS += -Lc:/Python26/libs -lpython26
}


Jonathan Kew a écrit :
> Hi Alain,
>
> Apparently it can't find the Lua plugin; did you build the plugins before trying to build TW itself?
>
> The project is set up to link the plugins statically on Windows, which means you need to make sure to build the plugins before the main application; alternatively, you can change the configuration to link them dynamically, in which case it shouldn't matter, I think. To do that, you'd need to remove the setting of STATIC_SCRIPTING_PLUGINS from the project file.
>
> JK
>
> On 7 Mar 2010, at 09:34, Alain Delmotte wrote:
>
>   
>> Hi!
>>
>> After updating to today release (r577) and changing the TeXworks.pro file for my configuration, the compilation stops with an error:
>> ============================
>> windres -i res/TeXworks.rc -o ./obj/TeXworks_res.o --include-dir=./res
>> g++ -fexceptions -Wl,-s -mthreads -Wl -Wl,-subsystem,windows -o release/TeXworks
>> .exe object_script.TeXworks.Release  -L'c:/Programmes/KDE/bin/../lib' -lmingw32
>> -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
>> -Lplugins-src/TWPythonPlugin/release -lTWPythonPlugin -Lc:/Python26/libs -lpyth
>> on26 -lQtScript -lQtScriptTools -lQtXml -lQtGui -lQtCore
>> c:/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: cann not find -lTWLuaPlugin
>> collect2: ld returned 1 execution status code
>> mingw32-make[1]: *** [release/TeXworks.exe] Error 1
>> mingw32-make[1]: Leaving directory `C:/texworks/texworks'
>> mingw32-make: *** [release] Error 2
>>
>> C:\texworks\texworks>
>>
>> =============================
>>
>> Alain
>>
>>     
>
>
>
>   




More information about the texworks mailing list