problem compiling vlc -0.9.9

*nix specific usage questions
herlit11
Blank Cone
Blank Cone
Posts: 13
Joined: 23 Apr 2009 22:14

problem compiling vlc -0.9.9

Postby herlit11 » 05 May 2009 19:39

Hello everyone, i am trying to compile vlc-0.9.9 from:

http://download.videolan.org/pub/videol ... .9.tar.bz2

configure goes well without errors,but when i try make i get :

error: ‘x264_param_t’ has no member named ‘b_pre_scenecut’

any ideas?

Thanks,regards
Herlit11

dimstar
Cone that earned his stripes
Cone that earned his stripes
Posts: 177
Joined: 15 Dec 2006 14:05
Location: Bucuresti, Romania
Contact:

Re: problem compiling vlc -0.9.9

Postby dimstar » 05 May 2009 20:42

Two choices for you:

- use the 0.9.9a tarball
or:

the following patch:

From f5371e6d593014146ef05b483c0c48a98397c178 Mon Sep 17 00:00:00 2001
From: Gergely Imreh <imrehg@gmail.com>
Date: Mon, 9 Mar 2009 18:46:25 +0800
Subject: [PATCH] Fix: b_pre_scenecut parameter removed from x264 build 67

Commit 3e4946f305317856ed79e0898f25f10859df22ed of x264 removed
the b_pre_scenecut parameter from x264.h, thus vlc build failed
on modules/codec/x264.c. Added another check to file that this
parameter is not assigned above x264 build 66.
---
modules/codec/x264.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index b2ddf23..12590a3 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -971,8 +971,10 @@ static int Open ( vlc_object_t *p_this )
#endif

#if X264_BUILD >= 55 /* r607 */
+#if X264_BUILD <= 66
var_Get( p_enc, SOUT_CFG_PREFIX "pre-scenecut", &val );
p_sys->param.b_pre_scenecut = val.b_bool;
+#endif
var_Get( p_enc, SOUT_CFG_PREFIX "non-deterministic", &val );
p_sys->param.b_deterministic = val.b_bool;
#endif
--
1.6.2

herlit11
Blank Cone
Blank Cone
Posts: 13
Joined: 23 Apr 2009 22:14

Re: problem compiling vlc -0.9.9

Postby herlit11 » 06 May 2009 16:56

Hi,thanks for your answer. I tried the patch but i get the following output:

patch: **** malformed patch at line 23: var_Get( p_enc, SOUT_CFG_PREFIX "pre-scenecut", &val );

I will try the tarball that you mentioned. If you have any new patches please post them.

Thanks,regards
Herlit11

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: problem compiling vlc -0.9.9

Postby thannoy » 06 May 2009 21:32

I think malformed line is related to missing space(s) at its beginning.

Code: Select all

From f5371e6d593014146ef05b483c0c48a98397c178 Mon Sep 17 00:00:00 2001 From: Gergely Imreh <imrehg@gmail.com> Date: Mon, 9 Mar 2009 18:46:25 +0800 Subject: [PATCH] Fix: b_pre_scenecut parameter removed from x264 build 67 Commit 3e4946f305317856ed79e0898f25f10859df22ed of x264 removed the b_pre_scenecut parameter from x264.h, thus vlc build failed on modules/codec/x264.c. Added another check to file that this parameter is not assigned above x264 build 66. --- modules/codec/x264.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/modules/codec/x264.c b/modules/codec/x264.c index b2ddf23..12590a3 100644 --- a/modules/codec/x264.c +++ b/modules/codec/x264.c @@ -971,8 +971,10 @@ static int Open ( vlc_object_t *p_this ) ¬#endif ¬#if X264_BUILD >= 55 /* r607 */ +#if X264_BUILD <= 66 var_Get( p_enc, SOUT_CFG_PREFIX "pre-scenecut", &val ); p_sys->param.b_pre_scenecut = val.b_bool; +#endif var_Get( p_enc, SOUT_CFG_PREFIX "non-deterministic", &val ); p_sys->param.b_deterministic = val.b_bool; ¬#endif -- 1.6.2
Remplacing ¬ with one space (the forum strip them)

ssaguiar
Blank Cone
Blank Cone
Posts: 28
Joined: 06 May 2009 22:35

Re: problem compiling vlc -0.9.9

Postby ssaguiar » 07 May 2009 01:56

I also am having troubles to compile the vlc.
I downloaded the latest tar.bz file and tried to compile using the infos at: http://wiki.videolan.org/UnixCompile
I think this is one more of the linux's impossible to compile stuff.

libswscale/swscale.c: In function âsws_format_nameâ:
libswscale/swscale.c:472: error: âPIX_FMT_VDPAU_H264â undeclared (first use in this function)
libswscale/swscale.c:472: error: (Each undeclared identifier is reported only once
libswscale/swscale.c:472: error: for each function it appears in.)
libswscale/swscale.c:474: error: âPIX_FMT_VDPAU_MPEG1â undeclared (first use in this function)
libswscale/swscale.c:476: error: âPIX_FMT_VDPAU_MPEG2â undeclared (first use in this function)
libswscale/swscale.c:478: error: âPIX_FMT_VDPAU_WMV3â undeclared (first use in this function)
libswscale/swscale.c:480: error: âPIX_FMT_VDPAU_VC1â undeclared (first use in this function)
libswscale/swscale.c:482: error: âPIX_FMT_YUV420PLEâ undeclared (first use in this function)
libswscale/swscale.c:484: error: âPIX_FMT_YUV422PLEâ undeclared (first use in this function)
libswscale/swscale.c:486: error: âPIX_FMT_YUV444PLEâ undeclared (first use in this function)
libswscale/swscale.c:488: error: âPIX_FMT_YUV420PBEâ undeclared (first use in this function)
libswscale/swscale.c:490: error: âPIX_FMT_YUV422PBEâ undeclared (first use in this function)
libswscale/swscale.c:492: error: âPIX_FMT_YUV444PBEâ undeclared (first use in this function)
libswscale/swscale.c: In function âyuv2yuvXinCâ:
libswscale/swscale.c:531: error: âCONFIG_SWSCALE_ALPHAâ undeclared (first use in this function)
libswscale/swscale.c: In function âyuv2packedXinCâ:
libswscale/swscale.c:1025: error: âCONFIG_SMALLâ undeclared (first use in this function)
libswscale/swscale.c:1025: error: âCONFIG_SWSCALE_ALPHAâ undeclared (first use in this function)
libswscale/swscale.c: In function âyuv2rgbXinC_fullâ:
libswscale/swscale.c:1043: error: âCONFIG_SMALLâ undeclared (first use in this function)
libswscale/swscale.c:1044: error: âCONFIG_SWSCALE_ALPHAâ undeclared (first use in this function)
In file included from libswscale/swscale.c:1196:
libswscale/swscale_template.c: In function âyuv2yuvX_MMX2â:
libswscale/swscale_template.c:915: error: âCONFIG_SWSCALE_ALPHAâ undeclared (first use in this function)
libswscale/swscale_template.c: In function âyuv2yuv1_MMX2â:
libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type
libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type
libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type
libswscale/swscale_template.c:961: warning: initialization from incompatible pointer type
libswscale/swscale_template.c:1020: error: âCONFIG_SWSCALE_ALPHAâ undeclared (first use in this function)
libswscale/swscale_template.c: In function âyuv2packedX_MMX2â:
libswscale/swscale_template.c:1041: error: âCONFIG_SWSCALE_ALPHAâ undeclared (first use in this function)
libswscale/swscale_template.c: In function âyuv2packed2_MMX2â:
libswscale/swscale_template.c:1230: error: âCONFIG_SWSCALE_ALPHAâ undeclared (first use in this function)
libswscale/swscale_template.c:1246: warning: dereferencing type-punned pointer will break strict-aliasing rules
libswscale/swscale_template.c:1246: warning: assignment discards qualifiers from pointer target type
libswscale/swscale_template.c:1247: warning: dereferencing type-punned pointer will break strict-aliasing rules
libswscale/swscale_template.c:1247: warning: assignment discards qualifiers from pointer target type
libswscale/swscale_template.c:1361: error: âCONFIG_SMALLâ undeclared (first use in this function)
libswscale/swscale_template.c: In function âyuv2packed1_MMX2â:
libswscale/swscale_template.c:1389: error: âCONFIG_SWSCALE_ALPHAâ undeclared (first use in this function)
libswscale/swscale_template.c:1606: error: âCONFIG_SMALLâ undeclared (first use in this function)
libswscale/swscale_template.c: In function âhScale_MMX2â:
libswscale/swscale_template.c:2244: warning: initialization discards qualifiers from pointer target type
libswscale/swscale_template.c: In function âswScale_MMX2â:
libswscale/swscale_template.c:2817: error: âCONFIG_SWSCALE_ALPHAâ undeclared (first use in this function)
libswscale/swscale_template.c:2946: warning: assignment discards qualifiers from pointer target type
libswscale/swscale_template.c:2947: warning: assignment discards qualifiers from pointer target type
libswscale/swscale_template.c:2952: warning: assignment discards qualifiers from pointer target type
libswscale/swscale_template.c:2953: warning: assignment discards qualifiers from pointer target type
libswscale/swscale_template.c:2959: warning: assignment discards qualifiers from pointer target type
libswscale/swscale_template.c:2960: warning: assignment discards qualifiers from pointer target type
libswscale/swscale_template.c:2969: warning: cast from pointer to integer of different size
libswscale/swscale_template.c:2975: warning: cast from pointer to integer of different size
libswscale/swscale_template.c:2983: warning: cast from pointer to integer of different size
libswscale/swscale_template.c:2998: error: âPIX_FMT_YUV420PLEâ undeclared (first use in this function)
libswscale/swscale_template.c:2998: error: âPIX_FMT_YUV422PLEâ undeclared (first use in this function)
libswscale/swscale_template.c:2998: error: âPIX_FMT_YUV444PLEâ undeclared (first use in this function)
libswscale/swscale_template.c:2998: error: âPIX_FMT_YUV420PBEâ undeclared (first use in this function)
libswscale/swscale_template.c:2998: error: âPIX_FMT_YUV422PBEâ undeclared (first use in this function)
libswscale/swscale_template.c:2998: error: âPIX_FMT_YUV444PBEâ undeclared (first use in this function)
libswscale/swscale_template.c: In function âsws_init_swScale_MMX2â:
libswscale/swscale_template.c:3155: error: âPIX_FMT_YUV420PBEâ undeclared (first use in this function)
libswscale/swscale_template.c:3156: error: âPIX_FMT_YUV422PBEâ undeclared (first use in this function)
libswscale/swscale_template.c:3157: error: âPIX_FMT_YUV444PBEâ undeclared (first use in this function)
libswscale/swscale_template.c:3158: error: âPIX_FMT_YUV420PLEâ undeclared (first use in this function)
libswscale/swscale_template.c:3159: error: âPIX_FMT_YUV422PLEâ undeclared (first use in this function)
libswscale/swscale_template.c:3160: error: âPIX_FMT_YUV444PLEâ undeclared (first use in this function)
libswscale/swscale.c: In function âgetSwsFuncâ:
libswscale/swscale.c:1795: warning: unused variable âflagsâ
libswscale/swscale.c: In function âplanarCopyâ:
libswscale/swscale.c:2166: error: âPIX_FMT_YUV420PLEâ undeclared (first use in this function)
libswscale/swscale.c:2166: error: âPIX_FMT_YUV422PLEâ undeclared (first use in this function)
libswscale/swscale.c:2166: error: âPIX_FMT_YUV444PLEâ undeclared (first use in this function)
libswscale/swscale.c:2166: error: âPIX_FMT_YUV420PBEâ undeclared (first use in this function)
libswscale/swscale.c:2166: error: âPIX_FMT_YUV422PBEâ undeclared (first use in this function)
libswscale/swscale.c:2166: error: âPIX_FMT_YUV444PBEâ undeclared (first use in this function)
libswscale/swscale.c: In function âgetSubSampleFactorsâ:
libswscale/swscale.c:2223: error: âPIX_FMT_YUV420PLEâ undeclared (first use in this function)
libswscale/swscale.c:2224: error: âPIX_FMT_YUV420PBEâ undeclared (first use in this function)
libswscale/swscale.c:2243: error: âPIX_FMT_YUV444PLEâ undeclared (first use in this function)
libswscale/swscale.c:2244: error: âPIX_FMT_YUV444PBEâ undeclared (first use in this function)
libswscale/swscale.c:2249: error: âPIX_FMT_YUV422PLEâ undeclared (first use in this function)
libswscale/swscale.c:2250: error: âPIX_FMT_YUV422PBEâ undeclared (first use in this function)
libswscale/swscale.c: In function âsws_setColorspaceDetailsâ:
libswscale/swscale.c:2288: error: âPIX_FMT_YUV420PLEâ undeclared (first use in this function)
libswscale/swscale.c:2288: error: âPIX_FMT_YUV422PLEâ undeclared (first use in this function)
libswscale/swscale.c:2288: error: âPIX_FMT_YUV444PLEâ undeclared (first use in this function)
libswscale/swscale.c:2288: error: âPIX_FMT_YUV420PBEâ undeclared (first use in this function)
libswscale/swscale.c:2288: error: âPIX_FMT_YUV422PBEâ undeclared (first use in this function)
libswscale/swscale.c:2288: error: âPIX_FMT_YUV444PBEâ undeclared (first use in this function)
libswscale/swscale.c: In function âsws_getColorspaceDetailsâ:
libswscale/swscale.c:2336: error: âPIX_FMT_YUV420PLEâ undeclared (first use in this function)
libswscale/swscale.c:2336: error: âPIX_FMT_YUV422PLEâ undeclared (first use in this function)
libswscale/swscale.c:2336: error: âPIX_FMT_YUV444PLEâ undeclared (first use in this function)
libswscale/swscale.c:2336: error: âPIX_FMT_YUV420PBEâ undeclared (first use in this function)
libswscale/swscale.c:2336: error: âPIX_FMT_YUV422PBEâ undeclared (first use in this function)
libswscale/swscale.c:2336: error: âPIX_FMT_YUV444PBEâ undeclared (first use in this function)
libswscale/swscale.c: In function âsws_getContextâ:
libswscale/swscale.c:2408: error: âPIX_FMT_YUV420PLEâ undeclared (first use in this function)
libswscale/swscale.c:2408: error: âPIX_FMT_YUV422PLEâ undeclared (first use in this function)
libswscale/swscale.c:2408: error: âPIX_FMT_YUV444PLEâ undeclared (first use in this function)
libswscale/swscale.c:2408: error: âPIX_FMT_YUV420PBEâ undeclared (first use in this function)
libswscale/swscale.c:2408: error: âPIX_FMT_YUV422PBEâ undeclared (first use in this function)
libswscale/swscale.c:2408: error: âPIX_FMT_YUV444PBEâ undeclared (first use in this function)
libswscale/swscale.c:2768: error: âCONFIG_SWSCALE_ALPHAâ undeclared (first use in this function)
libswscale/swscale.c: In function âreset_ptrâ:
libswscale/swscale.c:2917: error: âPIX_FMT_YUV420PLEâ undeclared (first use in this function)
libswscale/swscale.c:2917: error: âPIX_FMT_YUV422PLEâ undeclared (first use in this function)
libswscale/swscale.c:2917: error: âPIX_FMT_YUV444PLEâ undeclared (first use in this function)
libswscale/swscale.c:2917: error: âPIX_FMT_YUV420PBEâ undeclared (first use in this function)
libswscale/swscale.c:2917: error: âPIX_FMT_YUV422PBEâ undeclared (first use in this function)
libswscale/swscale.c:2917: error: âPIX_FMT_YUV444PBEâ undeclared (first use in this function)
libswscale/swscale.c: In function âsws_freeContextâ:
libswscale/swscale.c:3352: error: âCONFIG_SWSCALE_ALPHAâ undeclared (first use in this function)
libswscale/swscale.c: In function âsws_getCachedContextâ:
libswscale/swscale.c:3404: warning: assignment discards qualifiers from pointer target type
make[2]: ** [libswscale/swscale.o] Erro 1
make[2]: Saindo do diretório `/usr/src/vlc-0.9.9/extras/contrib/src/ffmpeg'
make[1]: ** [.ffmpeg] Erro 2
make[1]: Saindo do diretório `/usr/src/vlc-0.9.9/extras/contrib/src'
make: ** [using-src] Erro 2

Sergio

thannoy
Big Cone-huna
Big Cone-huna
Posts: 601
Joined: 20 Mar 2008 09:44
VLC version: 0.9.8a & 1.0-git
Operating System: GNU/Linux Fedora10
Location: France
Contact:

Re: problem compiling vlc -0.9.9

Postby thannoy » 07 May 2009 10:34

Sergio: Your problem is different, you should have created another topic for it., Also you should have used "code" tags around your long logs (you can edit your message, it will be more readable).
You can try to compile VLC without swscale support (with which the problem seems to be). Try to add something like --disable-swscale to ./configure parameters.

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: problem compiling vlc -0.9.9

Postby xtophe » 07 May 2009 16:26

@sergio:
Or your libswscale is too old
Xtophe

ssaguiar
Blank Cone
Blank Cone
Posts: 28
Joined: 06 May 2009 22:35

Re: problem compiling vlc -0.9.9

Postby ssaguiar » 07 May 2009 16:39

Thanks my friends for your answers.

I really messed up a little bit the post (sorry thannoy).
I will try to follow your indications.
My best regards and thanks again.

Sergio


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 6 guests