ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] компиляция программs на qt4
@ 2007-06-08 13:01 Шенцев Алексей Владимирович
  2007-06-08 13:09 ` Epiphanov Sergei
  2007-06-08 13:11 ` Epiphanov Sergei
  0 siblings, 2 replies; 6+ messages in thread
From: Шенцев Алексей Владимирович @ 2007-06-08 13:01 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

Привет всем!

Имеем:

-(ashen@oasu3)-(~/work/pascal/qt4pas-1.35)-> set | grep QT
QTDIR=/usr/lib/qt4/
QTINC=/usr/lib/qt4/include/
QTLIB=/usr/lib/qt4/lib/

-(ashen@oasu3)-(~/work/pascal/qt4pas-1.35)-> ls /usr/lib/qt4/lib | grep 
libQtCore && ls /usr/lib/qt4/lib | grep libQtGu
libQtCore.so
libQtCore.so.4
libQtCore.so.4.3
libQtCore.so.4.3.0
libQtGui.so
libQtGui.so.4
libQtGui.so.4.3
libQtGui.so.4.3.0

-(ashen@oasu3)-(~/work/pascal/qt4pas-1.35)-> cat compile_lib.bash
#!/bin/sh
export QT4=$QTDIR
export QT4I=$QTINC
export LD_LIBRARY_PATH=$QTLIB
if [ -e "$LD_LIBRARY_PATH/libQtCore.so.4" ]
then
g++ -D LINUX -I. -I$QT4I -I$QT4I/Qt -I$QT4I/QtGui -I$QT4I/QtCore qtpas.cpp -o 
libqt4intf.so -shared -fPIC libQtCore.so.4 
libQtGui.so.4 -Xlinker "-soname=libqt4intf.so"
strip --strip-all libqt4intf.so
else
echo "Please Modify location of Qt4 in this script"
fi


Получаю:
-(ashen@oasu3)-(~/work/pascal/qt4pas-1.35)-> ./compile_lib.bash
i586-alt-linux-g++: libQtCore.so.4: Нет такого файла или каталога
i586-alt-linux-g++: libQtGui.so.4: Нет такого файла или каталога
strip: 'libqt4intf.so': No such file

Что не так делаю?

-- 
С уважением Шенцев Алексей Владимирович.
E-mail: ashen@nsrz.ru
XMPP: ashen@altlinux.org, AlexShen@jabber.ru
ICQ: 271053845

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

* Re: [sisyphus] компиляция программs на qt4
  2007-06-08 13:01 [sisyphus] компиляция программs на qt4 Шенцев Алексей Владимирович
@ 2007-06-08 13:09 ` Epiphanov Sergei
  2007-06-08 13:11 ` Epiphanov Sergei
  1 sibling, 0 replies; 6+ messages in thread
From: Epiphanov Sergei @ 2007-06-08 13:09 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

В сообщении от Friday 08 June 2007 17:01:21 Шенцев Алексей Владимирович 
написал(а):

> g++ -D LINUX -I. -I$QT4I -I$QT4I/Qt -I$QT4I/QtGui -I$QT4I/QtCore qtpas.cpp
> -o libqt4intf.so -shared -fPIC libQtCore.so.4
> libQtGui.so.4 -Xlinker "-soname=libqt4intf.so"

А где -L$QTLIB?

-- 
С уважением, Епифанов Сергей

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

* Re: [sisyphus] компиляция программs на qt4
  2007-06-08 13:01 [sisyphus] компиляция программs на qt4 Шенцев Алексей Владимирович
  2007-06-08 13:09 ` Epiphanov Sergei
@ 2007-06-08 13:11 ` Epiphanov Sergei
  2007-06-08 13:21   ` Шенцев Алексей Владимирович
  2007-06-08 14:55   ` Шенцев Алексей Владимирович
  1 sibling, 2 replies; 6+ messages in thread
From: Epiphanov Sergei @ 2007-06-08 13:11 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

В сообщении от Friday 08 June 2007 17:01:21 Шенцев Алексей Владимирович 
написал(а):
> g++ -D LINUX -I. -I$QT4I -I$QT4I/Qt -I$QT4I/QtGui -I$QT4I/QtCore qtpas.cpp
> -o libqt4intf.so -shared -fPIC libQtCore.so.4

Вру, надо -lQtCore, ну и остальные библиотеки до кучи.

-- 
С уважением, Епифанов Сергей

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

* Re: [sisyphus] компиляция программs на qt4
  2007-06-08 13:11 ` Epiphanov Sergei
@ 2007-06-08 13:21   ` Шенцев Алексей Владимирович
  2007-06-09  7:21     ` Epiphanov Sergei
  2007-06-08 14:55   ` Шенцев Алексей Владимирович
  1 sibling, 1 reply; 6+ messages in thread
From: Шенцев Алексей Владимирович @ 2007-06-08 13:21 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

В сообщении от Friday 08 June 2007 17:11:39 Epiphanov Sergei написал(а):
> Вру, надо -lQtCore, ну и остальные библиотеки до кучи.
Как должно правильно выглядить напиши для примера, плиз.
Это не мой код. Это я пытаюсь собрать одну программу из инета.
-- 
С уважением Шенцев Алексей Владимирович.
E-mail: ashen@nsrz.ru
XMPP: ashen@altlinux.org, AlexShen@jabber.ru
ICQ: 271053845

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

* Re: [sisyphus] компиляция программs на qt4
  2007-06-08 13:11 ` Epiphanov Sergei
  2007-06-08 13:21   ` Шенцев Алексей Владимирович
@ 2007-06-08 14:55   ` Шенцев Алексей Владимирович
  1 sibling, 0 replies; 6+ messages in thread
From: Шенцев Алексей Владимирович @ 2007-06-08 14:55 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

В сообщении от Friday 08 June 2007 17:11:39 Epiphanov Sergei написал(а):
> В сообщении от Friday 08 June 2007 17:01:21 Шенцев Алексей Владимирович
>
> написал(а):
> > g++ -D LINUX -I. -I$QT4I -I$QT4I/Qt -I$QT4I/QtGui -I$QT4I/QtCore
> > qtpas.cpp -o libqt4intf.so -shared -fPIC libQtCore.so.4
>
> Вру, надо -lQtCore, ну и остальные библиотеки до кучи.

Вот так у меня собралось:
g++ -D LINUX -I. -I$QT4I -I$QT4I/Qt -I$QT4I/QtGui -I$QT4I/QtCore qtpas.cpp -o 
libqt4intf.so -shared -fPIC -lQtCore -lQtGui  -Xlinker "-soname=libqt4intf.so"

Правильная команда ?


-- 
С уважением Шенцев Алексей Владимирович.
E-mail: ashen@nsrz.ru
XMPP: ashen@altlinux.org, AlexShen@jabber.ru
ICQ: 271053845

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

* Re: [sisyphus] компиляция программs на qt4
  2007-06-08 13:21   ` Шенцев Алексей Владимирович
@ 2007-06-09  7:21     ` Epiphanov Sergei
  0 siblings, 0 replies; 6+ messages in thread
From: Epiphanov Sergei @ 2007-06-09  7:21 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

В сообщении от Friday 08 June 2007 17:21:36 Шенцев Алексей Владимирович 
написал(а):
> > Вру, надо -lQtCore, ну и остальные библиотеки до кучи.
>
> Как должно правильно выглядить напиши для примера, плиз.
> Это не мой код. Это я пытаюсь собрать одну программу из инета.

В личку отправил Makefile для одного из моих проектов. Там всё видно.

-- 
С уважением, Епифанов Сергей

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

end of thread, other threads:[~2007-06-09  7:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-08 13:01 [sisyphus] компиляция программs на qt4 Шенцев Алексей Владимирович
2007-06-08 13:09 ` Epiphanov Sergei
2007-06-08 13:11 ` Epiphanov Sergei
2007-06-08 13:21   ` Шенцев Алексей Владимирович
2007-06-09  7:21     ` Epiphanov Sergei
2007-06-08 14:55   ` Шенцев Алексей Владимирович

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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