ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: anterior <anterior@inbox.ru>
To: community@altlinux.ru
Subject: [Comm] Компиляция программ на QT. Как ???
Date: Mon, 4 Apr 2005 16:30:31 +0400
Message-ID: <200504041630.31798.anterior@inbox.ru> (raw)

Я не могу скомпилировать программу с использованием библиотеки QT3 на Мастере 
2.2. Например, стандартный пример программы ../examples/qdir, выдает такое:
$ g++ qdir.cpp -I/usr/include/linux-default/include -I/usr/lib/qt3/include 
-I/usr/X11R6/include -L/usr/X11R6/lib -L/usr/lib/qt3/lib -lqt

/home/maxim/tmp/ccVbOf6y.o: In function `PixmapView::PixmapView(QWidget *)':
/home/maxim/tmp/ccVbOf6y.o(.text+0x16): undefined reference to 
`QScrollView::QScrollView(QWidget *, char const *, unsigned int)'
/home/maxim/tmp/ccVbOf6y.o(.text+0x20): undefined reference to 
`PixmapView::QPaintDevice virtual table'
/home/maxim/tmp/ccVbOf6y.o(.text+0x27): undefined reference to `PixmapView 
virtual table'
<...>

Не компилируется ни одна программа с использованием QT3. Частично 
компилировались программы на QT2 (только простейшие). 95% стандартных 
примеров не компилировались. Выдавали что-то в духе "undefined reference to 
`XXX virtual table' ". Я перешел с любимого компакта на Мастер 2.2, только по 
этой причине, но оказалось и в мастере та же ошибка. Пакеты libqt2, 
libqt2-devel, libqt3, libqt3-devel, и все что с ними связано установлено. 
Установил даже kdevelop. В файл ~/.bash_profile добавил
QTDIR=/usr/lib/qt3/
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:/usr/lib/qt2/lib:$LD_LIBRARY_PATH
MOC=$QTDIR/bin/moc
UIC=$QTDIR/bin/uic
export QTDIR PATH MANPATH LD_LIBRARY_PATH MOC UIC

Версия qt-3.1.1, gcc/++ 2.95.3 (пробовал и с gcc 3.2, gcc 2.96). Как я понимаю 
ошибка в том что компилятор не может найти какую-то QT-ную библиотеку.  Но я 
ведь всё же выполнил то о чем писалось в доке QT/installation.html. Чего еще 
нужно. 

ЗЫ: ПОЖАЛУЙСТА ОТВЕТЬТЕ НА МОЙ ВОПРОС. КОТОРУЮ НЕДЕЛЮ Я ВОЖУСЬ С ЭТОЙ ОШИБКОЙ. 
ГДЕ НУЖНО КОПАТЬ, ЧТО НЕ ТАК. НАВЕРНОЕ Я НЕ ОДИН ТАКОЙ У КОГО БЫВАЛИ ТАКИЕ 
ПРОБЛЕМЫ. 

             reply	other threads:[~2005-04-04 12:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-04 12:30 anterior [this message]
2005-04-04  7:54 ` Andrey Rahmatullin
2005-04-04  8:17 ` Eugene Ostapets
2005-04-04  8:33 ` Vitaly Lipatov

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=200504041630.31798.anterior@inbox.ru \
    --to=anterior@inbox.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