LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-20-2005, 02:30 AM   #1
Daniel49
Member
 
Registered: Jul 2005
Location: Washington
Distribution: fedora core3 soon ubuntu
Posts: 50

Rep: Reputation: 15
Beep media player and wma


in my quest to find a media player that streams well in linux I have finally tried beep-media-player.

installed and it plays streaming mp3 great. Now heres where it starts acting like linux again.

I also want to be able to add plugin for wma. So did some googling and found a how to, but as usual the how to seems not to work.

Here is what they tell me to do:

All of the commands below should be typed from a terminal. Applications->System Tools->Terminal

If you don't have the beep media player you can get it via synaptic or:

sudo apt-get install beep-media-player

First download the beep development files:

sudo apt-get install beep-media-player-dev

Download the WMA plugin:
wget http://download.berlios.de/bmp-plugi...a-0.1.1.tar.gz

Extract the files
tar -xvzf bmp-wma-0.1.1.tar.gz

Build and install the plugin

cd bmp-wma-0.1.1

./configure

make

sudo make install

That's it! You can now play WMA with Beep Media Player, keep in mind that it still cannot play WMA files with DRM.

Let me repeat this, BEEP CANNOT PLAY WMA FILES WITH DRM! It will open the file and show the title in the window but it will not play it.



All seems to go well except either at the configure or make command something is going amuck, here is output:



dan@ubuntu:~$ cd bmp-wma-0.1.1
dan@ubuntu:~/bmp-wma-0.1.1$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
dan@ubuntu:~/bmp-wma-0.1.1$ make
make: *** No targets specified and no makefile found. Stop.
dan@ubuntu:~/bmp-wma-0.1.1$


So any help appreciated here.thanks
 
Old 10-20-2005, 03:29 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You do not have g++ (gcc-cpp or gcc-c++) installed. Install that and then run ./configure again because it wasn;t successful the first time round due to the missing c++ compiler.
 
Old 10-20-2005, 04:02 AM   #3
Daniel49
Member
 
Registered: Jul 2005
Location: Washington
Distribution: fedora core3 soon ubuntu
Posts: 50

Original Poster
Rep: Reputation: 15
okay installed g++ now I get this:



dan@ubuntu:~$ cd bmp-wma-0.1.1
dan@ubuntu:~/bmp-wma-0.1.1$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... 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 how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... (cached) ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
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... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for pkg-config... /usr/bin/pkg-config
checking for bmp >= 0.9.7... yes
checking BEEP_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
checking BEEP_LIBS... -lbeep -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXinerama -lXi -lXrandr -lXext -lXcursor -lXfixes -lpango-1.0 -lcairo -lXrender -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
checking for gtk+-2.0 >= 2.4.0... yes
checking GTK_CFLAGS... -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking GTK_LIBS... -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXinerama -lXi -lXrandr -lXext -lXcursor -lXfixes -lpango-1.0 -lcairo -lXrender -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
checking for ANSI C header files... (cached) yes
checking OS.h usability... no
checking OS.h presence... no
checking for OS.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking for inttypes.h... (cached) yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for C/C++ restrict keyword... __restrict
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking for stdlib.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for working strtod... yes
checking for vprintf... yes
checking for _doprnt... no
checking for bzero... yes
checking for floor... no
checking for gettimeofday... yes
checking for localtime_r... yes
checking for memmove... yes
checking for memset... yes
checking for pow... no
checking for rint... no
checking for sqrt... no
checking for strcasecmp... yes
checking for strchr... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for lrintf... no
checking for localtime_r... (cached) yes
checking whether to include x86 specific optimization code... no
checking whether to include verbose debugging code... no
checking whether to include wma123... no

bmp-wma version 0.1.1 configured successfully.

Using '/usr/local' for installation.
Using 'gcc' for C compiler.
Building with '-g -O2 ' for C compiler flags.
Building with '' for linker flags.

configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/libffwma/Makefile
config.status: creating src/wma123/Makefile
config.status: creating config.h
config.status: executing depfiles commands
dan@ubuntu:~/bmp-wma-0.1.1$ make
make all-recursive
make[1]: Entering directory `/home/dan/bmp-wma-0.1.1'
Making all in src
make[2]: Entering directory `/home/dan/bmp-wma-0.1.1/src'
Making all in libffwma
make[3]: Entering directory `/home/dan/bmp-wma-0.1.1/src/libffwma'
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -g -O2 -MT libffwma_a-allcodecs.o -MD -MP -MF ".deps/libffwma_a-allcodecs.Tpo" -c -o libffwma_a-allcodecs.o `test -f 'allcodecs.c' || echo './'`allcodecs.c; \
then mv -f ".deps/libffwma_a-allcodecs.Tpo" ".deps/libffwma_a-allcodecs.Po"; else rm -f ".deps/libffwma_a-allcodecs.Tpo"; exit 1; fi
In file included from avcodec.h:14,
from allcodecs.c:21:
common.h:72: error: array type has incomplete element type
common.h:74: error: array type has incomplete element type
make[3]: *** [libffwma_a-allcodecs.o] Error 1
make[3]: Leaving directory `/home/dan/bmp-wma-0.1.1/src/libffwma'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/dan/bmp-wma-0.1.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dan/bmp-wma-0.1.1'
make: *** [all] Error 2
 
Old 10-20-2005, 09:34 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I am not sure why its not building ojn your system. An alternative way to install the plugin would be to find a Debian package or convert an rpm using alien and then install the resulting Debian package.
 
Old 10-22-2005, 06:12 PM   #5
ErrantDigeratus
LQ Newbie
 
Registered: Oct 2005
Location: MA
Posts: 1

Rep: Reputation: 0
Exclamation me too!

I was having the same problem, usung Ubuntu Breezy. No idea why it wouldn't compile, unless there's a gcc version compatibility issue. i used a really crude work-around (I just commented the offending structure out of the code), but it seems to have worked and, with some minor complaints from gcc during the make, i'm playing wma files without any problems. here's what i did, step by step:

in a terminal, from the bmp-wma-0.1.1 directory, type "cd src/libffwma"
open the file "common.h", which is causing all the problems, using your favorite text editor. i use emacs, but it's not a standard intall option with ubuntu breezy; vim is, which i don't know. so, use what you want, but the point is, scroll down to line 67, which should be blank. line 68 should define the struct AVOption. On line 67, type "/*", then on line 75 type "*/". save the file, close it, and then run "make" again. it should give some warnings, but no errors. next, run "sudo make install", which will run with no problems. And then you should be able to play wma files in bmp.

i don't know the code well enough to really know what this does, so I don't recommend doing it unless you're definitely getting the same error message as in the original post on this thread, because you might end up making things worse. that said, the worst that could happen is that you would crash BMP (it didn't do it on my computer), and you can always just uninstall bmp and reinstall it without being any worse for the wear.

-errantdigeratus
 
Old 10-22-2005, 07:20 PM   #6
Daniel49
Member
 
Registered: Jul 2005
Location: Washington
Distribution: fedora core3 soon ubuntu
Posts: 50

Original Poster
Rep: Reputation: 15
ok might give that a try later.
By downloading w32codecs I have gotten xine to play .wma and .wmv in the meantime from the command line I just type xine "medias_url"
and it plays for me.
 
Old 10-22-2005, 09:29 PM   #7
Daniel49
Member
 
Registered: Jul 2005
Location: Washington
Distribution: fedora core3 soon ubuntu
Posts: 50

Original Poster
Rep: Reputation: 15
I have taken a little bit of C basically all you did was comment out that section of code so that it doesn't act upon that struct.

Tried it and didn't work for me though?? it ran make with some warnings then install didnt work...so just changed commons back should be as before.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Beep Media Player WMA mburoff Linux - Software 1 12-06-2005 06:08 AM
beep-media player? ironwalker Linux - Software 4 09-19-2005 06:39 PM
Beep Media Player Location Kenji Miyamoto Slackware 4 05-27-2005 02:51 AM
beep-media-player error jackandking Linux - Software 10 12-20-2004 04:51 AM
beep media player linksocc Linux - Software 1 11-30-2003 05:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration