ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Последний шаг в компиляции qt проекта - help please!
@ 2004-08-03 13:23 anterior
  2004-08-03 13:56 ` Sergey V Turchin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: anterior @ 2004-08-03 13:23 UTC (permalink / raw)
  To: rassilka

Доброго времени суток пингвины! ;) Дело тут такое, хочу по человечески
програмить с использованием библиотеки 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 \
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
\ 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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Comm] Последний шаг в компиляции qt проекта - help please!
  2004-08-03 13:23 [Comm] Последний шаг в компиляции qt проекта - help please! anterior
@ 2004-08-03 13:56 ` Sergey V Turchin
  2004-08-03 14:14 ` Gleb Stiblo
  2004-08-03 17:05 ` Andrey Rahmatullin
  2 siblings, 0 replies; 5+ messages in thread
From: Sergey V Turchin @ 2004-08-03 13:56 UTC (permalink / raw)
  To: community

[-- Attachment #1: Type: text/plain, Size: 303 bytes --]

В сообщении от Вторник 03 Август 2004 17:23 anterior написал(a):

[...]

> bsol: command not found 
Хто ето? :-)

> Ведь я ему четко указал где искать заголовки
Не заметил

[...]

-- 
Regards, Sergey, ALT Linux Team, http://www.altlinux.ru
http://stinkfoot.org:11371/pks/lookup?op=get&search=0x1C2A3F08

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Comm] Последний шаг в компиляции qt проекта - help please!
  2004-08-03 13:23 [Comm] Последний шаг в компиляции qt проекта - help please! anterior
  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
  2 siblings, 1 reply; 5+ messages in thread
From: Gleb Stiblo @ 2004-08-03 14:14 UTC (permalink / raw)
  To: community

On Tue, Aug 03, 2004 at 10:23:02PM +0900, anterior wrote:
[...]
a> Вот что у меня получилось:
a> -----------
a> [root@localhost qt-prj]# g++ -l/usr/lib/qt2/include form.cpp form_test.cpp
a> \ moc_form.cpp -L/usr/lib/qt2/lib -lqt
 ^^^^^^^^^ уж больно это на HTML entity смахивает. Попробуйте в одну
строку:
g++ -l/usr/lib/qt2/include form.cpp form_test.cpp moc_form.cpp -L/usr/lib/qt2/lib -lqt

[...]

Всего,
Глеб.
-- 
Gleb Stiblo AKA UlfR 	<g.stiblo@sam-solutions.net>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Comm] Последний шаг в компиляции qt проекта - help please!
  2004-08-03 14:14 ` Gleb Stiblo
@ 2004-08-03 14:24   ` Gleb Stiblo
  0 siblings, 0 replies; 5+ messages in thread
From: Gleb Stiblo @ 2004-08-03 14:24 UTC (permalink / raw)
  To: community

On Tue, Aug 03, 2004 at 05:14:41PM +0300, Gleb Stiblo wrote:
GS> [...]
a>> Вот что у меня получилось:
a>> -----------
a>> [root@localhost qt-prj]# g++ -l/usr/lib/qt2/include form.cpp form_test.cpp
a>> &bsol; moc_form.cpp -L/usr/lib/qt2/lib -lqt
GS>  ^^^^^^^^^ уж больно это на HTML entity смахивает. Попробуйте в одну
GS> строку:
GS> g++ -l/usr/lib/qt2/include form.cpp form_test.cpp moc_form.cpp -L/usr/lib/qt2/lib -lqt
В догонку, не -l/usr/lib/qt2/include, а -I/usr/lib/qt2/include. Т.е.:
g++ -I/usr/lib/qt2/include form.cpp form_test.cpp moc_form.cpp -L/usr/lib/qt2/lib -lqt

GS> [...]

-- 
Gleb Stiblo AKA UlfR 	<g.stiblo@sam-solutions.net>



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Comm] Последний шаг в компиляции qt проекта - help please!
  2004-08-03 13:23 [Comm] Последний шаг в компиляции qt проекта - help please! anterior
  2004-08-03 13:56 ` Sergey V Turchin
  2004-08-03 14:14 ` Gleb Stiblo
@ 2004-08-03 17:05 ` Andrey Rahmatullin
  2 siblings, 0 replies; 5+ messages in thread
From: Andrey Rahmatullin @ 2004-08-03 17:05 UTC (permalink / raw)
  To: rassilka

On Tue, Aug 03, 2004 at 10:23:02PM +0900, anterior wrote:
>qt 2.3
А чем qt3 не нравится?

>moc_form.cpp - какая-то хрень без которой нельзя обойтись(все никак
>запомнить немогу для чего она мне нужна ;)
Для того, чтобы работали qt-расширения C++ (слоты, в частности).

-- 
WBR, wRAR (ALT Linux Team)

Кто-нибудь сталкивался с конкретными винмодемами, драйверы для которых   
заработали?
		-- aen in devel@


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-08-03 17:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-03 13:23 [Comm] Последний шаг в компиляции qt проекта - help please! anterior
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

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