Hi, <br>
<br>
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 &quot;ksimplesound&quot; demonstrate how Konqe can be extended for a
custom action from JavaScript which is what I require in my application.<br>
<br>
I have downloaded &quot;konqueror3-embedded-0.2-20031201&quot; version of Konqueror Embed. I am using QT/e 3.3 version. <br>
<br>
I have used following configuration options : <br>
./configure&nbsp;&nbsp; --prefix=$PREFIX&nbsp; --without-x&nbsp;
--disable-pcre --with-javascript=dynamic&nbsp;&nbsp;
--disable-bookmarks&nbsp;&nbsp;&nbsp; --disable-debug
--disable-selection --disable-closure --enable-jshostext&nbsp;&nbsp;
--enable-dynamic-ssl&nbsp; --enable-xmlui
--enable-add-ons=jsdebug,ksimplesound<br>
<br>
I am get following compilation errors : <br>
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&nbsp;&nbsp;
-DQT_THREAD_SUPPORT&nbsp; -D_REENTRANT&nbsp; -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&nbsp; -MT ksimplesound.lo -MD -MP -MF
&quot;.deps/ksimplesound.Tpo&quot; \<br>
&nbsp; -c -o ksimplesound.lo `test -f 'ksimplesound.cpp' || echo './'`ksimplesound.cpp; \<br>
then mv -f &quot;.deps/ksimplesound.Tpo&quot; &quot;.deps/ksimplesound.Plo&quot;; \<br>
else rm -f &quot;.deps/ksimplesound.Tpo&quot;; exit 1; \<br>
fi<br>
In file included from ./../../kdesrc/kjs/function.h:27,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from ksimplesound.cpp:155:<br>
./../../kdesrc/kjs/internal.h:33:1: warning: &quot;I18N_NOOP&quot; redefined<br>
In file included from ksimplesound.cpp:26:<br>
./../../dropin/klocale.h:16:1: warning: this is the location of the previous definition<br>
./../../dropin/kxmlguiclient.h:43: warning: unused parameter 'child'<br>
./../../dropin/kxmlguiclient.h:46: warning: unused parameter 'child'<br>
/usr/lib/qt-3.3/include/qnetworkprotocol.h:58: warning: 'class
QNetworkProtocolFactoryBase' has virtual functions but non-virtual
destructor<br>
/usr/lib/qt-3.3/include/qfiledialog.h:78: warning: 'class QFilePreview' has virtual functions but non-virtual destructor<br>
ksimplesound.cpp: In constructor 'JsSoundPlay::JsSoundPlay(KSimpleSound*)':<br>
ksimplesound.cpp:160: error: no matching function for call to 'KJS::InternalFunctionImp::InternalFunctionImp()'<br>
./../../kdesrc/kjs/internal.h:516: note: candidates are:
KJS::InternalFunctionImp::InternalFunctionImp(KJS::FunctionPrototypeImp*)<br>
./../../kdesrc/kjs/internal.h:514:
note:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
KJS::InternalFunctionImp::InternalFunctionImp(const
KJS::InternalFunctionImp&amp;)<br>
ksimplesound.cpp: In function 'void
JsSoundExtension(KParts::ReadOnlyPart*, const KURL&amp;, const
QString&amp;, KJS::Object&amp;)':<br>
ksimplesound.cpp:182: error: no matching function for call to 'KJS::Object::toString()'<br>
./../../kdesrc/kjs/value.h:235: note: candidates are: KJS::UString KJS::Value::toString(KJS::ExecState*) const<br>
ksimplesound.cpp:184: error: no matching function for call to 'KJS::Object::put(const char [5], KJS::Object)'<br>
./../../kdesrc/kjs/object.h:142: note: candidates are: void
KJS::Object::put(KJS::ExecState*, const KJS::UString&amp;, const
KJS::Value&amp;, int)<br>
ksimplesound.cpp: In function 'void konqe_register_libksimplesound()':<br>
ksimplesound.cpp:206: error: invalid conversion from 'void
(*)(KParts::ReadOnlyPart*, const KURL&amp;, const QString&amp;,
KJS::Object&amp;)' to 'void (*)(KJS::ExecState*, KParts::ReadOnlyPart*,
const KURL&amp;, const QString&amp;, KJS::Object&amp;)'<br>
ksimplesound.cpp:206: error:&nbsp;&nbsp; initializing argument 1 of
'void KJS::addJsExtension(void (*)(KJS::ExecState*,
KParts::ReadOnlyPart*, const KURL&amp;, const QString&amp;,
KJS::Object&amp;))'<br>
/usr/lib/qt-3.3/include/private/qucom_p.h: At global scope:<br>
/usr/lib/qt-3.3/include/private/qucom_p.h:69: warning: 'struct QUBuffer' has virtual functions but non-virtual destructor<br>
/usr/lib/qt-3.3/include/private/qucom_p.h:77: warning: 'struct QUType' has virtual functions but non-virtual destructor<br>
/usr/lib/qt-3.3/include/private/qucom_p.h:104: warning: 'struct QUType_Null' has virtual functions but non-virtual destructor<br>
/usr/lib/qt-3.3/include/private/qucom_p.h:287: warning: 'struct QUType_enum' has virtual functions but non-virtual destructor<br>
/usr/lib/qt-3.3/include/private/qucom_p.h:307: warning: 'struct QUType_ptr' has virtual functions but non-virtual destructor<br>
/usr/lib/qt-3.3/include/private/qucom_p.h:326: warning: 'struct QUType_iface' has virtual functions but non-virtual destructor<br>
/usr/lib/qt-3.3/include/private/qucom_p.h:345: warning: 'struct QUType_idisp' has virtual functions but non-virtual destructor<br>
/usr/lib/qt-3.3/include/private/qucom_p.h:364: warning: 'struct QUType_bool' has virtual functions but non-virtual destructor<br>
/usr/lib/qt-3.3/include/private/qucom_p.h:383: warning: 'struct QUType_int' has virtual functions but non-virtual destructor<br>
/usr/lib/qt-3.3/include/private/qucom_p.h:403: warning: 'struct QUType_double' has virtual functions but non-virtual destructor<br>
/usr/lib/qt-3.3/include/private/qucom_p.h:423: warning: 'struct
QUType_charstar' has virtual functions but non-virtual destructor<br>
/usr/lib/qt-3.3/include/private/qucom_p.h:444: warning: 'struct QUType_QString' has virtual functions but non-virtual destructor<br>
/usr/lib/qt-3.3/include/private/qucomextra_p.h:65: warning: 'struct
QUType_QVariant' has virtual functions but non-virtual destructor<br>
/usr/lib/qt-3.3/include/private/qucomextra_p.h:87: warning: 'struct
QUType_varptr' has virtual functions but non-virtual destructor<br>
gmake: *** [ksimplesound.lo] Error 1<br>
<br>
If I remove &quot;ksimplesound&quot; and reconfigure the build, I am able to get the binaries of konqe.<br>
<br>
Can somebody help me to locate what is going wrong when I enable &quot;ksimplesound&quot; add-ons? <br>
<br>
TIA, <br>
Pankaj<br>
<br>
<br>
<br>