Mailing List Archive

Problems compiling CVS on debian (QT-Problem?)
Hi All,

i hav Debian Testing/Unstable running.

When i try to compile mythtv i get a lot of errors like
../../libs/libmyth/libmyth-0.9.so: undefined reference to
`QButtonGroup::qt_emit(int, QUObject *)'
../../libs/libmyth/libmyth-0.9.so: undefined reference to
`QTextEdit::doKeyboardAction(QTextEdit::KeyboardAction)'
../../libs/libmyth/libmyth-0.9.so: undefined reference to
`QWidget::closeEvent(QCloseEvent *)'
../../libs/libmyth/libmyth-0.9.so: undefined reference to
`QCString::stripWhiteSpace(void) const'
../../libs/libmyth/libmyth-0.9.so: undefined reference to `QLibrary type_info
function'
../../libs/libmyth/libmyth-0.9.so: undefined reference to
`QScrollView::mouseReleaseEvent(QMouseEvent *)'

I have these packages installed.

libqt3-mt-dev
libqt3c102-mt
libqt3c102-mt-mysql
libqwt-dev
libqwt0c102
qt3-dev-tools
qt3-dev-tools-compat

QTDIR=/usr/share/qt3
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/share/qt3:/usr/share/qt3/bin
LD_LIBRARY_PATH=/usr/share/qt3/lib:

Do I need another package?

Can anyone help me please.

Thx
Flo
Re: Problems compiling CVS on debian (QT-Problem?) [ In reply to ]
Replies below.

At 06:09 PM 4/25/2003 +0200, Florian Zierer wrote:
>Hi All,
>
>i hav Debian Testing/Unstable running.

Testing (Sarge) and Unstable (Sd) are different Debian versions. Do you
mean you are running some mix of the two?

>When i try to compile mythtv i get a lot of errors like
>../../libs/libmyth/libmyth-0.9.so: undefined reference to
>`QButtonGroup::qt_emit(int, QUObject *)'
>../../libs/libmyth/libmyth-0.9.so: undefined reference to
>`QTextEdit::doKeyboardAction(QTextEdit::KeyboardAction)'
>../../libs/libmyth/libmyth-0.9.so: undefined reference to
>`QWidget::closeEvent(QCloseEvent *)'
>../../libs/libmyth/libmyth-0.9.so: undefined reference to
>`QCString::stripWhiteSpace(void) const'
>../../libs/libmyth/libmyth-0.9.so: undefined reference to `QLibrary type_info
>function'
>../../libs/libmyth/libmyth-0.9.so: undefined reference to
>`QScrollView::mouseReleaseEvent(QMouseEvent *)'
>
>I have these packages installed.
>
>libqt3-mt-dev
>libqt3c102-mt
> libqt3c102-mt-mysql
> libqwt-dev
> libqwt0c102
>qt3-dev-tools
>qt3-dev-tools-compat
>
>QTDIR=/usr/share/qt3
>PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/share/qt3:/usr/share/qt3/bin
>LD_LIBRARY_PATH=/usr/share/qt3/lib:
>
>Do I need another package?

I can't be certain, but if you run "apt-cache search libqt |grep dev" on
Sid, you should get the following:

autovcr@kuryakin:~$ apt-cache search libqt |grep dev
kde-devel - The K Desktop Environment (development files)
libguile-dev - Development headers and static library for libguile.
libqt-dev - Qt GUI development files
libqt-mt-dev - Qt GUI development files (Threaded version)
libqt3-dev - Qt development files
libqt3-mt-dev - Qt development files (Threaded)
libqtcups-dev - Qt interface library for CUPS (development files)
libqte-mt3-dev - Qt/Embedded GUI (Threaded Version) development files
libqte2-dev - Qt/Embedded GUI development headers

looking at this list and the example errors you posted, I'd suspect you
need either libqt-dev or libqt3-dev (or both).

Also, while you list the libqwt-dev package, you do not list the
corresponding runtime package ("libqwt0c102 - Qt widgets library for
technical applications (runtime)"). A -dev package without the
corresponding runtime library is pretty much useless (unless you are
running on a different system from the one you compile on).
Re: Problems compiling CVS on debian (QT-Problem?) [ In reply to ]
Hi Ray,

Am Freitag, 25. April 2003 18:32 schrieb Ray Olszewski:

> Testing (Sarge) and Unstable (Sd) are different Debian versions. Do you
> mean you are running some mix of the two?

I had, until yesterday. Today i made a dist-upgrade and now it should be only
unstable.
But now i get new errors.


make[2]: Entering directory `/home/florian/src/mythtv/MC/programs/mythepg'
g++ -o mythepg main.o -L/usr/share/qt3/lib -L/usr/X11R6/lib
-L../../libs/libmyth -L../../libs/libmythtv -L../../libs/libavcodec
-L../../libs/libvbitext -L../../libs/libavformat -lmythtv -lavformat
-lavcodec -lvbitext -lmyth-0.9 -lXv -lXinerama -lmp3lame -lqt-mt -lXext -lX11
-lm -lpthread
../../libs/libmythtv/libmythtv.a(tv_play.o)(.text+0x37a): In function
`TV::TV[not-in-charge](QSqlDatabase*)':
: undefined reference to `vtable for TV'
../../libs/libmythtv/libmythtv.a(tv_play.o)(.text+0x8ca): In function
`TV::TV[in-charge](QSqlDatabase*)':
: undefined reference to `vtable for TV'
../../libs/libmythtv/libmythtv.a(tv_play.o)(.text+0x1072): In function
`TV::~TV [not-in-charge]()':
: undefined reference to `vtable for TV'
../../libs/libmythtv/libmythtv.a(tv_play.o)(.text+0x1262): In function
`TV::~TV [in-charge]()':
: undefined reference to `vtable for TV'
../../libs/libmythtv/libmythtv.a(tv_play.o)(.text+0x1452): In function
`TV::~TV [in-charge deleting]()':
: undefined reference to `vtable for TV'
../../libs/libmythtv/libmythtv.a(tv_play.o)(.text+0x16dc): In function
`TV::LiveTV()':
: undefined reference to `TV::tr(char const*, char const*)'
../../libs/libmythtv/libmythtv.a(tv_play.o)(.text+0x1723): In function
`TV::LiveTV()':
: undefined reference to `TV::tr(char const*, char const*)'
../../libs/libmythtv/libmythtv.a(tv_play.o)(.text+0x193c): In function
`TV::AllowRecording(QString const&, int)':
: undefined reference to `TV::tr(char const*, char const*)'
../../libs/libmythtv/libmythtv.a(tv_play.o)(.text+0x19b8): In function
`TV::AllowRecording(QString const&, int)':
: undefined reference to `TV::tr(char const*, char const*)'
../../libs/libmythtv/libmythtv.a(tv_play.o)(.text+0x1a34): In function
`TV::AllowRecording(QString const&, int)':
: undefined reference to `TV::tr(char const*, char const*)'
../../libs/libmythtv/libmythtv.a(tv_play.o)(.text+0x4ec1): more undefined
references to `TV::tr(char const*, char const*)' follow
collect2: ld returned 1 exit status
make[2]: *** [mythepg] Fehler 1
make[2]: Leaving directory `/home/florian/src/mythtv/MC/programs/mythepg'
make[1]: *** [sub-mythepg] Fehler 2
make[1]: Leaving directory `/home/florian/src/mythtv/MC/programs'
make: *** [sub-programs] Fehler 2



> autovcr@kuryakin:~$ apt-cache search libqt |grep dev
> kde-devel - The K Desktop Environment (development files)
> libguile-dev - Development headers and static library for
> libguile. libqt-dev - Qt GUI development files
> libqt-mt-dev - Qt GUI development files (Threaded version)
> libqt3-dev - Qt development files
> libqt3-mt-dev - Qt development files (Threaded)
> libqtcups-dev - Qt interface library for CUPS (development files)
> libqte-mt3-dev - Qt/Embedded GUI (Threaded Version) development
> files libqte2-dev - Qt/Embedded GUI development headers
>
> looking at this list and the example errors you posted, I'd suspect you
> need either libqt-dev or libqt3-dev (or both).

I have libqt3-mt-dev installed.

And the
QTDIR=/usr/share/qt3
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/share/qt3:/usr/share/qt3/bin
LD_LIBRARY_PATH=/usr/share/qt3/lib:

are also set.

Any hints?

Thx
Flo
Re: Problems compiling CVS on debian (QT-Problem?) [ In reply to ]
On Saturday 26 April 2003 10:05 pm, Florian Zierer wrote:
> Hi Ray,
>
> Am Freitag, 25. April 2003 18:32 schrieb Ray Olszewski:
> > Testing (Sarge) and Unstable (Sd) are different Debian versions. Do you
> > mean you are running some mix of the two?
>
> I had, until yesterday. Today i made a dist-upgrade and now it should be
> only unstable.
> But now i get new errors.

Do a make distclean in the mythtv source.

Isaac