[Kwintv] hello and first impressions (build problems)

Hans-Peter Jansen kwintv@mail.kde.org
Thu, 19 Dec 2002 19:33:18 +0100


Hi *,

me, male, 37, just subscribed. Here are my first impressions of current C=
VS:

[SuSE 8.1, KDE 3.0.4, Linux 2.4.20]

As suggested in http://www.kwintv.org/cvsinfo.html, I compiled libsearch,
librss and kdedb before, but the last bailed out with:

/home/hp/CVS/kwintv/kdenonbeta/kdedb/plugins/postgres
make[2]: Wechsel in das Verzeichnis =BB/home/hp/CVS/kwintv/kdenonbeta/kde=
db/plugins/postgres=AB
source=3D'factory.cpp' object=3D'factory.lo' libtool=3Dyes \
depfile=3D'.deps/factory.Plo' tmpdepfile=3D'.deps/factory.TPlo' \
depmode=3Dgcc3 /bin/sh ../../../admin/depcomp \
/bin/sh ../../../libtool --silent --mode=3Dcompile --tag=3DCXX g++ -DHAVE=
_CONFIG_H -I. -I.=20
-I../../.. -I../../../kdedb -I../../../kio -I/usr/include/pgsql -I/opt/kd=
e3/include=20
-I/usr/lib/qt3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REE=
NTRANT =20
-Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-ar=
ith=20
-Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=3D500 -D_BSD_S=
OURCE=20
-Wcast-align -Wconversion -O2 -Os -mcpu=3Di586 -march=3Di586 -pipe -fno-e=
xceptions=20
-fno-check-new  -c -o factory.lo `test -f 'factory.cpp' || echo './'`fact=
ory.cpp
factory.cpp: In function `void* init_libkdb_postgres()':
factory.cpp:49: cannot allocate an object of type `Factory'
factory.cpp:49:   because the following virtual functions are abstract:
/opt/kde3/include/klibloader.h:321:     virtual QObject*=20
   KLibFactory::createObject(QObject* =3D 0, const char* =3D 0, const cha=
r* =3D=20
   "QObject", const QStringList& =3D QStringList())

Since it seems not to be really needed, let's ignore it for now.

This one is more serious:

make[2]: Wechsel in das Verzeichnis =BB/home/hp/CVS/kwintv/kdenonbeta/kwi=
ntv/kwintv=AB
source=3D'wintvscreen_v4l.cpp' object=3D'wintvscreen_v4l.o' libtool=3Dno =
\
depfile=3D'.deps/wintvscreen_v4l.Po' tmpdepfile=3D'.deps/wintvscreen_v4l.=
TPo' \
depmode=3Dgcc3 /bin/sh ../../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../kwintv -DQT_CLEAN_NAMESPACE -=
I/opt/kde3/includ
e -I/usr/lib/qt3/include -I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_R=
EENTRANT  -Wnon-v
irtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wm=
issing-prototypes
 -Wwrite-strings -ansi -D_XOPEN_SOURCE=3D500 -D_BSD_SOURCE -Wcast-align -=
Wconversion -O2 -Os
 -mcpu=3Di586 -march=3Di586 -pipe -fno-exceptions -fno-check-new  -c -o w=
intvscreen_v4l.o `tes
t -f 'wintvscreen_v4l.cpp' || echo './'`wintvscreen_v4l.cpp
In file included from /usr/include/g++/backward/iostream.h:31,
                 from wintvscreen_v4l.cpp:29:
/usr/include/g++/backward/backward_warning.h:32:2: warning: #warning This=
 file includes at
 least one deprecated or antiquated header. Please consider using one of =
the 32 headers fo
und in section 17.4.1.2 of the C++ standard. Examples include substitutin=
g the <X> header=20
for the <X.h> header for C++ includes, or <sstream> instead of the deprec=
ated header <strs
tream.h>. To disable this warning use -Wno-deprecated.
In file included from wintvscreen_v4l.cpp:58:
/usr/X11R6/include/X11/Xmd.h:134: conflicting types for `typedef long int=
 INT32
   '
/usr/include/jmorecfg.h:161: previous declaration as `typedef int INT32'
wintvscreen_v4l.cpp: In member function `virtual void=20
   WinTVScreen_v4l::newTVGeometry(bool)':
wintvscreen_v4l.cpp:561: warning: comparison between signed and unsigned=20
   integer expressions
wintvscreen_v4l.cpp:568: warning: comparison between signed and unsigned=20
   integer expressions
wintvscreen_v4l.cpp:506: warning: unused parameter `bool doViewRefresh'
wintvscreen_v4l.cpp: In member function `virtual void=20
   WinTVScreen_v4l::snapShotSLOT(const char*, int, int, int, int, int)':
wintvscreen_v4l.cpp:815: warning: ISO C++ forbids variable-size array `rp=
'
wintvscreen_v4l.cpp:845: warning: the address of `QTextStream&=20
   dec(QTextStream&)', will always be `true'
wintvscreen_v4l.cpp:845: warning: the address of `QTextStream&=20
   dec(QTextStream&)', will always be `true'
wintvscreen_v4l.cpp: In member function `virtual void=20
   WinTVScreen_v4l::changeAudioVolumeSLOT(int, int)':
wintvscreen_v4l.cpp:1011: warning: unused parameter `int vl'
wintvscreen_v4l.cpp:1011: warning: unused parameter `int vr'
/usr/include/g++/streambuf: At top level:
v4lxif.h:47: warning: `STRSTRTAB device_cap[11]' defined but not used
v4lxif.h:61: warning: `const char*device_pal[16]' defined but not used
v4lxif.h:71: warning: `STRTAB audiomode[6]' defined but not used
v4lxif.h:85: warning: `STRTAB norms[5]' defined but not used
v4lxif.h:93: warning: `STRTAB norms_bttv[8]' defined but not used
v4lxif.h:104: warning: `STRTAB ifname[4]' defined but not used
dimensions.h:32: warning: `restab cv_dimensions[10]' defined but not used
videoclip.h:36: warning: `GRAB_FORMAT avi_formats[4]' defined but not use=
d
videoclip.h:43: warning: `GRAB_FORMAT file_formats[4]' defined but not us=
ed
videoclip.h:55: warning: `GRAB_FORMAT raw_formats[6]' defined but not use=
d
make[2]: *** [wintvscreen_v4l.o] Fehler 1
make[2]: Verlassen des Verzeichnisses =BB/home/hp/CVS/kwintv/kdenonbeta/k=
wintv/kwintv=AB
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlassen des Verzeichnisses =BB/home/hp/CVS/kwintv/kdenonbeta/k=
wintv/kwintv=AB
make: *** [all-recursive] Fehler 1

[smells like some SuSE related setup glitch]

Let's step over to kwintv3:

In order to compile it, I had to patch a few files:
 - in /usr/lib/libzvbi.h "vbi_export *export" -> "vbi_export *_export" re=
placed
   (gcc3 seems to regard export as a keyword)
 - no /usr/lib/libGL.la Datei, but /usr/lib/libGLU.la contains a referenc=
e to it
   (removed this reference, could have historical local reasons, similar =
problems
   prevented me linking v4lgrab a few days before)
 - this patch:

--- qtvision/channelimportdlg.h~        2002-12-19 11:58:46.000000000 +01=
00
+++ qtvision/channelimportdlg.h 2002-12-19 12:02:28.000000000 +0100
@@ -29,10 +29,11 @@
=20
     QListView* _channelList;
     QPushButton* _ok;
     QPushButton* _cancel;
=20
+    QtVision *_qtv;
=20
 public slots:
     virtual void enableImport();
     virtual void init();
     virtual void populateWithDefaults();
@@ -40,9 +41,8 @@
=20
 protected:
     QGridLayout* ChannelImportDlgLayout;
     QHBoxLayout* Layout22;
=20
-    QtVision *_qtv;
 };
=20
 #endif // CHANNELIMPORTDLG_H

That did it. Just to let you know.

I've encountered one strange behaviour, besides not preserving kwintv's=20
channel order: on exit, it turns the general volume level down to zero,=20
which deviates from xawtvs and kwintvs behaviour. They mute the tv audio=20
channel. v4lgrab works the same with v4l in this respect since last=20
weekend, thanks to Marcus<wink>.

Sorry for the unsane line lenghts in this message.

Have-a-nice-day-ly y'rs,
Hans-Peter