Avidemux Forum

Avidemux => Windows => Topic started by: pulkitw on July 04, 2012, 06:57:21 AM

Title: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 04, 2012, 06:57:21 AM
Hi, i am a newbie trying to compile avidemux v2.5.6. following the guide  http://sourceforge.net/projects/avidemux-mswin/files/misc/

While building avidemux i am getting pkg-config not found while i have copied the same in MSYS\local folder. I tried after updating the pkg-config with its new version but still the problem persists.
How should i proceed further?

(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FXhlCU.png&hash=d3b3fd7bf275cd0a82f6e641f4db9381)
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 04, 2012, 07:10:56 AM
Is MSYS\local\bin in your path environment variable?  If you run "export" in MSYS shell, do you see /usr/local/bin in PATH?
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 04, 2012, 07:15:34 AM
gruntster, Yes usr/local/bin is there in the path.

(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F4fLVg.png&hash=5fab54f5db2188a08c39f5a0b7146cf2)
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 04, 2012, 07:58:10 AM
Executing "pkg-config" works?

Also CMake 2.8.8 has a bug detecting pkg-config (http://www.cmake.org/Bug/view.php?id=13125).

You'll need to either revert back to CMake 2.8.7, patch CMake 2.8.8 or patch Avidemux.

CMake 2.8.8 patch: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3ea850a5023060b84dcc0e6f0098c32c28b15807
Avidemux patch: http://svn.berlios.de/wsvn/avidemux?op=comp&compare%5B%5D=/@7892&compare%5B%5D=/@7893
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 04, 2012, 09:11:51 AM
gruntster, I did revert back to CMake2.8.7.
pkg-config has worked :) now i am getting another error, dxva2 not detected while i have downloaded the file "dxva2api.h" as said in the guide.
(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FVFISe.png&hash=d8cb0bd5a8169856ac066a2b9ab44093)

when i re-run the command w/o deleting the CMakeCache.txt, the configuration is complete but Qt is not detected when i have installed qt-win-opensource-4.6.1-mingw.exe as mentioned in the guide.
(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FpjV4F.png&hash=88335e2c64ed87e5aea399a89ce5e6ff)



p.s : i did not download the following files to the MinGW folder and skipped the patch process as well
http://avidemux.razorbyte.com.au/misc/_ming_mac.h.diff
http://avidemux.razorbyte.com.au/misc/basetyps.h.diff
http://avidemux.razorbyte.com.au/misc/objbase.h.diff
as the link was not available and i could not find it after googling as well. So i am proceeding w/o these files.
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 04, 2012, 09:25:40 AM
gruntster, Also if i assume everything is going fine and run the "make" command
i encounter this :
(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FSWFeW.png&hash=28f62b37bd689283538c461b7e919541)

Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 04, 2012, 09:53:41 AM
Based on your screen grab, it looks like you've installed MSYS coreutils 5.97-3.  If that's the case, you'll also need the coreutils-5.97-3-msys-1.0.13-ext package (which includes pr.exe).

This may also fix the dxva issue, otherwise try moving the header file to the MSYS/local/include folder.

As for the Qt issue, if you run "export" again, is the QTDIR variable set correctly?

It also looks like the version of MinGW you're using is probably too old but we can tackle that once you have the CMake process sorted.
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 04, 2012, 10:18:18 AM
Moving the header file to MSYS/local/include worked :)

As for Qt issue, QTDIR was not set correctly so I changed it in MSYS\etc\profile but still in exports it shows the old one. :|

And i have installed mingw-w32-bin_i686-mingw_20111219.
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 04, 2012, 10:24:46 AM
You'll need to close MSYS and reopen it for your profile changes to take effect.

I'd recommend using niXman's MinGW builds: http://sourceforge.net/projects/mingwbuilds/files/windows-host/4.7.1/release/
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 04, 2012, 10:34:09 AM
oh, my bad :)
& i'll try with MinGW you recommended.. :)
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 04, 2012, 10:49:23 AM
I have unzipped the niXman's built, and tried to run "make" i got a dialog box with error "libgmp-3.dll is missing from your computer try reinstalling the program"

(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FqPjsf.png&hash=32877e8d2e9a7d382d9cb5e63090f12e)

log :
(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FDBcsa.png&hash=83d89247891cd551607735fbd92d5d1f)

Should i try someother version of MinGW ?
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 04, 2012, 10:59:23 AM
Are you using GCC 4.7.1?  libgmp-3.dll is usually a requirement for older versions of GCC.  Are you sure you've not ended up with a mix of versions?  Did you perform a clean build with the new MinGW (i.e. started with an empty build folder)?
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 04, 2012, 11:06:22 AM
Otherwise you could try Ruben's MinGW builds (http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/release/).  I don't use them because they're not multilib but they're about the only other reliable MinGW-w64 builds available at the moment.
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 04, 2012, 11:46:51 AM
Yes, i did not end up with mix of versions and i did not start with empty build folder but i ran the cmake command again.
I started fresh now, I have unzipped the gtk+ dependencies in the mingw folder.

While running cmake command i used to get these errors but the configuring used to be complete, but this time its the opposite.

(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2Fm9xhr7.png&hash=9723a50391f265474225b225f3a31b0a)
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 04, 2012, 12:09:10 PM
Based on your screen grab, it looks like you've installed MSYS coreutils 5.97-3.  If that's the case, you'll also need the coreutils-5.97-3-msys-1.0.13-ext package (which includes pr.exe).

You did grab this package, right?
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 04, 2012, 12:16:11 PM
As i said earlier i had "coreutils-5.97-2-msys-1.0.11-bin"
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 04, 2012, 12:27:17 PM
I don't see that in your previous posts but no worries.  Perhaps try upgrading to coreutils 5.97-3 bin and ext packages.  You need pr.exe.
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 04, 2012, 12:52:33 PM
Apologies, i had forgot to mention it before.
upgrading coreutils has done the job.

but i guess avidemux has some serious issues with me..
Here's another problem while running make:

(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2F2s8nujr.png&hash=cd9fbb099fe2c30eb85699a9887e7792)
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 05, 2012, 12:16:04 AM
It looks like you're using a 64-bit compiler with 32-bit libraries.

My guide was written at a time when only 32-bit builds were possible.  32-bit is still easier to do than 64-bit because more libraries are available pre-built as 32-bit.

I'd recommend getting 32-bit to work first.  You have two options:
1. Use a 32-bit (i686) compiler instead of 64-bit (x86_64).
2. If you're using a multilib compiler such as niXman's then you can instruct your 64-bit compiler to produce 32-bit binaries.  Execute the following lines in your MSYS shell or add them to your MSYS profile:

Code: [Select]
export CFLAGS="$CFLAGS -m32"
export CXXFLAGS="$CXXFLAGS -m32"
export LDFLAGS="$LDFLAGS -m32"

You'll need to start again with an empty build folder once you've made your tweaks.
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 05, 2012, 08:04:32 AM
Thanks gruntster, i was using niXman's compiler, executing MSYS shell commands did the job :)

I got another error while running the make command. I tried to figure it out but i could understand why the error is there, like i did not find any error in the code.

(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fi45.tinypic.com%2Fnns9s7.png&hash=904f9d2d09a3c7d3efd88b79dab9e774)
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 05, 2012, 10:41:10 AM
Weird.  One of the external libraries must also declare something called DELETE.  I can't reproduce the issue.

You could rename the DELETE macro in ADM_videoFilter.h and all source files that use it.  Alternatively you could search the header files in your MSYS and MinGW include folders for a conflicting DELETE declaration.  It may provide some insight into how to work around the problem in a cleaner fashion.
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: Jan Gruuthuse on July 05, 2012, 12:35:39 PM
DELETE was a reserved word in Visual FoxPro (database programming) perhaps some library is using this to? Don't know if this would be the case for other programs?
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 06, 2012, 06:24:36 AM
I renamed the DELETE macro, as i could not find any other file in MSYS and MinGW defining the same macro, it worked also but i got stuck here

(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FzaASX.png&hash=cf7c2e1426fa801df75c8cad51b913cf)

I thought maybe i have modified wrong part of the file and so i downloaded the source code again and started compiling w/o changing the macro, it compiled smoothly through ADM_video/videoFilter, so i could not figure out exactly what was the issue with DELETE macro but anyways i got stuck at the same error mentioned above. I am out of ideas how should i cater this.

Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 06, 2012, 06:31:25 AM
I'd say the ffmpeg build failed.  If you type "make ffmpeg" do you see an error in the output?
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 06, 2012, 06:36:15 AM
Yes, ffmpeg build failed.

(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F1n6uD.png&hash=cbb864bee2b20a942619ccdb1000fb5f)

how should i cater this?
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 06, 2012, 06:43:24 AM
If you're still using the niXman MinGW build then please delete dxva2api.h from MSYS/local/include.  A compatible version should already exist in mingw/x86_64-w64-mingw32/include.
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 06, 2012, 07:04:56 AM
Gruntster, even after deleting the dxva2api.h from MSYS/local/include i am getting the same error.

make ffmpeg gives this result :

(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F3zpVM.png&hash=d3c07fcffd44098a8a87f930e2562af8)
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 06, 2012, 07:07:17 AM
What's the first error when executing "make ffmpeg"?
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 06, 2012, 07:15:40 AM
yea i have grabbed both the coreutils-5.97.3 packages as you said.
Sorry i could not redirect the errors to a file ( > filename did not work )
so here is the screen grab :
(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FjepU6.png&hash=95b59b0f2d2d48278e34ae8bcabff783)

(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FxKbjt.png&hash=4895ebfbf0ca6ff9930734ab05f95a3a)
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 06, 2012, 09:04:08 AM
To capture errors to file, use "command 2> filename".

I guess it can't find dxva2api.h but I'd expect a missing header error instead.  I've actually added the include folder to my CFLAGS, CXXFLAGS and CMAKE_INCLUDE_PATH so maybe you need the same.  e.g.

Code: [Select]
export CMAKE_INCLUDE_PATH=/usr/local/include;/mingw/x86_64-w64-mingw32/include
export CFLAGS=-I/usr/local/include -I/mingw/x86_64-w64-mingw32/include
export CXXFLAGS=-I/usr/local/include -I/mingw/x86_64-w64-mingw32/include
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 06, 2012, 09:32:54 AM
I see, i'll use that to capture the errors next time :)

I added the include folder to my CFLAGS CXXFLAGS and CMAKE_INCLUDE_PATH but i'm getting the same error :
These errors come when i make ffmpeg :

Code: [Select]
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:28:5: error: unknown type name 'DXVA_PicParams_H264'
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:29:5: error: unknown type name 'DXVA_Qmatrix_H264'
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:31:5: error: unknown type name 'DXVA_Slice_H264_Short'
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:32:5: error: unknown type name 'DXVA_Slice_H264_Long'
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:37:32: error: unknown type name 'DXVA_PicEntry_H264'
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:45:37: error: unknown type name 'DXVA_PicParams_H264'
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:156:80: error: unknown type name 'DXVA_Qmatrix_H264'
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:188:30: error: unknown type name 'DXVA_Slice_H264_Short'
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:197:52: error: unknown type name 'DXVA_Slice_H264_Long'
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c: In function 'commit_bitstream_and_slice_buffer':
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:284:5: error: unknown type name 'DXVA_Slice_H264_Short'
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:293:5: warning: passing argument 3 of 'ctx->decoder->lpVtbl->GetBuffer' from incompatible pointer type [enabled by default]
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:293:5: note: expected 'void **' but argument is of type 'uint8_t **'
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:313:22: error: 'DXVA_Slice_H264_Short' undeclared (first use in this function)
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:313:22: note: each undeclared identifier is reported only once for each function it appears in
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:313:44: error: expected expression before ')' token
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:315:25: error: request for member 'BSNALunitDataLocation' in something not a structure or union
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:316:25: error: request for member 'SliceBytesInBuffer' in something not a structure or union
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:322:14: error: request for member 'BSNALunitDataLocation' in something not a structure or union
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:323:14: error: request for member 'SliceBytesInBuffer' in something not a structure or union
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:326:13: error: unknown type name 'DXVA_Slice_H264_Long'
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:326:49: error: 'DXVA_Slice_H264_Long' undeclared (first use in this function)
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:326:70: error: expected expression before ')' token
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:328:27: error: request for member 'NumMbsForSlice' in something not a structure or union
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:329:34: error: request for member 'first_mb_in_slice' in something not a structure or union
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:329:68: error: request for member 'first_mb_in_slice' in something not a structure or union
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:331:27: error: request for member 'NumMbsForSlice' in something not a structure or union
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:331:67: error: request for member 'first_mb_in_slice' in something not a structure or union
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:345:14: error: request for member 'SliceBytesInBuffer' in something not a structure or union
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c: In function 'start_frame':
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:385:5: error: implicit declaration of function 'fill_picture_parameters' [-Werror=implicit-function-declaration]
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:388:5: error: implicit declaration of function 'fill_scaling_lists' [-Werror=implicit-function-declaration]
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c: In function 'decode_slice':
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:414:9: error: implicit declaration of function 'fill_slice_short' [-Werror=implicit-function-declaration]
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:417:9: error: implicit declaration of function 'fill_slice_long' [-Werror=implicit-function-declaration]
c:/devavi/avidemux/avidemux/ADM_libraries/ffmpeg/libavcodec/dxva2_h264.c:422:20: error: request for member 'wBitFields' in something not a structure or union
cc1.exe: some warnings being treated as errors
make[4]: *** [libavcodec/dxva2_h264.o] Error 1
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 08, 2012, 05:40:25 AM
Ok, I can reproduce the issue now.  The latest MinGW-w64 release (2.0.4) includes changes to dxva2api.h which borks the FFmpeg build.  FFmpeg have already updated their sources.  So I guess you have two options:

1. Add the following line to libavcodec/dxva2_internal.h:
Code: [Select]
#include <dxva.h>
2. Revert to niXman's 4.7.1-rev0 build, which includes MinGW-w64 2.0.3.
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 09, 2012, 06:16:27 AM
Gruntster, First of all, thanks for putting that much efforts, i really appreciate that :)
I followed it as you said, now make ffmpeg gets stuck at h264_cabac.o

Code: [Select]
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s: Assembler messages:
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:18: Error: junk `:2ff_h264_lps_range' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:31: Error: junk `:2ff_h264_norm_shift' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:33: Error: junk `:2ff_h264_mlps_state+128' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:46: Error: junk `:2ff_h264_norm_shift' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:81: Error: junk `:2ff_h264_lps_range' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:94: Error: junk `:2ff_h264_norm_shift' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:96: Error: junk `:2ff_h264_mlps_state+128' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:109: Error: junk `:2ff_h264_norm_shift' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:1552: Error: junk `:2ff_h264_lps_range' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:1565: Error: junk `:2ff_h264_norm_shift' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:1567: Error: junk `:2ff_h264_mlps_state+128' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:1580: Error: junk `:2ff_h264_norm_shift' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:1593: Error: junk `:2ff_h264_lps_range' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:1606: Error: junk `:2ff_h264_norm_shift' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:1608: Error: junk `:2ff_h264_mlps_state+128' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:1621: Error: junk `:2ff_h264_norm_shift' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:3153: Error: junk `:2ff_h264_lps_range' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:3166: Error: junk `:2ff_h264_norm_shift' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:3168: Error: junk `:2ff_h264_mlps_state+128' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:3181: Error: junk `:2ff_h264_norm_shift' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:3191: Error: junk `:2last_coeff_flag_offset_8x8' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:3196: Error: junk `:2ff_h264_lps_range' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:3209: Error: junk `:2ff_h264_norm_shift' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:3211: Error: junk `:2ff_h264_mlps_state+128' after expression
C:\Users\pulkitw\AppData\Local\Temp\ccq3PDbo.s:3224: Error: junk `:2ff_h264_norm_shift' after expression
make[4]: *** [libavcodec/h264_cabac.o] Error 1

Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 09, 2012, 07:10:32 AM
Did you patch source or use new compiler?  Did you perform a fresh build?  You still have -m32 flags set?
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 09, 2012, 07:48:59 AM
i downloaded niXman's  4.7.1-rev0 build, and started from the scratch.
and yes -m32 flags are still set.
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 09, 2012, 09:14:54 AM
I'm grasping at straws but there is one step I forgot.  For 32-bit builds you now need to include /mingw/x86_64-w64-mingw32/lib32 at the start of your PATH environment variable.
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 09, 2012, 09:36:18 AM
I did the same but it did not help.  :-\
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: gruntster on July 09, 2012, 01:10:04 PM
Everything builds fine for me with largely the same setup.  I find the error message a bit vague so not sure exactly what the problem is.

Yasm definitely runs from the console?  Executing "as -v" reports version 2.22.52?  Perhaps try niXman's i686 build to make 100% sure that everything is built as 32-bit?
Title: Re: Compiling Avidemux v2.5.6 on Windows
Post by: pulkitw on July 11, 2012, 06:31:14 AM
1) yasm runs from the console
2) executing "as -v" reports version 2.22.52
3) using niXman's i686 build gives different errors.
I do not think that many errors should come while compiling it, well I think I should start from the scratch with tried and tested versions of all the packages. Could you please guide me with the same..