LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 06-20-2008, 07:50 AM   #1
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
Code errors while compiling Mplayer


Dear all:

The GCC threw this error on the terminal:
Code:
make -C libvo libvo.a
make[1]: Entering directory `/root/downloads/MPlayer-1.0rc2/libvo'
cc -I../libavcodec -I../libavformat -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -I. -I.. -I../libavutil -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DHAVE_CONFIG_H -I/usr/X11/include -I/usr/include/  -I/usr/include/SDL  -D_REENTRANT -I/usr/include/artsc -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/freetype2 -I/usr/include   -c -o vo_ivtv.o vo_ivtv.c
vo_ivtv.c: In function 'ivtv_reset':
vo_ivtv.c:79: error: storage size of 'sd' isn't known
vo_ivtv.c:80: error: storage size of 'sd1' isn't known
vo_ivtv.c:84: error: 'IVTV_STOP_FL_HIDE_FRAME' undeclared (first use in this function)
vo_ivtv.c:84: error: (Each undeclared identifier is reported only once
vo_ivtv.c:84: error: for each function it appears in.)
vo_ivtv.c:87: error: 'IVTV_IOC_STOP_DECODE' undeclared (first use in this function)
vo_ivtv.c:97: error: 'IVTV_IOC_START_DECODE' undeclared (first use in this function)
vo_ivtv.c:80: warning: unused variable 'sd1'
vo_ivtv.c:79: warning: unused variable 'sd'
make[1]: *** [vo_ivtv.o] Error 1
make[1]: Leaving directory `/root/downloads/MPlayer-1.0rc2/libvo'
make: *** [libvo/libvo.a] Error 2
The '*.C' file is given below:
Code:
#include "config.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <inttypes.h>
#include <linux/types.h>
#include <linux/videodev2.h>
#include <linux/ivtv.h>
#include <linux/ioctl.h>

#include "mp_msg.h"
#include "subopt-helper.h"
#include "video_out.h"
#include "video_out_internal.h"
#include "libmpdemux/mpeg_packetizer.h"

#define DEFAULT_MPEG_DECODER "/dev/video16"
#define IVTV_VO_HDR "VO: [ivtv]"

/* ivtv private */
int ivtv_fd = -1;
static vo_mpegpes_t *pes;

/* suboptions */
static int output = -1;
static char *device = NULL;

static opt_t subopts[] = {
  {"output",   OPT_ARG_INT,       &output,       (opt_test_f)int_non_neg},
  {"device",   OPT_ARG_MSTRZ,     &device,       NULL},
  {NULL}
};

static vo_info_t info = 
{
  "IVTV MPEG Video Decoder TV-Out",
  "ivtv",
  "Benjamin Zores",
  ""
};
LIBVO_EXTERN (ivtv)

/* ivtv internals */

static uint32_t
ivtv_reset (int blank_screen)
{
  struct ivtv_cfg_stop_decode sd;
  struct ivtv_cfg_start_decode sd1;
  int flags = 0;

  if (blank_screen)
    flags |= IVTV_STOP_FL_HIDE_FRAME;
  sd.flags = flags;
 
  if (ioctl (ivtv_fd, IVTV_IOC_STOP_DECODE, &sd) < 0)
  {
    mp_msg (MSGT_VO, MSGL_ERR,
            "IVTV_IOC_STOP_DECODE: %s\n", strerror (errno));
    return 1;
  }
  
  sd1.gop_offset = 0;
  sd1.muted_audio_frames = 0;
  
  if (ioctl (ivtv_fd, IVTV_IOC_START_DECODE, &sd1) < 0)
  {
    mp_msg (MSGT_VO, MSGL_ERR,
            "IVTV_IOC_START_DECODE: %s\n", strerror (errno));
    return 1;
  }

  return 0;
}
I am not able to correct them. Please help.
 
Old 06-20-2008, 07:53 AM   #2
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334

Original Poster
Blog Entries: 1

Rep: Reputation: 31
This line 'ivtv_reset (int blank_screen)' is the 77th.
 
Old 06-20-2008, 08:20 AM   #3
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
I found some bug-reports on the issue - maybe you should get a newer source ?
some mentioned it would not fail if built without ivtv - do you need it?

found here:
http://linuxpackages.net/forum/viewt...862cc8e6da009b
Quote:
Are you using ivtv? try ./configure --disable-ivtv
ps: why is this post so wide? Can you edit these long lines out?

Last edited by jomen; 06-20-2008 at 08:21 AM.
 
Old 07-09-2008, 11:13 PM   #4
biggblukat
LQ Newbie
 
Registered: Jul 2008
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by jomen View Post
I found some bug-reports on the issue - maybe you should get a newer source ?
some mentioned it would not fail if built without ivtv - do you need it?

found here:
"link deleted"

ps: why is this post so wide? Can you edit these long lines out?
I know this post is about a month old, but I'd had the same problem installing and setting up a Slackware system. I had tried to manually disable the ivtv ability, but maybe my syntax (typing) was wrong. I completely deleted the MplayerXXXX directory I was in and started over, copying and pasting from your quote. Compiled perfectly!

I tried to compile from latest cvn (07/10/2008) and ended with an entire set of new problems, it couldn't find some other libraries that were part of the ffmpeg library. I verified I had compiled them and used slocate to verify they were present, but current cvn version didn't work well either.

Good news with my frustration, I downloaded and compiled every video/audio codec available to try to get either to compile. I can play DVD, H264/AAC, Xvid, etc. with no problems in xine and mplayer. My mplayer plugin in firefox works now as well as a movie I downloaded and copied from my Playstation3, finally, Thanks since original poster did not reply.

p.s. I agree I don't know why the post is so wide?
 
  


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
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
Major compilation errors in emacs while compiling c code dualcyclone Linux - Software 0 03-26-2004 01:31 PM
G++ - why am i getting errors compiling this simple code leroy27336 Programming 4 11-18-2003 08:32 PM
Getting Incompatibility Errors While Compiling The Following Code. pritesh Programming 4 10-23-2003 04:18 PM
code errors FuLL-On-Newbie Linux - General 5 04-11-2003 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:53 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