Anybody able to build this plugin?
Seems some files are missing, notably the configure script.
I can build the package after copying a couple of files from the original sources, but the package does not build correctly:
usr/lib/mozilla/plugins/kaffeineplugin.so
gets built as
usr/lib/mozilla/plugins/kaffeineplugin
Darrell
Le 21/04/2012 08:01, Darrell Anderson a écrit :
Anybody able to build this plugin?
Seems some files are missing, notably the configure script.
I can build the package after copying a couple of files from the original sources, but the package does not build correctly:
usr/lib/mozilla/plugins/kaffeineplugin.so
gets built as
usr/lib/mozilla/plugins/kaffeineplugin
Darrell
I built it on TDE 3.5.13. It is a bit tricky. Basically, you must build the "./configure" script yourself by copying 2 autotools files, then invoking "autoreconf".
Something like:
|cp -f "/usr/share/aclocal/libtool.m4" . cp -f "/usr/share/libtool/config/ltmain.sh" . autoreconf ./configure ..... |
Good luck
Anybody able to build this plugin?
Seems some files are missing, notably the configure script.
I can build the package after copying a couple of files from the original sources, but the package does not build correctly:
usr/lib/mozilla/plugins/kaffeineplugin.so
gets built as
usr/lib/mozilla/plugins/kaffeineplugin
I built it on TDE 3.5.13. It is a bit tricky.
Basically, you must build the "./configure" script yourself by copying 2 autotools files, then invoking "autoreconf".
Something like:
cp -f "/usr/share/aclocal/libtool.m4" . cp -f "/usr/share/libtool/config/ltmain.sh" . autoreconf ./configure
Thank you. I now get past the initial configuration but the build fails:
=========================================================== Making all in src make[2]: Entering directory `/dev/shm/kaffeine-mozilla/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -O2 -march=i486 -mtune=i686 -O2 -march=i486 -mtune=i686 -MT plugin.lo -MD -MP -MF .deps/plugin.Tpo -c -o plugin.lo plugin.c ../libtool: line 827: X--tag=CC: command not found ../libtool: line 860: libtool: ignoring unknown tag : command not found ../libtool: line 827: X--mode=compile: command not found ../libtool: line 994: *** Warning: inferring the mode of operation is deprecated.: command not found ../libtool: line 995: *** Future versions of Libtool will require --mode=MODE be specified.: command not found ../libtool: line 1138: Xgcc: command not found ../libtool: line 1138: X-DHAVE_CONFIG_H: command not found ../libtool: line 1138: X-I.: command not found ../libtool: line 1138: X-I..: command not found ../libtool: line 1138: X-O2: command not found ../libtool: line 1138: X-march=i486: command not found ../libtool: line 1138: X-mtune=i686: command not found ../libtool: line 1138: X-O2: command not found ../libtool: line 1138: X-march=i486: command not found ../libtool: line 1138: X-mtune=i686: command not found ../libtool: line 1138: X-MT: command not found ../libtool: line 1138: Xplugin.lo: command not found ../libtool: line 1138: X-MD: command not found ../libtool: line 1138: X-MP: command not found ../libtool: line 1138: X-MF: command not found ../libtool: line 1138: X.deps/plugin.Tpo: No such file or directory ../libtool: line 1138: X-c: command not found ../libtool: line 1191: Xplugin.lo: command not found ../libtool: line 1196: libtool: compile: cannot determine name of library object from `': command not found make[2]: *** [plugin.lo] Error 1 make[2]: Leaving directory `/dev/shm/kaffeine-mozilla/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/dev/shm/kaffeine-mozilla' make: *** [all] Error 2 ===========================================================
I can build the package on the same system (same libtools) with the original upstream sources using my KDE3 setup.
Darrell
When I run autoreconf -fiv I see a different set of failures:
============================================================= Making all in src make[2]: Entering directory `/dev/shm/kaffeine-mozilla/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -O2 -march=i486 -mtune=i686 -O2 -march=i486 -mtune=i686 -MT plugin.lo -MD -MP -MF .deps/plugin.Tpo -c -o plugin.lo plugin.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -O2 -march=i486 -mtune=i686 -O2 -march=i486 -mtune=i686 -MT plugin.lo -MD -MP -MF .deps/plugin.Tpo -c plugin.c -fPIC -DPIC -o .libs/plugin.o In file included from jritypes.h:45, from jri.h:45, from npapi.h:10, from plugin.c:72: jri_md.h:46:64: error: nspr/prtypes.h: No such file or directory In file included from plugin.c:72: npapi.h:94: error: expected specifier-qualifier-list before 'uint32' npapi.h:102: error: expected specifier-qualifier-list before 'int32' npapi.h:110: error: expected specifier-qualifier-list before 'int32' npapi.h:141: error: expected specifier-qualifier-list before 'int32' npapi.h:146: error: expected specifier-qualifier-list before 'int32' npapi.h:177: error: expected specifier-qualifier-list before 'uint32' npapi.h:339: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPP_WriteReady' npapi.h:340: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPP_Write' npapi.h:366: error: expected declaration specifiers or '...' before 'uint32' npapi.h:370: error: expected declaration specifiers or '...' before 'uint32' npapi.h:375: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPN_Write' npapi.h:381: error: expected ')' before 'size' npapi.h:383: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPN_MemFlush' plugin.c: In function 'NPP_New': plugin.c:333: warning: assignment makes pointer from integer without a cast plugin.c: In function 'NPP_SetWindow': plugin.c:402: error: 'NPWindow' has no member named 'ws_info' plugin.c:404: error: 'NPWindow' has no member named 'width' plugin.c:405: error: 'NPWindow' has no member named 'height' plugin.c:409: error: 'NPWindow' has no member named 'x' plugin.c:409: error: 'NPWindow' has no member named 'y' plugin.c:409: error: 'NPWindow' has no member named 'width' plugin.c:409: error: 'NPWindow' has no member named 'height' plugin.c: At top level: plugin.c:517: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'STREAMBUFSIZE' plugin.c:521: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPP_WriteReady' plugin.c:532: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPP_Write' make[2]: *** [plugin.lo] Error 1 make[2]: Leaving directory `/dev/shm/kaffeine-mozilla/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/dev/shm/kaffeine-mozilla' make: *** [all] Error 2 There was an error trying to build kaffeine-mozilla. EXIT_CODE: 1
============================================================= Darrell
On Thu, 26 Apr 2012 11:19:26 -0700 (PDT) Darrell Anderson humanreadable@yahoo.com wrote:
When I run autoreconf -fiv I see a different set of failures:
Did you install the SeaMonkey package ? This is the one from which Mozilla libraries are used for 3rd party software in Slackware.
============================================================= Making all in src make[2]: Entering directory `/dev/shm/kaffeine-mozilla/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -O2 -march=i486 -mtune=i686 -O2 -march=i486 -mtune=i686 -MT plugin.lo -MD -MP -MF .deps/plugin.Tpo -c -o plugin.lo plugin.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -O2 -march=i486 -mtune=i686 -O2 -march=i486 -mtune=i686 -MT plugin.lo -MD -MP -MF .deps/plugin.Tpo -c plugin.c -fPIC -DPIC -o .libs/plugin.o In file included from jritypes.h:45, from jri.h:45, from npapi.h:10, from plugin.c:72: jri_md.h:46:64: error: nspr/prtypes.h: No such file or directory In file included from plugin.c:72: npapi.h:94: error: expected specifier-qualifier-list before 'uint32' npapi.h:102: error: expected specifier-qualifier-list before 'int32' npapi.h:110: error: expected specifier-qualifier-list before 'int32' npapi.h:141: error: expected specifier-qualifier-list before 'int32' npapi.h:146: error: expected specifier-qualifier-list before 'int32' npapi.h:177: error: expected specifier-qualifier-list before 'uint32' npapi.h:339: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPP_WriteReady' npapi.h:340: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPP_Write' npapi.h:366: error: expected declaration specifiers or '...' before 'uint32' npapi.h:370: error: expected declaration specifiers or '...' before 'uint32' npapi.h:375: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPN_Write' npapi.h:381: error: expected ')' before 'size' npapi.h:383: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPN_MemFlush' plugin.c: In function 'NPP_New': plugin.c:333: warning: assignment makes pointer from integer without a cast plugin.c: In function 'NPP_SetWindow': plugin.c:402: error: 'NPWindow' has no member named 'ws_info' plugin.c:404: error: 'NPWindow' has no member named 'width' plugin.c:405: error: 'NPWindow' has no member named 'height' plugin.c:409: error: 'NPWindow' has no member named 'x' plugin.c:409: error: 'NPWindow' has no member named 'y' plugin.c:409: error: 'NPWindow' has no member named 'width' plugin.c:409: error: 'NPWindow' has no member named 'height' plugin.c: At top level: plugin.c:517: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'STREAMBUFSIZE' plugin.c:521: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPP_WriteReady' plugin.c:532: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPP_Write' make[2]: *** [plugin.lo] Error 1 make[2]: Leaving directory `/dev/shm/kaffeine-mozilla/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/dev/shm/kaffeine-mozilla' make: *** [all] Error 2 There was an error trying to build kaffeine-mozilla. EXIT_CODE: 1
============================================================= Darrell
To unsubscribe, e-mail: trinity-devel-unsubscribe@lists.pearsoncomputing.net For additional commands, e-mail: trinity-devel-help@lists.pearsoncomputing.net Read list messages on the web archive: http://trinity-devel.pearsoncomputing.net/ Please remember not to top-post: http://trinity.pearsoncomputing.net/mailing_lists/#top-posting
When I run autoreconf -fiv I see a different set of failures:
Did you install the SeaMonkey package ? This is the one from which Mozilla libraries are used for 3rd party software in Slackware.
Yes, those packages are installed. Thanks. :)
However, the patch from Francois is related to your question.
locate prtypes /usr/include/seamonkey-2.0.14/prtypes.h /usr/include/seamonkey-2.0.14/nspr/prtypes.h
The files are one and the same. The file size is 18744 bytes.
The problem seems to be in jni_md.h where:
#include <nspr/prtypes.h> /* needed for _declspec */
that the nspr directory is under /usr/include/seamonkey-2.0.14 (sym linked to /usr/include/seamonkey) rather than directly under /usr/include.
I modified the patch:
-#include <nspr/prtypes.h> /* needed for _declspec */ +#include <seamonkey/prtypes.h> /* needed for _declspec */
The package built without incident.
Note: I have to use autoreconf -fiv rather than autoreconf.
Thank you both.
Why is this stuff so doggone hard...?
P.S. I propose we update the README file to include this information.
Darrell
I would be grateful if somebody would review the enclosed new kaffeine-mozilla README file. I will push to GIT upon review.
Thanks!
Darrell
============================================
************************************* * Kaffeine - Mozilla * *************************************
This mozilla plugin starts Kaffeine external for media streams.
Latest version on: http://kaffeine.sourceforge.net
Install:
1) ./configure --prefix=MOZILLA_INSTALL_DIR (e.g. --prefix=~/.mozilla or --prefix=/opt/MozillaFirefox)
1) make
3) make install
SUGGESTIONS/PROBLEMS/BUGS: kaffeine-user@lists.sourceforge.net
************************************* * Trinity Addendum * *************************************
Building Trinity apps does not include static make and configure files. Generally, these files are rebuilt fresh with the build script. The kaffeine-mozilla package is different from the other packages and requires some additional knowledge to build. The kaffeine-mozilla build script should include the following commands, adjusted for each distro's file locations:
cd {kaffeine-mozilla build location} cp -f /usr/lib${LIBDIRSUFFIX}/build/libtool.m4 . cp -f /usr/lib${LIBDIRSUFFIX}/build/ltmain.sh . # On some systems the rebuild process might fail unless -fiv is used. autoreconf -fiv
Additonally, a patch might be required depending upon where the prtypes.h header file is installed. Each distro is different. Adjust the patch as necessary to satify your distro's setup. The patch will look something like this:
--- kaffeine-mozilla/src/jni_md.h.ORI 2012-04-26 20:44:15.080210122 +0200 +++ kaffeine-mozilla/src/jni_md.h 2012-04-26 20:44:28.006895031 +0200 @@ -40,7 +40,7 @@ #ifndef JNI_MD_H #define JNI_MD_H
-#include <nspr/prtypes.h> /* needed for _declspec */ +#include <seamonkey/nspr/prtypes.h> /* needed for _declspec */
/******************************************************************************* * WHAT'S UP WITH THIS FILE? --- kaffeine-mozilla/src/jri_md.h.ORI 2012-04-26 20:44:20.528077329 +0200 +++ kaffeine-mozilla/src/jri_md.h 2012-04-26 20:44:36.239694357 +0200 @@ -43,7 +43,7 @@ #define JRI_MD_H
#include <assert.h> -#include <nspr/prtypes.h> /* Needed for HAS_LONG_LONG ifdefs */ +#include <seamonkey/nspr/prtypes.h> /* Needed for HAS_LONG_LONG ifdefs */
#ifdef __cplusplus extern "C" {
Le 26/04/2012 20:19, Darrell Anderson a écrit :
When I run autoreconf -fiv I see a different set of failures:
============================================================= Making all in src make[2]: Entering directory `/dev/shm/kaffeine-mozilla/src' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -O2 -march=i486 -mtune=i686 -O2 -march=i486 -mtune=i686 -MT plugin.lo -MD -MP -MF .deps/plugin.Tpo -c -o plugin.lo plugin.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -O2 -march=i486 -mtune=i686 -O2 -march=i486 -mtune=i686 -MT plugin.lo -MD -MP -MF .deps/plugin.Tpo -c plugin.c -fPIC -DPIC -o .libs/plugin.o In file included from jritypes.h:45, from jri.h:45, from npapi.h:10, from plugin.c:72: jri_md.h:46:64: error: nspr/prtypes.h: No such file or directory In file included from plugin.c:72: npapi.h:94: error: expected specifier-qualifier-list before 'uint32' npapi.h:102: error: expected specifier-qualifier-list before 'int32' npapi.h:110: error: expected specifier-qualifier-list before 'int32' npapi.h:141: error: expected specifier-qualifier-list before 'int32' npapi.h:146: error: expected specifier-qualifier-list before 'int32' npapi.h:177: error: expected specifier-qualifier-list before 'uint32' npapi.h:339: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPP_WriteReady' npapi.h:340: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPP_Write' npapi.h:366: error: expected declaration specifiers or '...' before 'uint32' npapi.h:370: error: expected declaration specifiers or '...' before 'uint32' npapi.h:375: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPN_Write' npapi.h:381: error: expected ')' before 'size' npapi.h:383: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPN_MemFlush' plugin.c: In function 'NPP_New': plugin.c:333: warning: assignment makes pointer from integer without a cast plugin.c: In function 'NPP_SetWindow': plugin.c:402: error: 'NPWindow' has no member named 'ws_info' plugin.c:404: error: 'NPWindow' has no member named 'width' plugin.c:405: error: 'NPWindow' has no member named 'height' plugin.c:409: error: 'NPWindow' has no member named 'x' plugin.c:409: error: 'NPWindow' has no member named 'y' plugin.c:409: error: 'NPWindow' has no member named 'width' plugin.c:409: error: 'NPWindow' has no member named 'height' plugin.c: At top level: plugin.c:517: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'STREAMBUFSIZE' plugin.c:521: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPP_WriteReady' plugin.c:532: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NPP_Write' make[2]: *** [plugin.lo] Error 1 make[2]: Leaving directory `/dev/shm/kaffeine-mozilla/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/dev/shm/kaffeine-mozilla' make: *** [all] Error 2 There was an error trying to build kaffeine-mozilla. EXIT_CODE: 1
============================================================= Darrell
Hello, you can try the attached patch. On fedora, 'prtypes.h' is located under directory 'nspr4', not just 'nspr'. If it still does not work, just look if file "prtypes.h" exists on your system and correct the patch if necessary.
Le 21/04/2012 08:01, Darrell Anderson a écrit :
Anybody able to build this plugin?
Seems some files are missing, notably the configure script.
I can build the package after copying a couple of files from the original sources, but the package does not build correctly:
usr/lib/mozilla/plugins/kaffeineplugin.so
gets built as
usr/lib/mozilla/plugins/kaffeineplugin
Darrell
I built it on TDE 3.5.13. It is a bit tricky. Basically, you must build the "./configure" script yourself by copying 2 autotools files, then invoking "autoreconf".
Something like:
|cp -f "/usr/share/aclocal/libtool.m4" . cp -f "/usr/share/libtool/config/ltmain.sh" . autoreconf ./configure ..... |
Good luck