Unable to build VLC

This forum is about all development around libVLC.
athandavid
New Cone
New Cone
Posts: 8
Joined: 20 Jul 2014 13:30

Unable to build VLC

Postby athandavid » 23 Apr 2015 13:28

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!

athandavid
New Cone
New Cone
Posts: 8
Joined: 20 Jul 2014 13:30

Re: Unable to build VLC

Postby athandavid » 24 Apr 2015 20:09

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Unable to build VLC

Postby Jean-Baptiste Kempf » 02 May 2015 20:09

You need to look at the documentation, and remove the moc (not moc.exe)

As for the second issue, update your tree.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

athandavid
New Cone
New Cone
Posts: 8
Joined: 20 Jul 2014 13:30

Re: Unable to build VLC

Postby athandavid » 07 May 2015 20:23

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 13 guests