спасибо. буду изучать.
Пользователь решил продолжить мысль 28 Февраля 2013, 11:28:30:
установил бибиотеку. маны доступны. файлы *.a и *.so лежат на своих местах. как подключить к проекту эту библиотеку?
вот мой *.pro
#-------------------------------------------------
#
# Project created by QtCreator 2013-02-28T08:44:33
#
#-------------------------------------------------
QT += core gui
INCLUDEPATH += /usr/include/X11/extensions
LIBS += L/usr/lib/i386-linux-gnu/ -lXrandr
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = XRTest
TEMPLATE = app
SOURCES += main.cpp\
widget.cpp
HEADERS += widget.h
FORMS += widget.ui
после того, как в widget.cpp пишу #include <X11/extentions/Xrandr.h> вылазят следующие ошибки
In file included from /usr/include/qt4/QtCore/qstringlist.h:46:0,
from /usr/include/qt4/QtGui/qcolor.h:47,
from /usr/include/qt4/QtGui/qpalette.h:46,
from /usr/include/qt4/QtGui/qwidget.h:49,
from /usr/include/qt4/QtGui/QWidget:1,
from ../XRTest/widget.h:5,
from ../XRTest/main.cpp:2:
/usr/include/qt4/QtCore/qdatastream.h:50:2: error: #error qdatastream.h must be included before any header file that defines Status
/usr/include/qt4/QtCore/qdatastream.h:101:10: error: expected identifier before 'int'
/usr/include/qt4/QtCore/qdatastream.h:101:17: error: expected unqualified-id before '{' token
/usr/include/qt4/QtCore/qdatastream.h: In function 'QDataStream& operator>>(QDataStream&, QHash<Key, T>&)':
/usr/include/qt4/QtCore/qdatastream.h:351:18: error: expected unqualified-id before 'int'
/usr/include/qt4/QtCore/qdatastream.h:351:18: error: expected ';' before 'int'
/usr/include/qt4/QtCore/qdatastream.h:359:28: error: 'Ok' is not a member of 'QDataStream'
/usr/include/qt4/QtCore/qdatastream.h:368:24: error: 'Ok' is not a member of 'QDataStream'
/usr/include/qt4/QtCore/qdatastream.h:370:9: error: 'oldStatus' was not declared in this scope
/usr/include/qt4/QtCore/qdatastream.h:370:22: error: 'Ok' is not a member of 'QDataStream'
/usr/include/qt4/QtCore/qdatastream.h: In function 'QDataStream& operator>>(QDataStream&, QMap<aKey, aT>&)':
/usr/include/qt4/QtCore/qdatastream.h:395:18: error: expected unqualified-id before 'int'
/usr/include/qt4/QtCore/qdatastream.h:395:18: error: expected ';' before 'int'
/usr/include/qt4/QtCore/qdatastream.h:405:28: error: 'Ok' is not a member of 'QDataStream'
/usr/include/qt4/QtCore/qdatastream.h:414:24: error: 'Ok' is not a member of 'QDataStream'
/usr/include/qt4/QtCore/qdatastream.h:416:9: error: 'oldStatus' was not declared in this scope
/usr/include/qt4/QtCore/qdatastream.h:416:22: error: 'Ok' is not a member of 'QDataStream'
make: *** [main.o] Error 1
make: Leaving directory `/home/fluffy/Work/XRTest-build-desktop-Qt_4_8_3___PATH___________________'
09:26:20: Процесс «/usr/bin/make» завершился с кодом 2.
Возникла ошибка при сборке/установке проекта XRTest (цель: Desktop)
Во время выполнения этапа «Сборка»
что я делаю не так?