[mythtv] compiling mythtv frontend for cygwin

schneg at rpi.edu schneg at rpi.edu
Thu Aug 5 02:55:17 EDT 2004

No luck. I edited settings.pro to define _WIN32 and remove Xinerama. This
is all done on the most recent CVS version of mythtv. The same error
message appears at the end:
*** No rule to make target `../libmyth/libmyth-0.15.so', needed by
`cygmythtv-0.15-0.so'. Stop.

Here are my notes:
libs/libmyth/util.cpp: error about xinerama, commenting xinerama sections
libs/libmyth/mythmediamonitor.h: error about missing file, removed #include
adding USING_DIRECTX to global defines because it seems like a good idea
found out i had to install directx for cygwin... found instructions here:

added /usr/include/directx to INCLUDE variable
decided to skip DirectX for now due to compile errors... moving on
libs/libmyth/mythmediamonitor.h: another error, this time i'm commenting
out the file
libs/libmyth/mythdialogs.cpp: Commented out all mythmediamonitor stuff,
which amounts to the "else if (ce->type() == kMediaEventType)" case in the
libs/libmyth/mythmediamonitor.cpp: commented this file out too
I edited settings.pro to not include xinerama stuff
libs/libmythtv/vsync.cpp: commenting out drmWaitVBlank function and related
DRMVideoSync class functions; also the 4 lines in VideoSync::BestMethod
which use DRMVideoSync to probe
libs/libmythtv/vsync.h: commenting out DRMVideoSync class
libs/libmythtv/videoout_xv.cpp: commenting out whole thing
libs/libmythtv/mpegrecorder.cpp: same
libs/libmythtv/videodev_myth.h: __u32 errors and etc v4l2 stuff...
commenting out
libs/libmythtv/ivtvdecoder.cpp: v4l2 stuff, commenting out
libs/libmythtv/videoout_ivtv.cpp: same

Nigel Pearson wrote:

>> At the bottom of this message is a list of notes I took during my
>> to compile it on cygwin. Mostly, I commented out things I could not
>> resolve, mostly backend related. At the end I got this message:
>> make: *** No rule to make target `../libmyth/libmyth-0.15.so', needed by

>> `cygmythtv-0.15-0.dll'. Stop.
>     Hi George.
>     This looks similar to the error I had building a MacOS X frontend.
> There is a fix for this in the latest CVS version of those .pro files,
> or if you want to patch manually, try this:
> % cvs diff -r1.62 -r1.64 libmythtv.pro
> Index: libmythtv.pro
> ===================================================================
> RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/libmythtv.pro,v
> retrieving revision 1.62
> retrieving revision 1.64
> diff -r1.62 -r1.64
> 17,19c17,22
> < TARGETDEPS += ../libmyth/libmyth-$${LIBVERSION}.so
> < TARGETDEPS += ../libavcodec/libmythavcodec-$${LIBVERSION}.so
> < TARGETDEPS += ../libavformat/libmythavformat-$${LIBVERSION}.so
> ---
> > }
> P.S. It is much better if you edit the .pro files
>      instead of hacking all the Makefiles.
>> I'm hoping it's just a compiler hiccup that I can clear, but I haven't
>> messed with Makefiles much yet. Is there a way around the above error
>> message?
>> Here's my notes:
>> compile notes:
>> in volumecontrol.cpp I manually #defined _WIN32
>     Hmmm. The 0.15 version of volumecontrol.cpp should work.
> Did you edit the top level settings file (setttings.pro) to
> define _WIN32 and to undefine all the Linux & X-windows
> specific stuff?
> -- 
> Nigel Pearson, nigel at ind.tansu.com.au | "Now the world has gone to bed,
> Telstra BI&D, Sydney, Australia	|  Darkness won't engulf my head,
> Office: 8255 4222    Fax:  8255 3153	|  I can see by infrared,
> Mobile: 0408 664435  Home: 9792 6998	|  How I hate the night." -Marvin
>mythtv-dev mailing list
>mythtv-dev at mythtv.org

More information about the mythtv-dev mailing list