Opened 10 years ago

Closed 7 years ago

#2230 closed defect (invalid)

build error: conflicting types for 'BITMAPINFOHEADER'

Reported by: 4Selur@… Owned by: beastd
Priority: normal Component: undetermined
Version: HEAD Severity: blocker
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

Trying to build mplayer with ffmpeg using: https://github.com/jb-alvarado/media-autobuild_suite

I get a bunch of errors like:

H:/media-autobuild_suite/msys64/mingw64/x86_64-w64-mingw32/include/wingdi.h:603:5: error: conflicting types for 'BITMAPINFOHEADER'
   } BITMAPINFOHEADER,*LPBITMAPINFOHEADER,*PBITMAPINFOHEADER;
     ^

see: http://pastebin.com/aPjspHtd

Would be nice if someone with more builing mplayer experience could have a look at this and advice on how to resolve the issue.

Change History (3)

comment:1 by beastd, 10 years ago

Are you still experiencing this build failure?

If yes, does it go away if you move one ad_internal.h include down like this:

  • libmpcodecs/ad_spdif.c

    a b  
    2020
    2121#include "config.h"
    2222#include "mp_msg.h"
    23 #include "ad_internal.h"
    2423#include "av_helpers.h"
    2524#include "libavformat/avformat.h"
    2625#include "libavformat/internal.h"
    2726#include "libavcodec/avcodec.h"
    2827#include "libavutil/opt.h"
     28#include "ad_internal.h"
    2929
    3030static const ad_info_t info = {
    3131    "libavformat/spdifenc audio pass-through decoder.",

comment:2 by 4Selur@…, 10 years ago

Are you still experiencing this build failure?

No, they fixed it on their end somehow.

comment:3 by beastd, 7 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.