[mythtv] win32 build script failing

Jonathan Martens jonathan at snetram.nl
Sun Jul 20 20:50:37 UTC 2008

Jonathan Martens wrote:
> After building mythtv succesful on Windows I unfortunately had to setup 
> a new environment (I deleted parts of it accidentaly) and after doing so 
> my build is failing with the following output:
> Creating library file: liblibmythdb-0.22.a
> make[2]: Leaving directory `/u/mythtv/mythtv/libs/libmythdb'
> cd libmythupnp/ && make -f Makefile
> make[2]: Entering directory `/u/mythtv/mythtv/libs/libmythupnp'
> Makefile:193: warning: overriding commands for target `version.cpp'
> Makefile:190: warning: ignoring old commands for target `version.cpp'
> sh "/version.sh" "" ": http://svn.mythtv.org/svn/trunk/mythtv/version.pro "
> sh: /version.sh: No such file or directory
> make[2]: *** [version.cpp] Error 127
> make[2]: Leaving directory `/u/mythtv/mythtv/libs/libmythupnp'
> make[1]: *** [sub-libmythupnp-make_default-ordered] Error 2
> make[1]: Leaving directory `/u/mythtv/mythtv/libs'
> make: *** [sub-libs-make_default-ordered] Error 2
> EFFECT FAILED (newer -> shell): mtime of file 
> (U:/mythtv/mythtv/libs/libmyth/lib
> myth-0.22.dll) should be greater than file 
> (U:/mythtv/mythtv/last_build.txt).
> [0]  [1216547444]
> U:\>dir U:\mythtv\mythtv\last_build.txt
>   Volume in drive U is My Passport
>   Volume Serial Number is 54A5-509E
>   Directory of U:\mythtv\mythtv
> 20-07-2008  11:50                 0 last_build.txt
>                 1 File(s)              0 bytes
>                 0 Dir(s)  293,649,842,176 bytes free
> Which is in accordance with the timestamp returned at the end of the 
> error, as that converts to 20 July 2008 11:50:44.
> Any one have a clue or a pointer?

After doing some digging it seems that somehow the pwd command is not 
known when invocated from version.pro

cd libmythdb/ && u:/MSys/1.0/qt-win-opensource-src-4.4.0/bin/qmake.exe 
.pro -win32 QMAKE=U:/MSys/1.0/qt-win-opensource-src-4.4.0/bin/qmake -o 
cd libmythupnp/ && u:/MSys/1.0/qt-win-opensource-src-4.4.0/bin/qmake.exe 
upnp.pro -win32 QMAKE=U:/MSys/1.0/qt-win-opensource-src-4.4.0/bin/qmake 
-o Makef
'pwd' is not recognized as an internal or external command,
operable program or batch file.
cd libmythui/ && u:/MSys/1.0/qt-win-opensource-src-4.4.0/bin/qmake.exe 
.pro -win32 QMAKE=U:/MSys/1.0/qt-win-opensource-src-4.4.0/bin/qmake -o 
cd libmyth/ && u:/MSys/1.0/qt-win-opensource-src-4.4.0/bin/qmake.exe 
  -win32 QMAKE=U:/MSys/1.0/qt-win-opensource-src-4.4.0/bin/qmake -o Makefile
cd libmythfreemheg/ && 
u:/MSys/1.0/qt-win-opensource-src-4.4.0/bin/qmake.exe lib
mythfreemheg.pro -win32 
-o Makefile
WARNING: Failure to find: version.cpp

and hence not supplying the proper values to access the version.sh file 
that is there to create the version.cpp file.

After some manual editing in version.pro (adding the path that should 
have been determined using the pwd command) I was able to get a little 
further, but still errors as the output of the binary version number is 
not set in version.cpp causing the make process to halt on an unexpected 
semicolon (sorry did not copy the exact error message).

After setting the *myth_binary_version manually to "?", it seems I was 
able to build (again), now waiting for it to finish.

Anyone has an idea on how to get version.pro properly execute the pwd 
command when executing the make process so I can continue without 
hacking like this?

Kind regards,


More information about the mythtv-dev mailing list