Page 1 of 1

Unable to build VLC

Posted: 23 Apr 2015 13:28
by athandavid
I'm trying to build VLC from git reposity however got the error:

Code: Select all

Making all in gui/qt4 make[4]: Entering directory '/home/david/Downloads/vlc/win32/modules/gui/qt4' MOC main_interface.moc.cpp /bin/bash: /home/david/Downloads/vlc/contrib/i686-w64-mingw32/bin/moc: No such file or directory Makefile:3428: recipe for target 'main_interface.moc.cpp' failed make[4]: *** [main_interface.moc.cpp] Error 127 make[4]: Leaving directory '/home/david/Downloads/vlc/win32/modules/gui/qt4' Makefile:16600: recipe for target 'all-recursive' failed make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory '/home/david/Downloads/vlc/win32/modules' Makefile:7563: recipe for target 'all' failed make[2]: *** [all] Error 2 make[2]: Leaving directory '/home/david/Downloads/vlc/win32/modules' Makefile:2227: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/david/Downloads/vlc/win32' Makefile:2111: recipe for target 'all' failed make: *** [all] Error 2
but moc is in the correct location:

Code: Select all

david@debian:~/Downloads/vlc/win32$ ls /home/david/Downloads/vlc/contrib/i686-w64-mingw32/bin | grep moc moc moc.exe
The workaround suggested in documentation (https://wiki.videolan.org/Win32CompileM ... rcc.2C_uic) is to copy moc.exe into bin. The weird thing is that says about a path for Windows:

Code: Select all

source: C:\msys\1.0\home\<username>\vlc\contrib\i586-mingw32msvc\moc.exe target: C:\msys\1.0\bin\moc.exe
Did copy them into /bin an /usr/bin but didn't work; I guess didn't work since it's searching for it in i686-w64-mingw32 folder.

On forum found this thread : https://forum.videolan.org/viewtopic.ph ... &hilit=moc
Found that MOC is initialized in vlc/configure but I don't know if replacing MOC="moc" with MOC="/home/david/Downloads/vlc/contrib/i686-w64-mingw32/bin/moc" or moc.exe will do any good or if there are any other files where it is required to replace it.

Old pal Google doesn't help either.

Any suggestion is appreciated!

Re: Unable to build VLC

Posted: 24 Apr 2015 20:09
by athandavid
Since the moc problem is weird, I've tried to compile libvlc within Ubuntu 15.04. However problems keep popping up.
The problem I'm facing here is:

Code: Select all

"./ui/open.h:14:29: fatal error: QtWidgets/QAction: No such file or directory". There is a suggestion to select
Similar problem found : https://trac.videolan.org/vlc/ticket/11772
As I know this problem is because QtWidgets aren't located into QtCore anymore.

Compile guide suggests that both qt4 and qt5 to be installed. Are both required?

If I uninstall qt5-default, qt4 gets selected but at packaging I get different problems : vlcc.hpp file was not found or

Code: Select all

In file included from vlccontrol2.cpp:33:0: vlccontrol2.h:405:18: error: 'HRESULT VLCControl2::getVersionInfo(OLECHAR**)' marked override, but does not override STDMETHODIMP getVersionInfo(BSTR *version) override;
By applying the patch still get the error, maybe is not working with vlc 3.0.

Any idea?

Re: Unable to build VLC

Posted: 02 May 2015 20:09
by Jean-Baptiste Kempf
You need to look at the documentation, and remove the moc (not moc.exe)

As for the second issue, update your tree.

Re: Unable to build VLC

Posted: 07 May 2015 20:23
by athandavid
Thank you for response JB.

About moc, that's what I did in the first place. Didn't work out so I tried the way (being naive though).
About the updated tree, I don't know what do I need to do.

I tried my luck with Ubuntu 15.04 on 32bit inside a wm and there were no problems to compile the library for Windows 32bit.

P.S.:My bad, I forgot to mention that I've encountered the problems above on 64 bits OSes(Ubuntu 14.04, 14.10, 15.04 and Debian) by trying to compile the library for Windows 32bit.