[mythtv] [RFC v2] New Win32 build script
Dan Wilson
dwilson at solidstatesoftware.com
Mon Dec 13 07:41:57 UTC 2010
On 12/11/2010 09:49 AM, Lawrence Rust wrote:
> After a number of comments and suggestions I have revised the Windows
> cross compiling build script. Thanks to everyone who contributed. The
> new script can be viewed here:
> http://www.softsystem.co.uk/download/mythtv/mythbuildw32-1
>
> An archive of the script and its associated (mandatory) patches is here:
> http://www.softsystem.co.uk/download/mythtv/mythbuildw32-1.zip
>
Thanks for your hard work on improving the win32 compilation support!
On Windows XP Pro (actually a windows XP virtual machine running under
vmware workstation), using mythbuildw32-1.zip, I get this:
$ ./mythbuildw32
*********************************************************************
Building MythTV fixes/0.24 for Windows.
*********************************************************************
Press [Return] to continue or [Control-C] to abort:
*********************************************************************
ftp wget-1.11.4.tar.bz2
ftp.exe: connect: Not owner
Not connected.
Not connected.
Not connected.
Passive mode on.
Not connected.
Extracting wget-1.11.4.tar.bz2 ...
tar (child): wget-1.11.4.tar.bz2: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
$ pwd
/home/dwilson/mythbuildw32
dwilson at winxpvm ~/mythbuildw32
$ ls -la
total 40
drwxr-xr-x 4 dwilson Administrators 0 Dec 12 23:02 .
drwxr-xr-x 3 dwilson Administrators 0 Dec 12 23:02 ..
drwxr-xr-x 2 dwilson Administrators 0 Dec 12 23:02 mythbuild
-rwxr-xr-x 1 dwilson Administrators 40405 Dec 11 18:11 mythbuildw32
drwxr-xr-x 11 dwilson Administrators 0 Dec 12 22:42 mythpatches
I then tried cross-compiling in linux (Fedora 14 x86_64), and got the
following:
*********************************************************************
Cross building MythTV fixes/0.24 for Windows using i686-pc-mingw32
*********************************************************************
Press [Return] to continue or [Control-C] to abort:
<stdin>: In function 'int main()':
<stdin>:2:26: error: '_clear87' was not declared in this scope
<stdin>:2:43: error: '_control87' was not declared in this scope
The mingw32 <float.h> header must be patched to compile Qt.
Do you wish to apply this patch (sudo is required) [Yn] y
The text leading up to this was:
--------------------------
|--- /usr/i686-pc-mingw32/include/float.h 2009-06-30
10:32:33.000000000 +0200
|+++ /usr/i686-pc-mingw32/include/float.h 2010-11-03
22:55:07.000000000 +0100
--------------------------
File to patch: ^C
$ find /usr -name float.h
/usr/i686-pc-mingw32/sys-root/mingw/include/float.h
/usr/local/src/wine/wine-1.1.30/include/msvcrt/float.h
/usr/local/eldk-4.1/ppc_85xx/usr/src/linux-2.6.19.2/arch/parisc/math-emu/float.h
/usr/local/eldk-4.1/ppc_85xx/usr/src/linux-2.6.19.2-xenomai/arch/parisc/math-emu/float.h
/usr/local/eldk-4.1/ppc_85xx/usr/lib/gcc/ppc-linux/4.0.0/include/float.h
/usr/local/eldk-4.1/usr/lib/gcc/powerpc-linux/4.0.0/include/float.h
/usr/local/eldk-4.1/usr/lib/gcc/powerpc-linux/4.0.0/install-tools/include/float.h
/usr/local/include/wine/msvcrt/float.h
/usr/include/c++/4.5.1/tr1/float.h
/usr/lib/gcc/x86_64-redhat-linux/4.5.1/include/float.h
/usr/lib64/gcc/i686-pc-mingw32/4.5.0/include/c++/tr1/float.h
/usr/lib64/gcc/i686-pc-mingw32/4.5.0/include/float.h
Ignoring the native, ELDK, and wine versions, the relevant files appear
to be:
/usr/i686-pc-mingw32/sys-root/mingw/include/float.h
/usr/lib64/gcc/i686-pc-mingw32/4.5.0/include/c++/tr1/float.h
/usr/lib64/gcc/i686-pc-mingw32/4.5.0/include/float.h
Thanks,
Dan.
More information about the mythtv-dev
mailing list