Page 1 of 1

Errors compiling libvlc on MinGW/MSYS environment

Posted: 25 Aug 2011 20:23
by mannermoe
Hi, i´m trying to build vlc 1.1.11 for windows.
I have already installed an up to date and working mingw/msys environment.
When trying to build libvlc i get following errors:

Code: Select all

... libvlc.c: In function `libvlc_InternalInit` libvlc.c:335: error: `usr` undeclared (first use this function) libvlc.c:335: error: (Each undeclared ..... libvlc.c:335: error: `win32` undeclared (first use this function) libvlc.c:335: error: `lib` undeclared (first use this function) libvlc.c:335: error: `pkgconfig` undeclared (first use this function) libvlc.c:335: error: syntax error before string constant ...

any idea what causes this errors?
It seems that the compiler finds the pkgconfig path inside libvlc.c.
I tried gcc 4.4.0 (shipped with Qt SDK) and gcc 4.5.2 /gcc 3.4.5 (from TDM MinGW Installer) in a separately installed MinGW environment.
Always the same errors.

Re: Errors compiling libvlc on MinGW/MSYS environment

Posted: 27 Aug 2011 14:55
by VLC_help
Something is expanding incorrectly since AFAIK libvlc.c in VLC 1.1.11 doesn't contain any usr part.