Date: Sun, 12 Nov 2006 10:14:52 -0500 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: Erik Norgaard <norgaard@locolomo.org> Cc: questions@freebsd.org Subject: Re: Java plugin for Firefox Message-ID: <444pt47l3n.fsf@be-well.ilk.org> In-Reply-To: <4555D865.6060106@locolomo.org> (Erik Norgaard's message of "Sat, 11 Nov 2006 15:04:21 %2B0100") References: <4555D865.6060106@locolomo.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Erik Norgaard <norgaard@locolomo.org> writes: > Hi: > > How do I build the java plugin for Firefox? I have jdk15 installed > without the plugin. I tried to rebuild with USE_GECKO=firefox which > fails as the Makefile also states: > > /usr/local/include/firefox/nsDebug.h:207:1: warning: this is the > location of the previous definition > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp: > In member function `virtual JDresult > CNSAdapter_JVMManager::GetCurrentThread(JDUint32*)': > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142: > error: `nsPluginThread' was not declared in this scope > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:142: > error: `pPluginThread' was not declared in this scope > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp: > In member function `virtual JDresult > CNSAdapter_JVMManager::PostEvent(JDUint32, IRunnable*, JDBool)': > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:172: > error: invalid conversion from `JDUint32' to `PRThread*' > ../../../../src/plugin/share/adapter/common/CNSAdapter_JVMManager.cpp:172: > error: initializing argument 1 of `virtual nsresult > nsIThreadManager::PostEvent(PRThread*, nsIRunnable*, PRBool)' > gmake[5]: *** > [/usr/ports/java/jdk15/work/control/build/bsd-i586/tmp/deploy/plugin/adapter/ns7/obj/CNSAdapter_JVMManager.o] > Error 1 > gmake[5]: Leaving directory > /usr/ports/java/jdk15/work/deploy/make/plugin/adapter/ns7-adapter' > gmake[4]: *** [optimized] Error 2 > gmake[4]: Leaving directory > /usr/ports/java/jdk15/work/deploy/make/plugin/adapter/ns7-adapter' > gmake[3]: *** [ns7-adapter] Error 2 > gmake[3]: Leaving directory > /usr/ports/java/jdk15/work/deploy/make/plugin/adapter' > gmake[2]: *** [adapter] Error 2 > gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/deploy/make/plugin' > gmake[1]: *** [plugin-all] Error 2 > gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/deploy/make' > gmake: *** [deploy-build] Error 2 > *** Error code 2 > > Stop in /usr/ports/java/jdk15. > > Then I tried just building it for mozilla with the idea of copying or > linking the plugin to the firefox plugin dir. But building mozilla fails > > nsType1.cpp:371: error: invalid conversion from `int (*)(const > FT_Vector*, void*)' to `int (*)(FT_Vector*, void*)' > nsType1.cpp:371: error: invalid conversion from `int (*)(const > FT_Vector*, void*)' to `int (*)(FT_Vector*, void*)' > nsType1.cpp:371: error: invalid conversion from `int (*)(const > FT_Vector*, const FT_Vector*, void*)' to `int (*)(FT_Vector*, > FT_Vector*, void*)' > nsType1.cpp:371: error: invalid conversion from `int (*)(const > FT_Vector*, const FT_Vector*, const FT_Vector*, void*)' to `int > (*)(FT_Vector*, FT_Vector*, FT_Vector*, void*)' > gmake[4]: *** [nsType1.o] Error 1 > gmake[4]: Leaving directory `/usr/ports/www/mozilla/work/mozilla/gfx/src/ps' > gmake[3]: *** [libs] Error 2 > gmake[3]: Leaving directory `/usr/ports/www/mozilla/work/mozilla/gfx/src' > gmake[2]: *** [libs] Error 2 > gmake[2]: Leaving directory `/usr/ports/www/mozilla/work/mozilla/gfx' > gmake[1]: *** [tier_9] Error 2 > gmake[1]: Leaving directory `/usr/ports/www/mozilla/work/mozilla' > gmake: *** [default] Error 2 > *** Error code 2 > > Stop in /usr/ports/www/mozilla. > > Any suggestions? I just built jdk15 with the default options, and the Java plugin works in my firefox. > Secondly, is there a way to just build the plugin since I have the jdk > built and installed? It looks possible, but (to me) it's not worth a few hours of human time to figure it out in order to save a few hours (or even days) of the computer's time. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?444pt47l3n.fsf>