[mythtv-users] Re: Re: anyone attempt mythfrontend on Cygwin?

Joel Anderson bitjunkie at gmail.com
Sat Sep 25 00:29:47 EDT 2004


> Some level of success here -
> I am at the same point as joel now,
> I was having issues with mythmediamonitor and no fstab.h declared for
> linux, and basically it boiled down to certain areas of
> mythmediamonitor.h, mythmediamonitor.cpp, mythdialog.cpp need certain
> things killed by the preprocessor to work correctly.
> 
> I am running into libmythtv stopping at nupplevideoplayer.cpp, but
> only if directX is on,
> 
> g++ -c -pipe -fdata-sections -Wall -W -O3 -march=pentiumpro
> -fomit-frame-pointer `freetype-config --cflags` -D_REENTRANT
> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DPREFIX=\"/usr/local\" -DMMX
> -D_WIN32 -DUSING_DIRECTX -DQT_NO_DEBUG -DQT_THREAD_SUPPORT
> -I/opt/qt/3.2/qt-x11-free-3.2.3/mkspecs/default -I.
> -I/usr/local/include -I../libmyth -I.. -Idvbdev -I../libavcodec
> -I/opt/qt/3.2/qt-x11-free-3.2.3/include -o NuppelVideoPlayer.o
> NuppelVideoPlayer.cpp
> NuppelVideoPlayer.cpp: In member function `void
>   NuppelVideoPlayer::StartPlaying()':
> NuppelVideoPlayer.cpp:1617: error: `DialogBoxA' undeclared (first use this
>   function)
> NuppelVideoPlayer.cpp:1617: error: (Each undeclared identifier is reported only
>   once for each function it appears in.)
> NuppelVideoPlayer.cpp:1617: error: `dialog' undeclared (first use this
>   function)
> NuppelVideoPlayer.cpp:1622:80: macro "DialogBoxA" requires 4
> arguments, but only 2 given
> NuppelVideoPlayer.cpp:1621: error: parse error before `;' token
> NuppelVideoPlayer.cpp:1628:59: macro "DialogBoxA" requires 4
> arguments, but only 2 given
> NuppelVideoPlayer.cpp:1627: error: parse error before `;' token
> make: *** [NuppelVideoPlayer.o] Error 1
> 
> It seems that if direct x is disabled, this all will go away, but the
> odd thing is that direct x doesnt seem to reference anything about a
> dialogboxa or dialogbox for that matter in any header files:
> 
> Mario Limonciello at supermario /tmp/mythCVS/libs/libmythtv
> $ grep -r "dialogbox" /usr/include/directx/*
> 
> Mario Limonciello at supermario ~
> $ grep "dialogbox" /usr/lib/w32api/*

I could be hallucinating at this point, but It looks like the compiler
is confusing the DialogBox in libmyth/dialogbox.* with the DialogBox
stuff I found in win32api/winuser.h.  This would explain why it only
happens when using directx.  I don't understand the code (or the
compiler) enough to know for sure, but it would seem the question is
simply how to get the compiler to ignore the wrong one?

-- 
Joel


More information about the mythtv-users mailing list