Page 1 of 1

Error while compiling vlc from git

Posted: 02 May 2014 01:12
by prawdziwy-sok
Hi, I'm trying do compile vlc for windows 8.1 (64bit) on ubuntu 14.04 (64bit), because I'm unable to use the sdk provided with it(trying to run it in Qt5- i know it wont work, but in 4.8 it doesn't either). I'm following this: https://wiki.videolan.org/Win32Compile/ ... _toolchain, with compiling the 3rd party libraries by myself (tried not doing it, but i get the same results).
I used the ../configure --host=x86_64-w64-mingw32 --disable-qt because i want to use qt5, and everything went well, until i run make, then i get this error:

Code: Select all

<command-line>:0:0: note: this is the location of the previous definition ../../modules/access/avio.c: In function ‘UrlInterruptCallback’: ../../modules/access/avio.c:73:5: warning: ‘vlc_object_alive’ is deprecated (declared at ../../include/vlc_objects.h:76) [-Wdeprecated-declarations] return !vlc_object_alive((vlc_object_t*)access); ^ CCLD libavio_plugin.la /usr/bin/x86_64-w64-mingw32-ld: cannot find -ldl /usr/bin/x86_64-w64-mingw32-ld: cannot find -lXfixes /usr/bin/x86_64-w64-mingw32-ld: cannot find -lXext /usr/bin/x86_64-w64-mingw32-ld: cannot find -lX11 /usr/bin/x86_64-w64-mingw32-ld: cannot find -lcdio_paranoia /usr/bin/x86_64-w64-mingw32-ld: cannot find -lcdio_cdda /usr/bin/x86_64-w64-mingw32-ld: cannot find -lcdio /usr/bin/x86_64-w64-mingw32-ld: cannot find -ljack /usr/bin/x86_64-w64-mingw32-ld: cannot find -lasound /usr/bin/x86_64-w64-mingw32-ld: cannot find -ldc1394 /usr/bin/x86_64-w64-mingw32-ld: cannot find -lraw1394 /usr/bin/x86_64-w64-mingw32-ld: cannot find -lxvidcore /usr/bin/x86_64-w64-mingw32-ld: cannot find -lrtmp /usr/bin/x86_64-w64-mingw32-ld: cannot find -lpulse-simple /usr/bin/x86_64-w64-mingw32-ld: cannot find -lpulse /usr/bin/x86_64-w64-mingw32-ld: cannot find -lgnutls /usr/bin/x86_64-w64-mingw32-ld: cannot find -lva /usr/bin/x86_64-w64-mingw32-ld: cannot find -lbz2 collect2: error: ld returned 1 exit status
Can anyone help me? or at least point me in the right direction?

Re: Error while compiling vlc from git

Posted: 02 May 2014 18:15
by Rémi Denis-Courmont
pkg-config is seemingly not set up properly in your build environment.

Re: Error while compiling vlc from git

Posted: 03 May 2014 01:33
by prawdziwy-sok
Could you please elaborate a bit more? I tried playing around with pkg-config, but I have everything in the standard locations, and my system was installed 4 days ago, so i had no time to mess up anything, i hope. If it's any help, this is the build log after running make for the second time, to see better where the error occurs:

Code: Select all

libvlc configuration -------------------- version : 2.2.0-git system : mingw32 architecture : x86_64 mmx sse sse2 optimizations : yes vlc aliases : cvlc rvlc To build vlc and its plugins, type `make', or `./compile' if you like nice colors. maciej@maciej-desktop:~/Desktop/vlc/win32$ make make all-recursive make[1]: Entering directory `/home/maciej/Desktop/vlc/win32' Making all in compat make[2]: Entering directory `/home/maciej/Desktop/vlc/win32/compat' make all-am make[3]: Entering directory `/home/maciej/Desktop/vlc/win32/compat' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/maciej/Desktop/vlc/win32/compat' make[2]: Leaving directory `/home/maciej/Desktop/vlc/win32/compat' Making all in doc make[2]: Entering directory `/home/maciej/Desktop/vlc/win32/doc' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/maciej/Desktop/vlc/win32/doc' Making all in po make[2]: Entering directory `/home/maciej/Desktop/vlc/win32/po' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/maciej/Desktop/vlc/win32/po' Making all in share make[2]: Entering directory `/home/maciej/Desktop/vlc/win32/share' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/maciej/Desktop/vlc/win32/share' Making all in src make[2]: Entering directory `/home/maciej/Desktop/vlc/win32/src' GEN stamp-revision make all-am make[3]: Entering directory `/home/maciej/Desktop/vlc/win32/src' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/maciej/Desktop/vlc/win32/src' make[2]: Leaving directory `/home/maciej/Desktop/vlc/win32/src' Making all in modules make[2]: Entering directory `/home/maciej/Desktop/vlc/win32/modules' GEN module.rc config.status: creating modules/module.rc GEN module.rc.lo libtool: compile: x86_64-w64-mingw32-windres --include-dir ../../share --include-dir ../../extras/package/win32 -i module.rc -o .libs/module.rc.o echo HELLO HELLO make all-recursive make[3]: Entering directory `/home/maciej/Desktop/vlc/win32/modules' Making all in . make[4]: Entering directory `/home/maciej/Desktop/vlc/win32/modules' CCLD libavio_plugin.la /usr/bin/x86_64-w64-mingw32-ld: cannot find -ldl /usr/bin/x86_64-w64-mingw32-ld: cannot find -lXfixes /usr/bin/x86_64-w64-mingw32-ld: cannot find -lXext /usr/bin/x86_64-w64-mingw32-ld: cannot find -lX11 /usr/bin/x86_64-w64-mingw32-ld: cannot find -lcdio_paranoia /usr/bin/x86_64-w64-mingw32-ld: cannot find -lcdio_cdda /usr/bin/x86_64-w64-mingw32-ld: cannot find -lcdio /usr/bin/x86_64-w64-mingw32-ld: cannot find -ljack /usr/bin/x86_64-w64-mingw32-ld: cannot find -lasound /usr/bin/x86_64-w64-mingw32-ld: cannot find -ldc1394 /usr/bin/x86_64-w64-mingw32-ld: cannot find -lraw1394 /usr/bin/x86_64-w64-mingw32-ld: cannot find -lxvidcore /usr/bin/x86_64-w64-mingw32-ld: cannot find -lrtmp /usr/bin/x86_64-w64-mingw32-ld: cannot find -lpulse-simple /usr/bin/x86_64-w64-mingw32-ld: cannot find -lpulse /usr/bin/x86_64-w64-mingw32-ld: cannot find -lgnutls /usr/bin/x86_64-w64-mingw32-ld: cannot find -lva /usr/bin/x86_64-w64-mingw32-ld: cannot find -lbz2 collect2: error: ld returned 1 exit status make[4]: *** [libavio_plugin.la] Error 1 make[4]: Leaving directory `/home/maciej/Desktop/vlc/win32/modules' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/maciej/Desktop/vlc/win32/modules' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/maciej/Desktop/vlc/win32/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/maciej/Desktop/vlc/win32' make: *** [all] Error 2

Re: Error while compiling vlc from git

Posted: 03 May 2014 08:56
by Rémi Denis-Courmont
pkg-config seems to point at the native libraries, not the cross-compilation env.

Re: Error while compiling vlc from git

Posted: 20 May 2014 22:09
by Jean-Baptiste Kempf
Probably a PKG_CONFIG_LIBDIR=contrib/x86_64-w64-mingw32/lib/pkgconfig ../extras/pacakge/win32/configure.sh --host...