AW: Building QtGstreamer AUTOMOC4_EXECUTABLE-NOTFOUND

Matthias Dodt MDodt at xion-medical.com
Wed Feb 1 02:18:25 PST 2012


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=xion-medical.com at lists.freedesktop.org [mailto:gstreamer-devel-bounces+mdodt=xion-medical.com at lists.freedesktop.org] 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 <MDodt at xion-medical.com> 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
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list