Compilation errors for ksimplesound

"Pankaj Laddha" <[email protected]>
Newsgroups gmane.comp.kde.devel.konq-e
Message-ID <[email protected]>
Hi,

I want to implement a plug-in in konqueror, so that I can do some specific
processing based on User choice from the web-page. I understand
"ksimplesound" demonstrate how Konqe can be extended for a custom action
from JavaScript which is what I require in my application.

I have downloaded "konqueror3-embedded-0.2-20031201" version of Konqueror
Embed. I am using QT/e 3.3 version.

I have used following configuration options :
./configure   --prefix=$PREFIX  --without-x  --disable-pcre
--with-javascript=dynamic   --disable-bookmarks    --disable-debug
--disable-selection --disable-closure --enable-jshostext
--enable-dynamic-ssl  --enable-xmlui --enable-add-ons=jsdebug,ksimplesound

I am get following compilation errors :
if /bin/sh ../../../libtool --silent --mode=compile --tag=CXX g++
-DHAVE_CONFIG_H -I. -I. -I../../.. -I./../../dropin -I./../../kdesrc
-I./../../kdesrc/kdecore -I/usr/KonqEmbed-X86/include -I/usr/lib/qt-3.3/include
-I/usr/X11R6/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor
-Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwrite-strings -ansi
-D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
-Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -Wformat-security
-Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common
-DQT_NO_ASCII_CAST  -MT ksimplesound.lo -MD -MP -MF ".deps/ksimplesound.Tpo"
\
  -c -o ksimplesound.lo `test -f 'ksimplesound.cpp' || echo
'./'`ksimplesound.cpp; \
then mv -f ".deps/ksimplesound.Tpo" ".deps/ksimplesound.Plo"; \
else rm -f ".deps/ksimplesound.Tpo"; exit 1; \
fi
In file included from ./../../kdesrc/kjs/function.h:27,
                 from ksimplesound.cpp:155:
./../../kdesrc/kjs/internal.h:33:1: warning: "I18N_NOOP" redefined
In file included from ksimplesound.cpp:26:
./../../dropin/klocale.h:16:1: warning: this is the location of the previous
definition
./../../dropin/kxmlguiclient.h:43: warning: unused parameter 'child'
./../../dropin/kxmlguiclient.h:46: warning: unused parameter 'child'
/usr/lib/qt-3.3/include/qnetworkprotocol.h:58: warning: 'class
QNetworkProtocolFactoryBase' has virtual functions but non-virtual
destructor
/usr/lib/qt-3.3/include/qfiledialog.h:78: warning: 'class QFilePreview' has
virtual functions but non-virtual destructor
ksimplesound.cpp: In constructor 'JsSoundPlay::JsSoundPlay(KSimpleSound*)':
ksimplesound.cpp:160: error: no matching function for call to
'KJS::InternalFunctionImp::InternalFunctionImp()'
./../../kdesrc/kjs/internal.h:516: note: candidates are:
KJS::InternalFunctionImp::InternalFunctionImp(KJS::FunctionPrototypeImp*)
./../../kdesrc/kjs/internal.h:514: note:
KJS::InternalFunctionImp::InternalFunctionImp(const
KJS::InternalFunctionImp&)
ksimplesound.cpp: In function 'void JsSoundExtension(KParts::ReadOnlyPart*,
const KURL&, const QString&, KJS::Object&)':
ksimplesound.cpp:182: error: no matching function for call to
'KJS::Object::toString()'
./../../kdesrc/kjs/value.h:235: note: candidates are: KJS::UString
KJS::Value::toString(KJS::ExecState*) const
ksimplesound.cpp:184: error: no matching function for call to
'KJS::Object::put(const char [5], KJS::Object)'
./../../kdesrc/kjs/object.h:142: note: candidates are: void
KJS::Object::put(KJS::ExecState*, const KJS::UString&, const KJS::Value&,
int)
ksimplesound.cpp: In function 'void konqe_register_libksimplesound()':
ksimplesound.cpp:206: error: invalid conversion from 'void
(*)(KParts::ReadOnlyPart*, const KURL&, const QString&, KJS::Object&)' to
'void (*)(KJS::ExecState*, KParts::ReadOnlyPart*, const KURL&, const
QString&, KJS::Object&)'
ksimplesound.cpp:206: error:   initializing argument 1 of 'void
KJS::addJsExtension(void (*)(KJS::ExecState*, KParts::ReadOnlyPart*, const
KURL&, const QString&, KJS::Object&))'
/usr/lib/qt-3.3/include/private/qucom_p.h: At global scope:
/usr/lib/qt-3.3/include/private/qucom_p.h:69: warning: 'struct QUBuffer' has
virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:77: warning: 'struct QUType' has
virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:104: warning: 'struct QUType_Null'
has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:287: warning: 'struct QUType_enum'
has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:307: warning: 'struct QUType_ptr'
has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:326: warning: 'struct
QUType_iface' has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:345: warning: 'struct
QUType_idisp' has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:364: warning: 'struct QUType_bool'
has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:383: warning: 'struct QUType_int'
has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:403: warning: 'struct
QUType_double' has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:423: warning: 'struct
QUType_charstar' has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucom_p.h:444: warning: 'struct
QUType_QString' has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucomextra_p.h:65: warning: 'struct
QUType_QVariant' has virtual functions but non-virtual destructor
/usr/lib/qt-3.3/include/private/qucomextra_p.h:87: warning: 'struct
QUType_varptr' has virtual functions but non-virtual destructor
gmake: *** [ksimplesound.lo] Error 1

If I remove "ksimplesound" and reconfigure the build, I am able to get the
binaries of konqe.

Can somebody help me to locate what is going wrong when I enable
"ksimplesound" add-ons?

TIA,
Pankaj

_______________________________________________
konq-e mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/konq-e
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.