How to compile npapi-vlc on OS X Mavericks ?

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
HLFH
New Cone
New Cone
Posts: 7
Joined: 21 Jan 2014 17:51

How to compile npapi-vlc on OS X Mavericks ?

Postby HLFH » 21 Jan 2014 18:56

Please give us the right & complete guide to compile npapi-vlc on OS X Mavericks. And where can I get the last release of the npapi-plugin (01/21/14) ?

Perian is discontinued.QuickTime has always been bad. VLC-Npapi Plugin should be the right and only solution to stream video & audio on the Web !

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: How to compile npapi-vlc on OS X Mavericks ?

Postby RSATom » 22 Jan 2014 03:34

It's not the only solution, fbvlc for mac now available too: http://sourceforge.net/projects/fbvlc/f ... C%200.1.1/

what about npapi-vlc - it's available at http://git.videolan.org/?p=npapi-vlc.git;a=summary

HLFH
New Cone
New Cone
Posts: 7
Joined: 21 Jan 2014 17:51

Re: How to compile npapi-vlc on OS X Mavericks ?

Postby HLFH » 22 Jan 2014 23:26

FBVLC need a specific implementation. So, I need more Npapi-vlc

I'm getting errors with make :

Code: Select all

MacBookAir:npapi-vlc root# make /bin/sh ./config.status --recheck running CONFIG_SHELL=/bin/sh /bin/sh ./configure LIBVLC_CFLAGS=-I/Applications/VLC.app/Contents/MacOS/include/ LIBVLC_LIBS=-L/Applications/VLC.app/Contents/MacOS/lib/ MOZILLA_CFLAGS=-I/Users/HLFH/gecko/ --no-create --no-recursion checking build system type... x86_64-apple-darwin13.0.0 checking host system type... x86_64-apple-darwin13.0.0 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... autotools/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '0' is supported by ustar format... yes checking whether GID '0' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking whether make supports nested variables... (cached) yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking for gcc option to accept ISO C99... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking for g++... g++ checking whether we are using the GNU Objective C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to print strings... printf checking for a sed that does not truncate output... /usr/local/bin/gsed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm checking the name lister (/usr/bin/nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 196608 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-apple-darwin13.0.0 file names to x86_64-apple-darwin13.0.0 format... func_convert_file_noop checking how to convert x86_64-apple-darwin13.0.0 file names to toolchain format... func_convert_file_noop checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... (cached) pass_all checking for dlltool... dlltool checking how to associate runtime and link libraries... printf %s\n checking for ar... ar checking for archiver @FILE support... no checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm output from gcc object... ok checking for sysroot... no checking for mt... no checking if : is a manifest tool... no checking for dsymutil... dsymutil checking for nmedit... nmedit checking for lipo... lipo checking for otool... otool checking for otool64... no checking for -single_module linker flag... yes checking for -exported_symbols_list linker flag... yes checking for -force_load linker flag... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... yes checking for gcc option to produce PIC... -fno-common -DPIC checking if gcc PIC flag -fno-common -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin13.0.0 dyld checking how to hardcode library paths into programs... immediate checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... yes checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common -DPIC checking if g++ PIC flag -fno-common -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... darwin13.0.0 dyld checking how to hardcode library paths into programs... immediate checking for pkg-config... /usr/local/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for dlltool... (cached) dlltool checking for an ANSI C-conforming const... yes checking for buggy GNU/libc versions... not present checking for X... libraries /usr/X11/lib, headers /usr/X11/include checking whether -R must be followed by a space... neither works checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking for LIBVLC... yes Package libvlc was not found in the pkg-config search path. Perhaps you should add the directory containing `libvlc.pc' to the PKG_CONFIG_PATH environment variable No package 'libvlc' found 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 checking for npapi.h... yes checking for npruntime.h... yes checking if NP_GetMIMEDescription() returns const... yes checking that generated files are newer than configure... done configure: creating ./config.status /bin/sh ./config.status config.status: creating Makefile config.status: creating share/Makefile config.status: creating npapi/Makefile config.status: creating activex/Makefile config.status: creating npapi/package/install.js config.status: creating npapi/package/install.rdf config.status: creating npapi/package/manifest.json config.status: creating npapi/package/vlc.r config.status: creating extras/macosx/Info.plist config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands config.status: executing libtool commands /Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive Making all in npapi CXX events.lo CXX vlcshell.lo CXX vlcplugin_base.lo In file included from vlcplugin_base.cpp:38: In file included from ./control/npolibvlc.h:28: ./control/nporuntime.h:225:13: error: static declaration of 'RuntimeNPClassGetProperty' follows non-static declaration static bool RuntimeNPClassGetProperty(NPObject *npobj, NPIdentifier name, NPVariant *result) ^ ./control/nporuntime.h:117:50: note: previous declaration is here template <class RuntimeNPObject> friend bool RuntimeNPClassGetProperty(NPObject *npobj, NPIdentifier name, NPVariant *result); ^ ./control/nporuntime.h:241:13: error: static declaration of 'RuntimeNPClassSetProperty' follows non-static declaration static bool RuntimeNPClassSetProperty(NPObject *npobj, NPIdentifier name, const NPVariant *value) ^ ./control/nporuntime.h:118:50: note: previous declaration is here template <class RuntimeNPObject> friend bool RuntimeNPClassSetProperty(NPObject *npobj, NPIdentifier name, const NPVariant *value); ^ ./control/nporuntime.h:257:13: error: static declaration of 'RuntimeNPClassRemoveProperty' follows non-static declaration static bool RuntimeNPClassRemoveProperty(NPObject *npobj, NPIdentifier name) ^ ./control/nporuntime.h:119:50: note: previous declaration is here template <class RuntimeNPObject> friend bool RuntimeNPClassRemoveProperty(NPObject *npobj, NPIdentifier name); ^ ./control/nporuntime.h:273:13: error: static declaration of 'RuntimeNPClassInvoke' follows non-static declaration static bool RuntimeNPClassInvoke(NPObject *npobj, NPIdentifier name, ^ ./control/nporuntime.h:120:50: note: previous declaration is here template <class RuntimeNPObject> friend bool RuntimeNPClassInvoke(NPObject *npobj, NPIdentifier name, ^ ./control/nporuntime.h:331:23: error: use of undeclared identifier 'RuntimeNPClassInvoke' invoke = &RuntimeNPClassInvoke<T>; ^ ./control/nporuntime.h:331:44: error: 'T' does not refer to a value invoke = &RuntimeNPClassInvoke<T>; ^ ./control/nporuntime.h:304:16: note: declared here template<class T> ^ ./control/nporuntime.h:331:46: error: expected expression invoke = &RuntimeNPClassInvoke<T>; ^ ./control/nporuntime.h:334:23: error: no template named 'RuntimeNPClassGetProperty'; did you mean 'RuntimeNPClassHasProperty'? getProperty = &RuntimeNPClassGetProperty<T>; ^~~~~~~~~~~~~~~~~~~~~~~~~ RuntimeNPClassHasProperty ./control/nporuntime.h:218:13: note: 'RuntimeNPClassHasProperty' declared here static bool RuntimeNPClassHasProperty(NPObject *npobj, NPIdentifier name) ^ ./control/nporuntime.h:335:23: error: no template named 'RuntimeNPClassSetProperty'; did you mean 'RuntimeNPClassHasProperty'? setProperty = &RuntimeNPClassSetProperty<T>; ^~~~~~~~~~~~~~~~~~~~~~~~~ RuntimeNPClassHasProperty ./control/nporuntime.h:218:13: note: 'RuntimeNPClassHasProperty' declared here static bool RuntimeNPClassHasProperty(NPObject *npobj, NPIdentifier name) ^ ./control/nporuntime.h:336:23: error: no template named 'RuntimeNPClassRemoveProperty'; did you mean 'RuntimeNPClassHasProperty'? removeProperty = &RuntimeNPClassRemoveProperty<T>; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ RuntimeNPClassHasProperty ./control/nporuntime.h:218:13: note: 'RuntimeNPClassHasProperty' declared here static bool RuntimeNPClassHasProperty(NPObject *npobj, NPIdentifier name) ^ ./control/nporuntime.h:334:20: error: assigning to 'NPGetPropertyFunctionPtr' (aka 'bool (*)(NPObject *, NPIdentifier, NPVariant *)') from incompatible type '<overloaded function type>' getProperty = &RuntimeNPClassGetProperty<T>; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./control/nporuntime.h:155:41: note: in instantiation of member function 'RuntimeNPClass<LibvlcRootNPObject>::RuntimeNPClass' requested here static NPClass *singleton = new RuntimeNPClass<T>; ^ vlcplugin_base.cpp:244:57: note: in instantiation of member function 'RuntimeNPClass<LibvlcRootNPObject>::getClass' requested here p_scriptClass = RuntimeNPClass<LibvlcRootNPObject>::getClass(); ^ ./control/nporuntime.h:218:13: note: candidate function has different number of parameters (expected 3 but has 2) static bool RuntimeNPClassHasProperty(NPObject *npobj, NPIdentifier name) ^ ./control/nporuntime.h:335:20: error: assigning to 'NPSetPropertyFunctionPtr' (aka 'bool (*)(NPObject *, NPIdentifier, const NPVariant *)') from incompatible type '<overloaded function type>' setProperty = &RuntimeNPClassSetProperty<T>; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./control/nporuntime.h:218:13: note: candidate function has different number of parameters (expected 3 but has 2) static bool RuntimeNPClassHasProperty(NPObject *npobj, NPIdentifier name) ^ 12 errors generated. make[2]: *** [vlcplugin_base.lo] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2

RSATom
Big Cone-huna
Big Cone-huna
Posts: 513
Joined: 24 Nov 2011 06:55
Operating System: Windows/Linux/OsX
Location: Russia, Tomsk

Re: How to compile npapi-vlc on OS X Mavericks ?

Postby RSATom » 23 Jan 2014 04:14

fbvlc's api almost identical to Vlc Web Plugins

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How to compile npapi-vlc on OS X Mavericks ?

Postby Jean-Baptiste Kempf » 23 Jan 2014 10:03

Do not compile as root.

Then, your issue is a bug. Might be related to clang in Mavericks.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

HLFH
New Cone
New Cone
Posts: 7
Joined: 21 Jan 2014 17:51

Re: How to compile npapi-vlc on OS X Mavericks ?

Postby HLFH » 23 Jan 2014 10:30

I think I must install VLCKit too for libvlc (and for npapi-vlc), right ?

git clone git://git.videolan.org/vlc-bindings/VLCKit.gi
export CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
export CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
export OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
cd VLCKIT/
make

It's taking more than 13 GB of RAM !!!! I have 4 GB. So, after, xcodebuild & bash & make are using my virtual memory. I can't compile in these conditions on Mavericks 10.9.1.

Is there a binary for VLCKit ?

HLFH
New Cone
New Cone
Posts: 7
Joined: 21 Jan 2014 17:51

Re: How to compile npapi-vlc on OS X Mavericks ?

Postby HLFH » 23 Jan 2014 10:40

Image

Thanks for this point. You are just saying that VLC & VLCKit & LibVLC & Npapi-vlc & FBVLC are not optimized for the Mac Way of Life. :mrgreen:

So maybe, I have to try another solution for streaming.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How to compile npapi-vlc on OS X Mavericks ?

Postby Jean-Baptiste Kempf » 11 Feb 2014 18:04

npapi-vlc head compiles fine on OSX. Tested and running.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How to compile npapi-vlc on OS X Mavericks ?

Postby Jean-Baptiste Kempf » 11 Feb 2014 22:17

npapi-vlc head compiles fine on OSX. Tested and running.
PM me if you want a build.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

HLFH
New Cone
New Cone
Posts: 7
Joined: 21 Jan 2014 17:51

Re: How to compile npapi-vlc on OS X Mavericks ?

Postby HLFH » 12 Feb 2014 02:02

Thanks so much Jean-Baptiste Kempf, you made my day !

I'm using OwnCloud with Embedded Videostream (http://apps.owncloud.com/content/show.p ... ent=162915) and it works with your build sent on PM. For the moment, the subtitles are not loading > just tested with Sintel (using Firefox, OwnCloud & Embedded Videostream) : http://ftp.nluug.nl/pub/graphics/blende ... 0.720p.mkv

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How to compile npapi-vlc on OS X Mavericks ?

Postby Jean-Baptiste Kempf » 12 Feb 2014 14:31

OK.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 15 guests