Page 1 of 1

Mozilla plugin Configure error: install Mozilla dev tool

Posted: 06 Mar 2012 20:47
by rshetty00
Built vlc 2.1 from git successfully and trying to compile Mozilla/Firefox Plugin for MAC. Based on following error even installed Geko SDK, Sea Monkey etc. However, haven't built Geko SDK yet -not sure needed or not. Same error/extremely frustrating! Please help. If anyone could outline the steps (I'd been thru wiki, forums, README, INSTALL etc) required to compile this with details on arguments for configure, greatly appreciate.


configure: error: Please install the Mozilla development tools, required headers were not found.

Not sure what is needed here (installed SeaMonkey and so on as well) as VLC was successfully packaged earlier.
I could see npapi.h headers ..//vlc/contrib/x86_64-apple-darwin10/include/npapi.h



Mac 10.7.3 Xcode 4.3, Latest 2.1 code from repo.


sudo ./configure LIBVLC_CFLAGS=-I/Users/test/vlc/build/vlc_install_dir/include LIBVLC_LIBS="-L/Users/test/vlc/build/vlc_install_dir/lib -lvlc" --host=x86_64-apple-darwin10 --build=x86_64-apple-darwin10 --enable-macosx

PATH=
/usr/bin:/bin:/Users/test/Downloads/xulrunner-sdk/bin:/Users/test/vlc//bin:/Users/test/vlc/build/bin:/Users/test/vlc//build/VLC.app/Contents/MacOS/bin:/Users/test/vlc//build/vlc_install_dir/bin:/Users/test/vlc//contrib/x86_64-apple-darwin10/bin:/Users/test/vlc//extras/tools/autoconf/bin:/Users/test/vlc/extras/tools/build/bin:/Users/test/vlc/extras/tools/cmake/bin:/Users/test/vlc//extras/tools/yasm/modules/objfmts/bin:/Users/test/vlc//extras/tools/yasm/modules/parsers/gas/tests/bin:/Users/test/vlc//extras/vlc/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

checking for IceConnectionNumber in -lICE... yes
checking for LIBVLC... yes
checking Mozilla headers... checking for npapi-sdk >= 0.27... no
checking for seamonkey-plugin >= 1.9.2... no
checking for iceape-plugin >= 1.9.2... no
checking for xulrunner-plugin >= 1.9.2... no
checking for firefox-plugin >= 1.9.2... no
checking for iceweasel-plugin >= 1.9.2... no
checking for mozilla-plugin >= 1.9.2... no
checking for libxul >= 1.9.2... no
no
checking npapi.h usability... no
checking npapi.h presence... no
checking for npapi.h... no
checking for npruntime.h... no
configure: error: Please install the Mozilla development tools, required headers were not found.

Re: Mozilla plugin Configure error: install Mozilla dev tool

Posted: 07 Mar 2012 06:44
by nkoriyama
First, it doesn't support Mac OS X 64bits yet. So, even if you successfully configured, you cannot build it.

But, configure will not fail If you set the variables (MOZILLA_CFLAGS, PKG_CONFIG_LIBDIR) like:

Code: Select all

./configure --prefix=/ --host=x86_64-apple-darwin11 --build=x86_64-apple-darwin11 MOZILLA_CFLAGS=-I/.../VLC_BUILD_DIR/gecko PKG_CONFIG_LIBDIR=/.../VLC_BUILD_DIR/lib
VLC_BUILD_DIR: VLC build directory
VLC_BUILD_DIR/gecko: npapi-sdk directory. svn export http://npapi-sdk.googlecode.com/svn/trunk/headers gecko -r HEAD
VLC_BUILD_DIR/npapi-vlc: vlc web plugin build directory. git clone git://git.videolan.org/npapi-vlc.git npapi-vlc

Re: Mozilla plugin Configure error: install Mozilla dev tool

Posted: 08 Mar 2012 05:40
by rshetty00
Thank you! So, does 32bit compile and work OK? Since VLC is built for 64bit, appreciate some detailed help. I need to log different player events (from browser embedded and standalone VLC app) for Analytics purpose. So, anything along this line (steps, code examples, build instructions) will be of great help.

Re: Mozilla plugin Configure error: install Mozilla dev tool

Posted: 08 Mar 2012 06:46
by nkoriyama
I don't know you can compile it for 32bit and I don't know it works OK. I don't have 32bit environment.

There is no web plugin for 64bit browsers. At the moment, no one works for fixing it.
So wait someone fixing it, or fix it by yourself and send a patch! :D