Форум русскоязычного сообщества Ubuntu


Получить помощь и пообщаться с другими пользователями Ubuntu можно
на irc канале #ubuntu-ru в сети Freenode
и в Jabber конференции ubuntu@conference.jabber.ru

Автор Тема: Установка PyQt. Вопросы  (Прочитано 2114 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн nautiluss

  • Автор темы
  • Новичок
  • *
  • Сообщений: 1
    • Просмотр профиля
Установка PyQt. Вопросы
« : 11 Февраля 2012, 18:27:19 »
Доброе время!
Возникла необходимость установки PyQt на Ubuntu 10.04, ядро собрано для работы в реалтайме (я думаю это не важно).
Установлен Python 2.6.5, поставил "SIP-4.13.2" затем "Qt 4 gmake Makefile generator tool" затем получил затык  при команде $ python ./config.py :

Failed  to determining  the layout of your Qt installation. Try again using the --verbose flag to see more detail about the problem.
Determining the layout of your Qt installation...
/usr/bin/qmake -o qtdirs.mk qtdirs.pro
make -f qtdirs.mk
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4 -I. -o qtdirs.o qtdirs.cpp
qtdirs.cpp:1:28: error: QCoreApplication: No such file or directory
qtdirs.cpp:2:17: error: QFile: No such file or directory
qtdirs.cpp:3:24: error: QLibraryInfo: No such file or directory
qtdirs.cpp:4:23: error: QTextStream: No such file or directory
qtdirs.cpp: In function ‘int main(int, char**)’:
qtdirs.cpp:8: error: ‘QCoreApplication’ was not declared in this scope
qtdirs.cpp:8: error: expected ‘;’ before ‘app’
qtdirs.cpp:9: error: ‘QFile’ was not declared in this scope
qtdirs.cpp:9: error: expected ‘;’ before ‘outf’
qtdirs.cpp:11: error: ‘outf’ was not declared in this scope
qtdirs.cpp:11: error: ‘QIODevice’ has not been declared
qtdirs.cpp:11: error: ‘QIODevice’ has not been declared
qtdirs.cpp:11: error: ‘QIODevice’ has not been declared
qtdirs.cpp:14: error: ‘QTextStream’ was not declared in this scope
qtdirs.cpp:14: error: expected ‘;’ before ‘out’
qtdirs.cpp:16: error: ‘out’ was not declared in this scope
qtdirs.cpp:16: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:16: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:17: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:17: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:18: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:18: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:19: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:19: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:20: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:20: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:21: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:21: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:23: error: ‘QT_VERSION’ was not declared in this scope
qtdirs.cpp:24: error: ‘QT_EDITION’ was not declared in this scope
qtdirs.cpp:26: error: ‘QLibraryInfo’ has not been declared
qtdirs.cpp:92: error: ‘qreal’ was not declared in this scope
qtdirs.cpp: At global scope:
qtdirs.cpp:6: warning: unused parameter ‘argc’
qtdirs.cpp:6: warning: unused parameter ‘argv’
make: *** [qtdirs.o] Error 1
Error: Failed to determine the layout of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.


Только это в консоль вываливается. Даже не знаю куда копать. Выручайте!
« Последнее редактирование: 11 Февраля 2012, 18:40:04 от nautiluss »

Оффлайн RazrFalcon

  • O_o
  • Старожил
  • *
  • Сообщений: 3129
  • Zombie Mod
    • Просмотр профиля
    • Я на GitHub
Re: Установка PyQt. Вопросы
« Ответ #1 : 11 Февраля 2012, 22:40:54 »
1-я строчка
Try again using the --verbose flag to see more detail about the problem.
Зачем вы вообще его собираете? Есть же в репах.
Gentoo + KDE, Official Windows Hater
Хотите помочь нашей вики: https://help.ubuntu.ru/wiki/fixme

Оффлайн Yurror

  • Старожил
  • *
  • Сообщений: 1966
    • Просмотр профиля
Re: Установка PyQt. Вопросы
« Ответ #2 : 12 Февраля 2012, 05:48:14 »
В общем согласен.
Если надо просто установить ставь из репов
Если хочешь разобраться что да как - разбирайся. И задавать в этом случае ты должен другие вопросы, а еще много много читать
Короче, конкретизируй вопрос.

andrey_p

  • Гость
Re: Установка PyQt. Вопросы
« Ответ #3 : 12 Февраля 2012, 11:12:24 »
При ручной сборке, особенно больших программ/пакетов, всегда вылазят дополнительные зависимости, как правило в виде dev-пакетов каких-либо библиотек. Вывод или читать readme, или гуглить, или же, самое простое и, работающее в 90% (но только в 90) случаях - apt-get build-dep <DEB-PACKAGE> - в данном случае:

sudo apt-get build-dep python-qt4
Могут еще понадобится зависимости для python-qt4-{sql,gl,phonon} и т.п.:

apt-cache search python-qt4

 

Страница сгенерирована за 0.05 секунд. Запросов: 25.