[texworks] building texworks r600 fails on Debian 5.04

Jonathan Kew jfkthame at googlemail.com
Thu Apr 8 11:27:55 CEST 2010


On 8 Apr 2010, at 09:52, Vafa Khalighi wrote:

> When I tried to build r600 of texworks today, it failed.
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> g++ -c -pipe -DHAVE_POPPLER_XPDF_HEADERS -DTW_HELPPATH=\"/usr/local/share/texworks-help\" -DTW_PLUGINPATH=\"/usr/local/lib/texworks\" -DTW_DICPATH=\"/usr/share/myspell/dicts\" -O2 -I/usr/include/hunspell -I/usr/include/poppler/qt4 -I/usr/include/poppler -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtDBus -I/usr/include/qt4 -Isrc -Imoc -Iui -o obj/TWApp.o src/TWApp.cpp
> g++ -c -pipe -DHAVE_POPPLER_XPDF_HEADERS -DTW_HELPPATH=\"/usr/local/share/texworks-help\" -DTW_PLUGINPATH=\"/usr/local/lib/texworks\" -DTW_DICPATH=\"/usr/share/myspell/dicts\" -O2 -I/usr/include/hunspell -I/usr/include/poppler/qt4 -I/usr/include/poppler -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_DBUS_LIB -DQT_SCRIPT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtDBus -I/usr/include/qt4 -Isrc -Imoc -Iui -o obj/TWScriptable.o src/TWScriptable.cpp
> src/TWScriptable.cpp: In member function ‘void TWScriptable::hideFloatersUnlessThis(QWidget*)’:
> src/TWScriptable.cpp:435: error: invalid use of incomplete type ‘struct QToolBar’
....etc.

I'm guessing you have an older version of Qt, and it needs some more headers #include<>d explicitly. I can fix this particular one, and wait to see what it runs into next; or you could work through the errors, adding #include<>s as needed, to come up with a patch that makes it more backward-compatible (which would be a much more efficient approach).

> During running qmake, it also said that
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
> Project MESSAGE: Warning: unknown QT: scripttools
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Again, sounds like an older Qt version. I think this can safely be ignored, however; it just means the script debugger will not be available.

JK




More information about the texworks mailing list