Building QtGstreamer AUTOMOC4_EXECUTABLE-NOTFOUND

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Building QtGstreamer AUTOMOC4_EXECUTABLE-NOTFOUND

Matthias Dodt
Hey guys!

I can't really build QtGstreamer on Windows. I followed the wiki
instructions, but i get a bunch of errors. The main problem is that
automoc4 cannot be found - but i got it in my %PATH%!

Another weired thing is that if i just run "automoc4" from the same
command line it just crashes (i don't know if this application is
supposed to run without arguments though-).

The cmake command was:
cmake -G "Visual Studio 9 2008"
-DCMAKE_INSTALL_PREFIX="d:/SDKs/qt-gstreamer/install"
-DBOOST_ROOT="d:/SDKs/boost_1_48_0"
-DCMAKE_INCLUDE_PATH="d:/entwicklung/ossbuild/Shared/MSVC/Include"
-DCMAKE_PREFIX_PATH="d:/entwicklung/ossbuild/Build/Windows/Win32/Release
;d:/entwicklung/ossbuild/Shared/Build/Windows/Win32;d:/entwicklung/tools
/automoc" ..

Automoc is located in d:/entwicklung/tools/automoc/install/bin, which is
within %PATH%-

Cmake --build .

Gives this output:
>>>>>
d:\SDKs\qt-gstreamer-0.10.1\build>cmake --build .

Microsoft (R) Visual C++ Express Edition Version 9.0.30729.1.
Copyright (C) Microsoft Corp 2007. All rights reserved.
1>------ Build started: Project: codegen, Configuration: Debug Win32
------
2>------ Build started: Project: QtGLib_automoc, Configuration: Debug
Win32 ----
--
3>------ Build started: Project: QtGStreamerUi_automoc, Configuration:
Debug Win
32 ------
4>------ Build started: Project: QtGStreamer_automoc, Configuration:
Debug Win32
 ------
1>[BISON][parser] Building parser with bison 2.4.1
3>Der Befehl "AUTOMOC4_EXECUTABLE-NOTFOUND" ist entweder falsch
geschrieben oder

3>konnte nicht gefunden werden.

...

Which means AUTOMOC4_EXECUTABLE-NOTFOUND couldn't be found. If i look at
the created project files they contain

AUTOMOC4_EXECUTABLE-NOTFOUND instead of automoc4 i guess...

Thanks!


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Building QtGstreamer AUTOMOC4_EXECUTABLE-NOTFOUND

George Kiagiadakis
On Thu, Jan 26, 2012 at 7:16 PM, Matthias Dodt <[hidden email]> wrote:

> Hey guys!
>
> I can't really build QtGstreamer on Windows. I followed the wiki
> instructions, but i get a bunch of errors. The main problem is that
> automoc4 cannot be found - but i got it in my %PATH%!
>
> Another weired thing is that if i just run "automoc4" from the same
> command line it just crashes (i don't know if this application is
> supposed to run without arguments though-).
>
> The cmake command was:
> cmake -G "Visual Studio 9 2008"
> -DCMAKE_INSTALL_PREFIX="d:/SDKs/qt-gstreamer/install"
> -DBOOST_ROOT="d:/SDKs/boost_1_48_0"
> -DCMAKE_INCLUDE_PATH="d:/entwicklung/ossbuild/Shared/MSVC/Include"
> -DCMAKE_PREFIX_PATH="d:/entwicklung/ossbuild/Build/Windows/Win32/Release
> ;d:/entwicklung/ossbuild/Shared/Build/Windows/Win32;d:/entwicklung/tools
> /automoc" ..
>
> Automoc is located in d:/entwicklung/tools/automoc/install/bin, which is
> within %PATH%-

Hi,

cmake looks for a certain file called Automoc4Config.cmake, not for
the executable directly.
On my linux system this is in /usr/lib/automoc4/Automoc4Config.cmake,
with automoc4 being in /usr/bin. I guess that all you need to do is to
put "d:/entwicklung/tools/automoc/install/" in your CMAKE_PREFIX_PATH
in the command line above, instead of just
"d:/entwicklung/tools/automoc", and assuming that Automoc4Config.cmake
is in d:/entwicklung/tools/automoc/install/lib/automoc4/, it should
find it.

Regards,
George
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

AW: Building QtGstreamer AUTOMOC4_EXECUTABLE-NOTFOUND

Matthias Dodt
Hi George!

Thanks for your reply! I took me a while to figure out what the problem with automoc was: If I compile it with VS2008 Express automoc always crashes at startup. With 2005 Professional it works fine- no clue why yet-

So now it start's compiling but stops with the following errors caused by qt-gstreamer-0.10.1\src\qglib\type.h and it states that libxml cannot be found (which is weired because I passed the path to cmake). Output:

...
9>d:\Entwicklung\ossbuild\Build\Windows\Win32\Release\include\gstreamer-0.10\gst/gstconfig
.h(131) : fatal error C1083: Cannot open include file: 'libxml/parser.h': No such file or
directory
9>gstqwidgetvideosink_automoc.cpp
9>c1xx : fatal error C1083: Cannot open source file: '.\gstqwidgetvideosink_automoc.cpp':
No such file or directory
9>Generating Code...
9>Build log was saved at "file://d:\SDKs\qt-gstreamer-0.10.1\build\elements\gstqwidgetvide
osink.dir\Debug\BuildLog.htm"
9>gstqwidgetvideosink - 2 error(s), 0 warning(s)
7>d:\sdks\qt-gstreamer-0.10.1\src\qglib\type.h(39) : error C2065: 'QIntegerForSizeof' : un
declared identifier
7>d:\sdks\qt-gstreamer-0.10.1\src\qglib\type.h(39) : error C2275: 'size_t' : illegal use o
f this type as an expression
7>        predefined C++ types (compiler internal)(19) : see declaration of 'size_t'
7>d:\sdks\qt-gstreamer-0.10.1\src\qglib\type.h(40) : error C2955: 'boost::mpl::if_c' : use
 of class template requires template argument list
7>        d:\SDKs\boost_1_48_0\boost/mpl/if.hpp(35) : see declaration of 'boost::mpl::if_c
'
...

The cmake command was:

cmake -G "Visual Studio 8 2005" -DCMAKE_INSTALL_PREFIX="d:/SDKs/qt-gstreamer/install" -DBOOST_ROOT="d:/SDKs/boost_1_48_0"  -DCMAKE_INCLUDE_PATH="D:/Entwicklung/ossbuild/Shared/Build/Linux/x86/include/libxml2;d:/entwicklung/ossbuild/Shared/MSVC/Include" -DCMAKE_PREFIX_PATH="d:/entwicklung/ossbuild/Build/Windows/Win32/Release;d:/entwicklung/ossbuild/Shared/Build/Windows/Win32;d:/entwicklung/tools/automoc/install" ..

-libxml2 is in the path. What are these type.h errors?

Thanks a lot!

Mat

-----Ursprüngliche Nachricht-----
Von: gstreamer-devel-bounces+mdodt=[hidden email] [mailto:gstreamer-devel-bounces+mdodt=[hidden email]] Im Auftrag von George Kiagiadakis
Gesendet: 27 January 2012 10:25
An: Discussion of the development of and with GStreamer
Betreff: Re: Building QtGstreamer AUTOMOC4_EXECUTABLE-NOTFOUND

On Thu, Jan 26, 2012 at 7:16 PM, Matthias Dodt <[hidden email]> wrote:

> Hey guys!
>
> I can't really build QtGstreamer on Windows. I followed the wiki
> instructions, but i get a bunch of errors. The main problem is that
> automoc4 cannot be found - but i got it in my %PATH%!
>
> Another weired thing is that if i just run "automoc4" from the same
> command line it just crashes (i don't know if this application is
> supposed to run without arguments though-).
>
> The cmake command was:
> cmake -G "Visual Studio 9 2008"
> -DCMAKE_INSTALL_PREFIX="d:/SDKs/qt-gstreamer/install"
> -DBOOST_ROOT="d:/SDKs/boost_1_48_0"
> -DCMAKE_INCLUDE_PATH="d:/entwicklung/ossbuild/Shared/MSVC/Include"
> -DCMAKE_PREFIX_PATH="d:/entwicklung/ossbuild/Build/Windows/Win32/Relea
> se
> ;d:/entwicklung/ossbuild/Shared/Build/Windows/Win32;d:/entwicklung/too
> ls
> /automoc" ..
>
> Automoc is located in d:/entwicklung/tools/automoc/install/bin, which
> is within %PATH%-

Hi,

cmake looks for a certain file called Automoc4Config.cmake, not for the executable directly.
On my linux system this is in /usr/lib/automoc4/Automoc4Config.cmake,
with automoc4 being in /usr/bin. I guess that all you need to do is to put "d:/entwicklung/tools/automoc/install/" in your CMAKE_PREFIX_PATH in the command line above, instead of just "d:/entwicklung/tools/automoc", and assuming that Automoc4Config.cmake is in d:/entwicklung/tools/automoc/install/lib/automoc4/, it should find it.

Regards,
George
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

AW: Building QtGstreamer AUTOMOC4_EXECUTABLE-NOTFOUND

Matthias Dodt
In reply to this post by George Kiagiadakis
Hi George!

Sorry I missed another thing. Running cmake as described in my last
email outputs another error. Basically the script states it can't find
the packages but summarizes that everything is there?

-- checking for module 'gstreamer-0.10'
--   package 'gstreamer-0.10' not found
-- checking for module 'gstreamer-base-0.10'
--   package 'gstreamer-base-0.10' not found
-- Performing Test GSTREAMER_VERSION_COMPATIBLE
-- Performing Test GSTREAMER_VERSION_COMPATIBLE - Success
-- checking for module 'gstreamer-plugins-base-0.10'
--   package 'gstreamer-plugins-base-0.10' not found
-- checking for module 'gstreamer-app-0.10'
--   package 'gstreamer-app-0.10' not found
-- checking for module 'gstreamer-interfaces-0.10'
--   package 'gstreamer-interfaces-0.10' not found
-- checking for module 'gstreamer-video-0.10'
--   package 'gstreamer-video-0.10' not found

------------------------------------------------------------------------
-----
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these
packages.
------------------------------------------------------------------------
-----
   * Qt 4 - Required for building everything
   * Boost - Required for building QtGLib
   * Automoc 4 - Required for the build system to generate moc files
properly
   * GStreamer - Required to build QtGStreamer
   * GStreamer base library - Used for building the qwidgetvideosink
element
   * GStreamer app library - Required to build QtGStreamerUtils
   * GStreamer interfaces library - Required to build QtGStreamer
   * GStreamer video library - Used for building the qwidgetvideosink
element
   * GLib - Required to build QtGLib
   * GObject - Required to build QtGLib
   * Flex - Required to build codegen, a helper code generator
   * Bison - Required to build codegen, a helper code generator
   * Doxygen - Used to generate the API documentation

Thanks again!
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

AW: Building QtGstreamer package not found errors

Matthias Dodt
In reply to this post by George Kiagiadakis
Sorry George, the last output was wrong - here is the right one:

D:\SDKs\qt-gstreamer-0.10.1\build>cmake -G "Visual Studio 8 2005"
-DCMAKE_INSTAL
L_PREFIX="d:/SDKs/qt-gstreamer/install"
-DBOOST_ROOT="d:/SDKs/boost_1_48_0"  -DC
MAKE_INCLUDE_PATH="D:\Entwicklung\ossbuild\Shared\Build\Windows\Win32\in
clude\li
bxml2;d:/entwicklung/ossbuild/Shared/MSVC/Include"
-DCMAKE_PREFIX_PATH="d:/entwi
cklung/ossbuild/Build/Windows/Win32/Release;d:/entwicklung/ossbuild/Shar
ed/Build
/Windows/Win32;d:/entwicklung/tools/automoc/install" ..


-- Check for working C compiler using: Visual Studio 8 2005
-- Check for working C compiler using: Visual Studio 8 2005 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 8 2005
-- Check for working CXX compiler using: Visual Studio 8 2005 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found LibXml2:
d:/Entwicklung/ossbuild/Shared/Build/Windows/Win32/lib/xml2.li
b
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - found
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: C:/Qt/4.5.3/bin/qmake.exe (found version "4.5.3")
-- Boost version: 1.48.0
-- checking for module 'gstreamer-0.10'
--   package 'gstreamer-0.10' not found
-- checking for module 'gstreamer-base-0.10'
--   package 'gstreamer-base-0.10' not found
-- Found GSTREAMER_BASE_LIBRARY:
d:/Entwicklung/ossbuild/Build/Windows/Win32/Rel
ease/lib/gstbase-0.10.lib
-- Found GSTREAMER_BASE_INCLUDE_DIR:
d:/Entwicklung/ossbuild/Build/Windows/Win32
/Release/include/gstreamer-0.10
-- Performing Test GSTREAMER_VERSION_COMPATIBLE
-- Performing Test GSTREAMER_VERSION_COMPATIBLE - Success
-- Found GStreamer:
d:/Entwicklung/ossbuild/Build/Windows/Win32/Release/lib/gstr
eamer-0.10.lib (Required is at least version "0.10.31")
-- checking for module 'gstreamer-plugins-base-0.10'
--   package 'gstreamer-plugins-base-0.10' not found
-- checking for module 'gstreamer-app-0.10'
--   package 'gstreamer-app-0.10' not found
-- Found GSTREAMER_APP_LIBRARY:
d:/Entwicklung/ossbuild/Build/Windows/Win32/Rele
ase/lib/gstapp-0.10.lib
-- Found GSTREAMER_APP_INCLUDE_DIR:
d:/Entwicklung/ossbuild/Build/Windows/Win32/
Release/include/gstreamer-0.10
-- checking for module 'gstreamer-interfaces-0.10'
--   package 'gstreamer-interfaces-0.10' not found
-- Found GSTREAMER_INTERFACES_LIBRARY:
d:/Entwicklung/ossbuild/Build/Windows/Win
32/Release/lib/gstinterfaces-0.10.lib
-- Found GSTREAMER_INTERFACES_INCLUDE_DIR:
d:/Entwicklung/ossbuild/Build/Windows
/Win32/Release/include/gstreamer-0.10
-- checking for module 'gstreamer-video-0.10'
--   package 'gstreamer-video-0.10' not found
-- Found GSTREAMER_VIDEO_LIBRARY:
d:/Entwicklung/ossbuild/Build/Windows/Win32/Re
lease/lib/gstvideo-0.10.lib
-- Found GSTREAMER_VIDEO_INCLUDE_DIR:
d:/Entwicklung/ossbuild/Build/Windows/Win3
2/Release/include/gstreamer-0.10
-- Found GStreamerPluginsBase: TRUE (Required is at least version
"0.10.31")
-- Found GLIB2:
d:/Entwicklung/ossbuild/Shared/Build/Windows/Win32/lib/glib-2.0.
lib
-- Found GObject:
d:/Entwicklung/ossbuild/Shared/Build/Windows/Win32/include/gli
b-2.0
-- Found FLEX: D:/Entwicklung/Tools/GnuWin32/bin/flex.exe (found version
"D:/Ent
wicklung/Tools/GnuWin32/bin/flex.exe version 2.5.4")
-- Found BISON: D:/Entwicklung/Tools/GnuWin32/bin/bison.exe (found
version "2.4.
1")
-- Found Doxygen: C:/Program Files/doxygen/bin/doxygen.exe
-- Found DOXYFILE_IN: D:/SDKs/qt-gstreamer-0.10.1/Doxyfile.in

------------------------------------------------------------------------
-----
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these
packages.
------------------------------------------------------------------------
-----
   * Qt 4 - Required for building everything
   * Boost - Required for building QtGLib
   * Automoc 4 - Required for the build system to generate moc files
properly
   * GStreamer - Required to build QtGStreamer
   * GStreamer base library - Used for building the qwidgetvideosink
element
   * GStreamer app library - Required to build QtGStreamerUtils
   * GStreamer interfaces library - Required to build QtGStreamer
   * GStreamer video library - Used for building the qwidgetvideosink
element
   * GLib - Required to build QtGLib
   * GObject - Required to build QtGLib
   * Flex - Required to build codegen, a helper code generator
   * Bison - Required to build codegen, a helper code generator
   * Doxygen - Used to generate the API documentation

------------------------------------------------------------------------
-----
-- Congratulations! All external packages have been found.
------------------------------------------------------------------------
-----

-- Configuring done
-- Generating done
-- Build files have been written to: D:/SDKs/qt-gstreamer-0.10.1/build
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

AW: Building QtGstreamer AUTOMOC4_EXECUTABLE-NOTFOUND - SOLVED!! - Wiki suggestions

Matthias Dodt
In reply to this post by Matthias Dodt
Hi George!

Yeehaww! I managed to compile it;-).

- The libxml include error is an gstreamer/ossbuild error as described
in an older mail:
http://lists.freedesktop.org/archives/gstreamer-devel/2011-December/0343
36.html

Basically it is sufficient to remove this #include from gstconfig.h.

- I used boost 1.48 which is incompatible with Qt <= 4.8.0 due to a MOC
issue:
http://comments.gmane.org/gmane.comp.lib.boost.user/71518
Qt bugreport:
https://bugreports.qt-project.org/browse/QTBUG-22829


Still if i run cmake i get the output the find_package failed like
described in my last mail - but it compiles fine ;-)

I think it would be nice to have just 2 hint's for this specific
versions of ossbuild and boost on the wiki page. I know that it's not
related to your project but it would prevent people from running into
this time consuming compilation issues.

Thanks!

Cheers,

mat
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Building QtGstreamer AUTOMOC4_EXECUTABLE-NOTFOUND

George Kiagiadakis
In reply to this post by Matthias Dodt
On Wed, Feb 1, 2012 at 12:18 PM, Matthias Dodt <[hidden email]> wrote:

> Hi George!
>
> Thanks for your reply! I took me a while to figure out what the problem with automoc was: If I compile it with VS2008 Express automoc always crashes at startup. With 2005 Professional it works fine- no clue why yet-
>
> So now it start's compiling but stops with the following errors caused by qt-gstreamer-0.10.1\src\qglib\type.h and it states that libxml cannot be found (which is weired because I passed the path to cmake). Output:
>
> ...
> 9>d:\Entwicklung\ossbuild\Build\Windows\Win32\Release\include\gstreamer-0.10\gst/gstconfig
> .h(131) : fatal error C1083: Cannot open include file: 'libxml/parser.h': No such file or
> directory

This is a bug in ossbuild. The bundled version of gstconfig.h is
outdated. There have been previous discussions about this in this
mailing list as well. Please grab gstconfig.h from gstreamer git and
merge it appropriately.

> 9>gstqwidgetvideosink_automoc.cpp
> 9>c1xx : fatal error C1083: Cannot open source file: '.\gstqwidgetvideosink_automoc.cpp':
> No such file or directory
> 9>Generating Code...
> 9>Build log was saved at "file://d:\SDKs\qt-gstreamer-0.10.1\build\elements\gstqwidgetvide
> osink.dir\Debug\BuildLog.htm"
> 9>gstqwidgetvideosink - 2 error(s), 0 warning(s)
> 7>d:\sdks\qt-gstreamer-0.10.1\src\qglib\type.h(39) : error C2065: 'QIntegerForSizeof' : un
> declared identifier
> 7>d:\sdks\qt-gstreamer-0.10.1\src\qglib\type.h(39) : error C2275: 'size_t' : illegal use o
> f this type as an expression
> 7>        predefined C++ types (compiler internal)(19) : see declaration of 'size_t'
> 7>d:\sdks\qt-gstreamer-0.10.1\src\qglib\type.h(40) : error C2955: 'boost::mpl::if_c' : use
>  of class template requires template argument list
> 7>        d:\SDKs\boost_1_48_0\boost/mpl/if.hpp(35) : see declaration of 'boost::mpl::if_c
> '

Hmm, this is a little worrying... Which version of Qt are you using?
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Building QtGstreamer AUTOMOC4_EXECUTABLE-NOTFOUND

George Kiagiadakis
In reply to this post by Matthias Dodt
On Wed, Feb 1, 2012 at 12:44 PM, Matthias Dodt <[hidden email]> wrote:

> Hi George!
>
> Sorry I missed another thing. Running cmake as described in my last
> email outputs another error. Basically the script states it can't find
> the packages but summarizes that everything is there?
>
> -- checking for module 'gstreamer-0.10'
> --   package 'gstreamer-0.10' not found
> -- checking for module 'gstreamer-base-0.10'
> --   package 'gstreamer-base-0.10' not found
> -- Performing Test GSTREAMER_VERSION_COMPATIBLE
> -- Performing Test GSTREAMER_VERSION_COMPATIBLE - Success
> -- checking for module 'gstreamer-plugins-base-0.10'
> --   package 'gstreamer-plugins-base-0.10' not found
> -- checking for module 'gstreamer-app-0.10'
> --   package 'gstreamer-app-0.10' not found
> -- checking for module 'gstreamer-interfaces-0.10'
> --   package 'gstreamer-interfaces-0.10' not found
> -- checking for module 'gstreamer-video-0.10'
> --   package 'gstreamer-video-0.10' not found


These "errors" are merely the output of the pkg-config checks that
cmake does at this point. They just state that the relevant libraries
were not found using pkg-config. However, the cmake scripts are clever
enough to fall back to other means of detecting those libraries, which
succeed. So, don't worry about them, they are harmless.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel