[vlc-devel] a pitfall when cross-compiling win32 build on 64bit machine

Rafaël Carré funman at videolan.org
Wed Dec 14 16:12:00 CET 2011


Le Wed, 14 Dec 2011 16:49:13 +0900,
Naohiro KORIYAMA <nkoriyama at gmail.com> a écrit :

> 2011/12/14 Rafaël Carré <funman at videolan.org>:
> > Le Wed, 14 Dec 2011 15:48:54 +0900,
> > Naohiro KORIYAMA <nkoriyama at gmail.com> a écrit :
> >
> >> I compile win32 build on OS X Lion.
> >>
> >> First, it seemed fine, but lua scripts didn't run at all.
> >> I installed lua in /usr/local/bin, and it was built as 64bit application.
> >> And, I found the following in the LUAC man page:
> >> The binary files created by luac are portable only among architectures
> >> with the same word size and byte order.
> >>
> >> Oops, that's it.
> >> After I made luac 32bit version, and use it by "LUAC=luac32
> >> ..../win32/configure.sh ...", lua scripts worked on win32 build.
> >> I don't know about Linux 64bit environment, on
> >> http://wiki.videolan.org/Win32Compile, there is no description about
> >> it.
> >
> > It's strange, I think the windows builds are made on a linux 64 bits
> > machine but they run fine on win32.
> 
> Header infomation in luac is different  32bit and 64bit, and liblua checks it.
> liblua refuses when loading wrong luac like:

Yeah, now I remember that win32 buildbot is built in a 32bits chroot

> If it's only my particular problem, please ignore it.

I think it is going to bite us sooner or later

-- 
Rafaël Carré



More information about the vlc-devel mailing list