[texworks] Problem compiling build 569 under mingw4
st.loeffler at gmail.com
Tue Feb 23 14:32:23 CET 2010
Am 2010-02-17 19:55, schrieb Jannie Hofmeyr:
> With 569 I could compile both the python and the lua plugin (I used
> lua 5.2) so that the required libraries were in their respective
> release directories under plugins-src.
> In my TeXworks.pro the win32 section contains
> # for the Windows build, we use static plugins:
> QMAKE_CXXFLAGS += -DSTATIC_SCRIPTING_PLUGINS
> LIBS += -Lplugins-src/TWLuaPlugin/release -lTWLuaPlugin
> LIBS += -Lt:/builds/texworks/lua-5.2 -llua52
> LIBS += -Lplugins-src/TWPythonPlugin/release -lTWPythonPlugin
> LIBS += -Lc:/Python26/libs -lpython26
> Compilation of TeXworkds exited with:
> ./obj\TWScriptable.o:TWScriptable.cpp:(.text+0xa): undefined reference
> to `qt_plugin_instance_TWLuaPlugin()'
> ./obj\TWScriptable.o:TWScriptable.cpp:(.text+0x19): undefined
> reference to `qt_plugin_instance_TWPythonPlugin()'
I just found out that the enhancement I described in my last mail was
implemented anyway. I guess I should read more closely ;).
For me, it worked by simply commenting out the "QMAKE_CXXFLAGS +=
-DSTATIC_SCRIPTING_PLUGINS" line (by prefixing it with a '#').
More information about the texworks