[vlc-devel] Fwd: Error in Cross compilation on 64 bit linux to 64 bit windows

fayyaz lodhi fayyazkl at gmail.com
Sat Dec 15 15:44:03 CET 2012


I used the debian package for mingw 3.0 compiler and installed it along
with gcc and g++ compilers

$sudo dpkg -i mingw-w64-i686-dev_3.0~svn5408-1_all.deb
[sudo] password for flodhi:
(Reading database ... 247109 files and directories currently installed.)
Preparing to replace mingw-w64-i686-dev 3.0~svn5408-1 (using
mingw-w64-i686-dev_3.0~svn5408-1_all.deb) ...
Unpacking replacement mingw-w64-i686-dev ...
Setting up mingw-w64-i686-dev (3.0~svn5408-1) ...
$

and followed all steps sequentially from
http://wiki.videolan.org/Win32Compile<http://wiki.videolan.org/Win32Compile#Obtaining_the_toolchain>

I also recompiled qt4 with vlc-2.0.4.

then rm -f ../i686-mingw32/bin/{moc,uic,rcc}

then ./bootstrap again

Then configured with

../extras/package/win32/configure.sh --host=*i686-w64-mingw32*


But then again make failed with following errors


objects.h:81) [-Wdeprecated-declarations]
  CXX    libqt4_plugin_la-main_interface.moc.lo
In file included from ../../../../modules/gui/qt4/qt4.hpp:32:0,
                 from ../../../../modules/gui/qt4/main_interface.hpp:28,
                 from main_interface.moc.cpp:10:
../../../../extras/package/win32/../../../include/vlc_common.h:405:0:
warning: "stat" redefined [enabled by default]
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/sys/stat.h:255:0:
note: this is the location of the previous definition
../../../../extras/package/win32/../../../include/vlc_common.h:406:0:
warning: "fstat" redefined [enabled by default]
/usr/lib/gcc/i686-w64-mingw32/4.6/../../../../i686-w64-mingw32/include/sys/stat.h:256:0:
note: this is the location of the previous definition
*main_interface.moc.cpp:14:2: error: #error "This file was generated using
the moc from 4.7.4. It"*
main_interface.moc.cpp:15:2: error: #error "cannot be used with the include
files from this version of Qt."
main_interface.moc.cpp:16:2: error: #error "(The moc has changed too much.)"
make[6]: *** [libqt4_plugin_la-main_interface.moc.lo] Error 1
make[6]: Leaving directory
`/home/flodhi/Downloads/VLC/vlc-2.0.4-win32/win32/modules/gui/qt4'
make[5]: *** [all] Error 2
make[5]: Leaving directory
`/home/flodhi/Downloads/VLC/vlc-2.0.4-win32/win32/modules/gui/qt4'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/flodhi/Downloads/VLC/vlc-2.0.4-win32/win32/modules/gui'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/flodhi/Downloads/VLC/vlc-2.0.4-win32/win32/modules/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/flodhi/Downloads/VLC/vlc-2.0.4-win32/win32/modules'
make[1]: *** [all-recursive] Error 1


----

What i don't understand is that making qt4 brings qt4.8.2

and seen this diff
http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cd0148a5a1d5e5875f525c04225add1975a9dd78

What i check my contrib/src/qt folder for this diff i already find the
latest values.

Where is this .moc 4.7.4 coming from?


I am literary nuts over this since others seem to have been successful with
this http://forum.videolan.org/viewtopic.php?f=14&t=106846

Fail to find what is wrong. I am using Linux mint 12 (Lisa) 64bit  though i
have tried to same on ubuntu 12.04 and forums show people have been
successful with ubuntu

On Thu, Dec 13, 2012 at 8:51 PM, Rafaël Carré <funman at videolan.org> wrote:

> yes, trunk
>
> Le 13/12/2012 12:00, fayyaz lodhi a écrit :
> > Thank you for the suggestion
> >
> > This suggests
> > http://sourceforge.net/projects/mingw-w64/files/
> >
> > v2.0.7 (r5421) ====> 5421 > 5408 but it is still labelled 2.0.7
> >
> > Also https://mingw-w64.svn.sourceforge.net/svnroot/mingw-w64/tags/
> >
> > only has upto 2.0.7 or some rc<x> candidates but no 3.0. Are you
> referring
> > to it's trunk or experimental versions?
> >
> >
> > On Thu, Dec 13, 2012 at 3:19 PM, Rafaël Carré <funman at videolan.org>
> wrote:
> >
> >> Le 12/12/2012 11:14, fayyaz lodhi a écrit :
> >>> I am cross compiling vlc for windows on linux mint 64 bit machine.
> >>>
> >>> Used the instructions here
> >>> http://wiki.videolan.org/Win32Compile#Obtaining_the_toolchain
> >>>
> >>> and used the following tool chain
> >>> *x86_64-w64-mingw32* for Windows 64-bits, using the Mingw-w64 toolchain
> >>>
> >>> as indicated in instructions.
> >>>
> >>> First, the configure gives error of libgcrypt which i could only bypass
> >> by
> >>> disabling it i..e adding --disable-libgcrypt to configure script.
> >>>
> >>> Next make fails with following log. Can some one help with figuring out
> >>> what's the problem?
> >>>
> >>> WARNING :
> >>>
> >>
> ../../../../extras/package/win32/../../../modules/access/dshow/dshow.cpp:1805:
> >>> 14:  'bool vlc_object_alive(const vlc_object_t*)' is deprecated
> (declared
> >>> at ../../../../extras/package/win32/../../../include/vlc_objects.h:81)
> >>> [-Wdeprecated-declarations]
> >>> Creating library file: .libs/libdshow_plugin.dll.a
> >>>  COMPILE : libcdda_plugin_la-cdda.lo
> >>>  COMPILE : libcdda_plugin_la-cdrom.lo
> >>>
> >>> **** Warning: Linking the shared library libcdda_plugin.la against
> the*
> >>> **** static library
> >>> ../VLC/vlc-2.0.4-windows/contrib/x86_64-w64-mingw32/lib/libregex.a is
> not
> >>> portable!*
> >>> *Creating library file:
> >>>
> >>
> *.libs/libcdda_plugin.dll.a/../VLC/vlc-2.0.4-windows/contrib/x86_64-w64-mingw32/lib/libcddb.a(cddb_conn.o):cddb_conn.c:(.text+0x3e):
> >>> undefined reference to `__ms_vsnprintf'
> >>>
> >>
> ../VLC/vlc-2.0.4-windows/contrib/x86_64-w64-mingw32/lib/libcddb.a(cddb_cmd.o):cddb_cmd.c:(.text+0x32):
> >>> undefined reference to `__ms_vsnprintf'
> >>>
> >>
> ../VLC/vlc-2.0.4-windows/contrib/x86_64-w64-mingw32/lib/libcddb.a(cddb_cmd.o):cddb_cmd.c:(.text+0x7a):
> >>> undefined reference to `__ms_vsnprintf'
> >>>
> >>
> ../VLC/vlc-2.0.4-windows/contrib/x86_64-w64-mingw32/lib/libcddb.a(cddb_log.o):cddb_log.c:(.text+0x32):
> >>> undefined reference to `__ms_vsnprintf'
> >>>
> >>
> ../VLC/vlc-2.0.4-windows/contrib/x86_64-w64-mingw32/lib/libcddb.a(cddb_net.o):cddb_net.c:(.text+0x32):
> >>> undefined reference to `__ms_vsnprintf'
> >>> collect2: ld returned 1 exit status
> >>
> >> Make sure you use at least SVN r5408 revision of mingw-w64 (i.e. 3.x,
> >> NOT 2.x)
> >> _______________________________________________
> >> vlc-devel mailing list
> >> To unsubscribe or modify your subscription options:
> >> http://mailman.videolan.org/listinfo/vlc-devel
> >>
> >
> >
> >
> > _______________________________________________
> > vlc-devel mailing list
> > To unsubscribe or modify your subscription options:
> > http://mailman.videolan.org/listinfo/vlc-devel
> >
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20121215/21b60ae1/attachment.html>


More information about the vlc-devel mailing list