ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "anterior" <p.maxim@mail.ru>
To: "rassilka" <community@altlinux.ru>
Subject: [Comm] Последний шаг в компиляции qt проекта - help please!
Date: Tue, 3 Aug 2004 22:23:02 +0900
Message-ID: <000701c4795d$07f199d0$11692ec3@ats> (raw)

Доброго времени суток пингвины! ;) Дело тут такое, хочу по человечески
програмить с использованием библиотеки qt 2.3. Слава богу пакеты qt-devel,
qt-designer, gcc-c++, и тд. и тп. поставил, в qt-designere создал диалог
поместил туда кнопку, сохранил. Потом из *.ui файла начал жать соки - выжал,
получилось что:
form.ui - моя тест-форма
form.h/form.cpp - заголовки и исходники класса моей формы соотв.
moc_form.cpp - какая-то хрень без которой нельзя обойтись(все никак
запомнить немогу для чего она мне нужна ;)
Ну и наконец создал файл form_test.cpp - там точка входа. Почитал в мануале
как компилить на примере очень похожего проекта(дословно):
-----------
$g++ -l$QTDIR/include PizzaEntry.cpp PizzaEntryTest.cpp &bsol;
moc_PizzaEntry.cpp -L$QTDIR/lib -lqt
-----------
Ну так как у меня две версии QT 2 и 3, в переменной QTDIR храниться путь к
qt3, я решил заменить $QTDIR на /usr/lib/qt2
Вот что у меня получилось:
-----------
[root@localhost qt-prj]# g++ -l/usr/lib/qt2/include form.cpp form_test.cpp
&bsol; moc_form.cpp -L/usr/lib/qt2/lib -lqt
[1] 2978
In file included from form.cpp:9bash: bsol: command not found
:
form.h:12:22: qvariant.h: No such file or directory
form.h:13:21: qdialog.h: No such file or directory
form.cpp:11:25: qpushbutton.h: No such file or directory
form.cpp:12:21: qlayout.h: No such file or directory
form.cpp:13:22: qvariant.h: No such file or directory
form.cpp:14:22: qtooltip.h: No such file or directory
form.cpp:15:24: qwhatsthis.h: No such file or directory
form_test.cpp:1:26: qapplication.h: No such file or directory
In file included from form_test.cpp:2:
form.h:12:22: qvariant.h: No such file or directory
form.h:13:21: qdialog.h: No such file or directory
bash: moc_form.cpp: command not found
[1]+  Exit 1                  g++ -l/usr/lib/qt2/include form.cpp
form_test.cpp
-----------
Ну почему :0? Ведь я ему четко указал где искать заголовки что за бред?
Помогите разобраться. У меня Compact 2.3



             reply	other threads:[~2004-08-03 13:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-03 13:23 anterior [this message]
2004-08-03 13:56 ` Sergey V Turchin
2004-08-03 14:14 ` Gleb Stiblo
2004-08-03 14:24   ` Gleb Stiblo
2004-08-03 17:05 ` Andrey Rahmatullin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000701c4795d$07f199d0$11692ec3@ats' \
    --to=p.maxim@mail.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git