[mythtv] Building QT4 under win32

Arnon Meshoulam (arnonm) arnonm at gmail.com
Wed May 7 22:28:06 UTC 2008


Patching qmake seemed to do the trick

Changing qmake\generators\makefile.cpp (from to)
1229c1229
>         tmp = fileFixify(tmp, FileFixifyAbsolute);
---
<         tmp = fileFixify(tmp, FileFixifyDefault);

resolves the issue and is consistent with QT3 Makefiles (for
mythtv/libs/libavutil)
install_inc: first FORCE
 @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/local//include/mythtv/ffmpeg/ ||
$(MKDIR) $(INSTALL_ROOT)/usr/local//include/mythtv/ffmpeg/
 -$(INSTALL_FILE) adler32.h
$(INSTALL_ROOT)/usr/local//include/mythtv/ffmpeg/

But is that the way we want to go?

arnon


On 5/7/08, Arnon Meshoulam (arnonm) <arnonm at gmail.com> wrote:
>
> Some more investigation into this and it seems to be a problem with qmake
> for mingw:
>
> in makefile.cpp MakefileGenerator::writeInstalls
>
> qmake seems to generate the path of .file (as in inc.files) as a dos path
> and not a unix seperate path, nevermind a unix mingw path:
> Around 1230:
>
> for(QStringList::Iterator wild_it = tmp.begin(); wild_it != tmp.end();
> ++wild_it) {
>                 QString wild = Option::fixPathToLocalOS((*wild_it), false,
> true);
>                 QString dirstr = qmake_getpwd(), filestr = wild;
>                 int slsh = filestr.lastIndexOf(Option::dir_sep);
>
> Any ideas...?
>
>  On 5/7/08, Arnon Meshoulam (arnonm) <arnonm at gmail.com> wrote:
> >
> > I ran into an interesting problem with make install under QT4
> >
> > Initially, move/cp/rename commands were all DOS like, I found out that
> > defining
> > win32:QMAKE_SH=sh in settings.pro solved this. (mkspecs sets it to DOS
> > if QMAKE_SH is empty)
> >
> > However, paths are all win32 like
> > In mythtv/libs/libavutil:
> >    qmake -win32 QMAKE=C:/MSys/1.0/qt-win-opensource-src-4.3.4/bin/qmake
> > -o Makefile libavutil.pro
> >
> > Generates:
> > install_inc: first FORCE
> >         @$(CHK_DIR_EXISTS)
> > $(INSTALL_ROOT)/usr/local/include/mythtv/ffmpeg/ ||
> > $(MKDIR)  $(INSTALL_ROOT)/usr/local/include/mythtv/ffmpeg/
> >         -$(INSTALL_FILE) c:\mythtv\mythtv\libs\libavutil\adler32.h
> > $(INSTALL_ROOT)/usr/local/include/mythtv/ffmpeg/
> > and sh.exe doesn't recognize c:\mythtv....
> >
> > Has anyone figured out what sets the DIR_SEPERATOR?
> > I tried setting DIR_SEPERATOR or QMAKE_DIR_SERATOR and QMAKE_DIR_SEP
> > with no success
> > Is it MAKEFILE_GENERATOR settings or QMAKE_COMPILER_DEFINES settings?
> >
> > Has anyone else come across this?
> >
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20080507/0947e51e/attachment.htm 


More information about the mythtv-dev mailing list