LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-18-2003, 04:08 AM   #1
sirpelidor
Member
 
Registered: Oct 2003
Location: Madison
Distribution: mdk 8.2, 9.0, 9.2, slack 9.1
Posts: 403

Rep: Reputation: 30
can use mplayer to play video, but not gmplayer....


hi, i'm able to play movie: mplayer /mnt/cdrom/movie.dat
but i can't do the same thing in gmplayer,

when i bring the gmplayer out, and locate the file, i got this error:

Error opening/initializing the selected video_out (-vo) device.

in console, it complains:
can't find /dev/mga_vid



i'm using G400 matrox 32mb

i tried "compile" mga_vid.c under /prefix/mplayer/driver so that i can get mga_vid locate in /dev
but i couldn't do it, because when i type make under /prefix/mplayer/driver

i got this msg...

[root@localhost drivers]# make
cc -O2 -D__KERNEL__ -DMODULE -include /usr/src/linux/include/linux/modversions.h -I/usr/src/linux/include -c mga_vid.c
mga_vid.c: /usr/src/linux/include/linux/modversions.h: No such file or directory
In file included from mga_vid.c:35:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from /usr/include/linux/prefetch.h:13,
from /usr/include/linux/list.h:6,
from /usr/include/linux/module.h:11,
from mga_vid.c:36:
/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:55: requested alignment is not a constant
In file included from /usr/include/linux/module.h:296,
from mga_vid.c:36:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error " instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from mga_vid.c:36:
/usr/include/linux/module.h:298: parse error before "UTS_RELEASE"
mga_vid.c:44:40: missing binary operator before '('
mga_vid.c:121:40: missing binary operator before '('
mga_vid.c:150:40: missing binary operator before '('
mga_vid.c: In function `mga_vid_find_card':
mga_vid.c:1344: structure has no member named `base_address'
mga_vid.c:1345: structure has no member named `base_address'
mga_vid.c:1501:41: missing binary operator before '('
mga_vid.c:1541:41: missing binary operator before '('
mga_vid.c: At top level:
mga_vid.c:1572: warning: initialization from incompatible pointer type
mga_vid.c:1573: warning: initialization from incompatible pointer type
mga_vid.c:1574: warning: initialization from incompatible pointer type
mga_vid.c:1577: warning: initialization from incompatible pointer type
mga_vid.c:1578: warning: initialization from incompatible pointer type
mga_vid.c:1579: warning: initialization from incompatible pointer type
mga_vid.c:1582: warning: initialization from incompatible pointer type
make: *** [mga_vid.o] Error 1



plz forgive such long spam, just trying to get as much as help here by providing detail info :P

thank you
 
Old 11-18-2003, 10:18 AM   #2
LinFreak!
Member
 
Registered: Jul 2003
Location: England
Distribution: slack9.1
Posts: 209

Rep: Reputation: 30
I hate to say this (as I am not an expert on the subject) but I think it would be better for you to download the kernel source and compile it outside the usr/src directory. I always do it in my home directory as a user and then su (change to root) to do "make install" and "make modules_install". This is also explained in the "starwars" xscreensaver ;~)
 
Old 11-22-2003, 11:32 PM   #3
sirpelidor
Member
 
Registered: Oct 2003
Location: Madison
Distribution: mdk 8.2, 9.0, 9.2, slack 9.1
Posts: 403

Original Poster
Rep: Reputation: 30
thanks LinFreak, and i found the root causing problem.

mplayer was looking for my mga_vid under /dev by default. i noticed that when i was reading ./configure -help, because i'm running G400, therefore i must have mga_vid (its a driver for matrox g400),

instead of trying to compile base on the given files from mplayer/drivers, i found a mga_vid.o within my system (was locate /usr/src/module/.....), and i just ismod with it.

now i have mga_vid under /dev and the driver is come with my distro, now it works like champs
cheer
 
Old 11-23-2003, 06:02 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
unless i'm mistaken you're trying to play a VCD right? don't mount the drive, that's not what you should be doing: mplayer vcd://1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
mplayer does not play video files in FC4 chirayan Linux - Newbie 2 08-01-2005 12:36 AM
video files dont play on mplayer mayasedai Linux - Software 4 01-17-2005 10:30 AM
MPLAYER fail to play video file. hanbin Linux - Software 1 11-20-2004 10:08 AM
Mplayer won't play video files! MustangCSA Linux - Software 6 10-23-2004 12:54 AM
mplayer trying to play streaming video illtbagu Linux - Newbie 3 01-30-2003 07:40 PM


All times are GMT -5. The time now is 02:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration