[mythtv] Re: compiling mythtv frontend for cygwin

Mario L superm1 at gmail.com
Tue Sep 28 14:22:15 EDT 2004


Okay folks here are the last set of fixes to get a verison that will
compile all the way and even launch in windows:

//mythCVS/filters/postprocess/postprocess.pro


LIBS += -L../../libs/libavcodec
LIBS += -lmythavcodec-$${LIBVERSION}

isEmpty(QMAKE_EXTENSION_SHLIB) {
  QMAKE_EXTENSION_SHLIB=so
}
TARGETDEPS += ../../libs/libavcodec/libmythavcodec-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}

/* TO */


!win32{
LIBS += -L../../libs/libavcodec
LIBS += -lmythavcodec-$${LIBVERSION}

isEmpty(QMAKE_EXTENSION_SHLIB) {
  QMAKE_EXTENSION_SHLIB=so
}
TARGETDEPS += ../../libs/libavcodec/libmythavcodec-$${LIBVERSION}.$${QMAKE_EXTENSION_SHLIB}
}

win32{
LIBS += -L../../libs/libavcodec
LIBS += -lcygmythavcodec-$${LIBVERSION}-0
QMAKE_EXTENSION_SHLIB=dll
TARGETDEPS += ../../libs/libavcodec/cygmythavcodec-$${LIBVERSION}-0.$${QMAKE_EXTENSION_SHLIB}
}


//mythCVS/programs/mythepg/mythepg.pro

LIBS += -lmythtv-$$LIBVERSION -lmythavformat-$$LIBVERSION
LIBS += -lmythavcodec-$$LIBVERSION -lmyth-$$LIBVERSION $$EXTRA_LIBS

/* TO */

!win32{
LIBS += -lmythtv-$$LIBVERSION -lmythavformat-$$LIBVERSION
LIBS += -lmythavcodec-$$LIBVERSION -lmyth-$$LIBVERSION $$EXTRA_LIBS
}

win32{
LIBS += -lcygmythtv-$${LIBVERSION}-0 -lcygmythavformat-$${LIBVERSION}-0
LIBS += -lcygmythavcodec-$${LIBVERSION}-0 -lcygmyth-$${LIBVERSION}-0
$$EXTRA_LIBS
}

//mythCVS/programs/mythprogfind/mythprogfind.pro

LIBS += -lmythtv-$$LIBVERSION -lmythavformat-$$LIBVERSION
LIBS += -lmythavcodec-$$LIBVERSION -lmyth-$$LIBVERSION $$EXTRA_LIBS

/* TO */

!win32{
LIBS += -lmythtv-$$LIBVERSION -lmythavformat-$$LIBVERSION
LIBS += -lmythavcodec-$$LIBVERSION -lmyth-$$LIBVERSION $$EXTRA_LIBS
}

win32{
LIBS += -lcygmythtv-$${LIBVERSION}-0 -lcygmythavformat-$${LIBVERSION}-0
LIBS += -lcygmythavcodec-$${LIBVERSION}-0 -lcygmyth-$${LIBVERSION}-0
$$EXTRA_LIBS
}


//mythCVS/programs/mythtv/mythtv.pro

LIBS += -lmythtv-$$LIBVERSION -lmythavformat-$$LIBVERSION
LIBS += -lmythavcodec-$$LIBVERSION -lmyth-$$LIBVERSION $$EXTRA_LIBS

/* TO * /

!win32{
LIBS += -lmythtv-$$LIBVERSION -lmythavformat-$$LIBVERSION
LIBS += -lmythavcodec-$$LIBVERSION -lmyth-$$LIBVERSION $$EXTRA_LIBS
}

win32{
LIBS += -lcygmythtv-$${LIBVERSION}-0 -lcygmythavformat-$${LIBVERSION}-0
LIBS += -lcygmythavcodec-$${LIBVERSION}-0 -lcygmyth-$${LIBVERSION}-0
$$EXTRA_LIBS
}

//mythCVS/programs/mythfrontend/mythfrontend.pro

LIBS += -lmythtv-$$LIBVERSION -lmythavformat-$$LIBVERSION
LIBS += -lmythavcodec-$$LIBVERSION -lmyth-$$LIBVERSION $$EXTRA_LIBS

/* TO * /

!win32{
LIBS += -lmythtv-$$LIBVERSION -lmythavformat-$$LIBVERSION
LIBS += -lmythavcodec-$$LIBVERSION -lmyth-$$LIBVERSION $$EXTRA_LIBS
}

win32{
LIBS += -lcygmythtv-$${LIBVERSION}-0 -lcygmythavformat-$${LIBVERSION}-0
LIBS += -lcygmythavcodec-$${LIBVERSION}-0 -lcygmyth-$${LIBVERSION}-0
$$EXTRA_LIBS
}

//mythCVS/programs/mythcommflag/mythcommflag.pro

LIBS += -lmythtv-$$LIBVERSION -lmythavformat-$$LIBVERSION
LIBS += -lmythavcodec-$$LIBVERSION -lmyth-$$LIBVERSION $$EXTRA_LIBS

/* TO * /

!win32{
LIBS += -lmythtv-$$LIBVERSION -lmythavformat-$$LIBVERSION
LIBS += -lmythavcodec-$$LIBVERSION -lmyth-$$LIBVERSION $$EXTRA_LIBS
}

win32{
LIBS += -lcygmythtv-$${LIBVERSION}-0 -lcygmythavformat-$${LIBVERSION}-0
LIBS += -lcygmythavcodec-$${LIBVERSION}-0 -lcygmyth-$${LIBVERSION}-0
$$EXTRA_LIBS
}

//mythCVS/programs/mythlcd/mythlcd.pro

LIBS += -lmythtv-$$LIBVERSION -lmythavformat-$$LIBVERSION
LIBS += -lmythavcodec-$$LIBVERSION -lmyth-$$LIBVERSION $$EXTRA_LIBS

/* TO * /

!win32{
LIBS += -lmythtv-$$LIBVERSION -lmythavformat-$$LIBVERSION
LIBS += -lmythavcodec-$$LIBVERSION -lmyth-$$LIBVERSION $$EXTRA_LIBS
}

win32{
LIBS += -lcygmythtv-$${LIBVERSION}-0 -lcygmythavformat-$${LIBVERSION}-0
LIBS += -lcygmythavcodec-$${LIBVERSION}-0 -lcygmyth-$${LIBVERSION}-0
$$EXTRA_LIBS
}

//mythCVS/setup/setup.pro

LIBS += -lmythtv-$$LIBVERSION -lmythavformat-$$LIBVERSION
LIBS += -lmythavcodec-$$LIBVERSION -lmyth-$$LIBVERSION $$EXTRA_LIBS

/* TO * /

!win32{
LIBS += -lmythtv-$$LIBVERSION -lmythavformat-$$LIBVERSION
LIBS += -lmythavcodec-$$LIBVERSION -lmyth-$$LIBVERSION $$EXTRA_LIBS
}

win32{
LIBS += -lcygmythtv-$${LIBVERSION}-0 -lcygmythavformat-$${LIBVERSION}-0
LIBS += -lcygmythavcodec-$${LIBVERSION}-0 -lcygmyth-$${LIBVERSION}-0
$$EXTRA_LIBS
}

As for Running it, I noticed some errors with the makefile when trying to do a
"make install", referencing ldconfid and some copy errors and various
things.  Regardless, all I did was copied over these mythfrontend.exe
and these dlls ( I was too excited to dwelve too far into whats up
with make install):

to their own folder.

I edited /usr/local/share/mythtv/mysql.txt to reference my backend
(which even worked using a samba hostname :)) and then launched from a
copy of bash running on X.  It is clear that there is still a bunch
that requires X to work.  I was quite astonished however, directsound
initializes, and the frontend starts to show up but directdraw has
some issues with live tv and recorded programs.  Now for the real fun
work....

I will try to update all my CVS to current and then create a patch
that I will attach to another email shortly.


Copy all of the required DLLs and mythfrontend.exe to a folder
edit /usr/local/share/mythtv/mysql.txt to include your backend


More information about the mythtv-dev mailing list