[vlc-devel] report from the Win32 front

John Freed okvlc at johnfreed.com
Tue Feb 7 13:53:06 CET 2012


 Here is the cross.patch needed for Qt 4.8:

--- qt-everywhere-opensource-src-4.8.0/mkspecs/win32-g++/qmake.conf.orig
 2011-09-28 14:32:02.709958498 -0400
+++ qt-everywhere-opensource-src-4.8.0/mkspecs/win32-g++/qmake.conf
2011-09-28 14:36:32.529954583 -0400
@@ -14,7 +14,7 @@
 QMAKE_EXT_OBJ           = .o
 QMAKE_EXT_RES           = _res.o

-QMAKE_CC = gcc
+QMAKE_CC = $(XCC)
 QMAKE_LEX = flex
 QMAKE_LEXFLAGS =
 QMAKE_YACC = byacc
@@ -27,7 +27,7 @@
 QMAKE_CFLAGS_DEBUG = -g
 QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses

-QMAKE_CXX = g++
+QMAKE_CXX = $(XCXX)
 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
 QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS
 QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON
@@ -50,8 +50,8 @@
 QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $obj $src
 QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<

-QMAKE_LINK = g++
-QMAKE_LINK_C = gcc
+QMAKE_LINK = $(XCXX)
+QMAKE_LINK_C = $(XCC)
 QMAKE_LFLAGS =
 QMAKE_LFLAGS_EXCEPTIONS_ON = -mthreads
 QMAKE_LFLAGS_EXCEPTIONS_OFF =
@@ -100,10 +100,10 @@
 QMAKE_IDC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}idc.exe

 QMAKE_IDL = midl
-QMAKE_LIB = ar -ru
+QMAKE_LIB = $(XAR) -ru
 QMAKE_RC = windres
 QMAKE_ZIP = zip -r -9

-QMAKE_STRIP = strip
+QMAKE_STRIP = $(XSTRIP)
 QMAKE_STRIPFLAGS_LIB += --strip-unneeded
 load(qt_config)
--- qt-everywhere-opensource-src-4.8.0/configure 2011-12-08
06:06:02.000000000 +0100
+++ qt-everywhere-opensource-src-4.8.0/configure 2012-02-06
05:04:31.662024288 +0100
@@ -8255,11 +8255,13 @@
 fi

 # X11/Unix/Mac only configs
+if [ "$XPLATFORM_MINGW" != "yes" ]; then
 [ "$CFG_ICONV" = "no" ]      && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_ICONV"
 [ "$CFG_GLIB" != "yes" ]     && QCONFIG_FLAGS="$QCONFIG_FLAGS QT_NO_GLIB"
 [ "$CFG_QGTKSTYLE" != "yes" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS
QT_NO_STYLE_GTK"
-if [ "$XPLATFORM_SYMBIAN" = "no" ]; then
-    # Do not apply following negative X11/Unix/Mac only flags on Symbian,
so that
+fi
+if [ "$XPLATFORM_SYMBIAN" = "no" -a "$XPLATFORM_MINGW" != "yes" ]; then
+    # Do not apply following negative X11/Unix/Mac only flags on Symbian
or MinGW, so that
     # configuration matches with the one generated by configure executable
tool
     [ "$CFG_CUPS" = "no" ]       && QCONFIG_FLAGS="$QCONFIG_FLAGS
QT_NO_CUPS"
     [ "$CFG_GSTREAMER" != "yes" ] && QCONFIG_FLAGS="$QCONFIG_FLAGS
QT_NO_GSTREAMER"




> > cross.patch -- several fixes that involve the configure file, which was
> > restructured by the Nokia folks
>
> Looks like it the only not straightforward patch so please just send it
> so when we decide to switch to 4.8.x it will be available.
>
> Thanks for your work
>
> >
> > It's all pretty straightforward, fortunately.
> >
> > I will probably post a prebuilt version on my personal website and point
> to
> > it from the (forthcoming) Fedora W32 Build wiki page.
>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 06 Feb 2012 13:29:45 -0500
> From: Rafa?l Carr? <funman at videolan.org>
> To: Mailing list for VLC media player developers
>        <vlc-devel at videolan.org>
> Subject: Re: [vlc-devel] [Packagers][CALL] VLC 2.0.0
> Message-ID: <4F301C19.1030402 at videolan.org>
> Content-Type: text/plain; charset=windows-1252
>
> Le 2012-02-06 13:07, Gilles Sabourin a ?crit :
> > Hello,
> >
> > You won't be able to compile mozilla plugin on openSUSE 11.4 due to some
> GTK3 definitions not backported in GTK2 :
> >
> > vlcplugin_gtk.cpp: In function ?bool video_expose_handler(GtkWidget*,
> GdkEvent*, void*)?:
> > vlcplugin_gtk.cpp:275:49: error: ?gdk_window_get_width? was not declared
> in this scope
> > vlcplugin_gtk.cpp:276:50: error: ?gdk_window_get_height? was not
> declared in this scope
> > make[2]: *** [vlcplugin_gtk.lo] Error 1
>
> http://mail.gnome.org/archives/commits-list/2011-April/msg06068.html has
> gtk2 and gtk3 code for the same thing
>
> >
> > I know already vlc developper's answer : complaint to your distro
> maintainer. This is only to warn openSUSE packagers, since there is not
> really something  to do :
> > openSUSE mainteners won't do anything for this release, otherwise they
> will advise you to switch to openSUSE 12.1, which does not exhibit any
> problem, using GTK3 API.
> >
> > These definitions seem exist only in :
> > gtk-3.0/gdk/gdkwindow.h:int           gdk_window_get_width
> (GdkWindow       *window);
> > in openSUSE 11.4, but they exist in both places (gtk-2.0 and gtk-3.0) in
> openSUSE 12.1
> >
> > Anyway, don't spend to much time on this. I had already problems with
> gtk 3.0 on another project using libvlc and GTK3 : Freetuxtv, whereas API
> detection was OK :
> > I had to switch back to GTK2.0 on openSUSE 11.4, and I got angular
> appearance like motif interfaces on openSUSE 12.1, with same binary, which
> is the lesser disadvantage.
> >
> > I doubt that this is an option here and I think you should force GTK3
> requirements with : gtk3 > 3.0.0 in npapi configure check.
> > openSUSE 12.1 offers GTK 3.2.1 and is OK. You should refine GTK3 best
> version for most distributions.
> >
> > Greetings,
> > Gilles
> >
> > Le lundi 6 f?vrier 2012 13:10:01, Jean-Baptiste Kempf a ?crit :
> >> My dear packagers and port maintainers of VLC,
> >>
> >> VLC 2.0.0 is arriving soon.
> >>
> >> It would be _very_ nice to check your packaging _now_ of VLC 2.0 branch
> >> (not master), so that packaging issues are not reported after the
> >> release, like usually...
> >>
> >> Moreover, if you have patches that you need backport for, in order to
> >> support correctly your OS/port/fork, please speak now, before it is too
> >> late, so that we can see how mergeable it is.
> >>
> >> Thanks a lot,
> >>
> >>
> >
> >
> >
> > _______________________________________________
> > vlc-devel mailing list
> > To unsubscribe or modify your subscription options:
> > http://mailman.videolan.org/listinfo/vlc-devel
>
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 06 Feb 2012 18:33:04 +0000
> From: Cheng Sun <cheng.sun at ymail.com>
> To: Mailing list for VLC media player developers
>        <vlc-devel at videolan.org>
> Subject: Re: [vlc-devel] [Packagers][CALL] VLC 2.0.0
> Message-ID: <4F301CE0.4020004 at ymail.com>
> Content-Type: text/plain; charset="windows-1252"
>
> On 06/02/12 18:07, Gilles Sabourin wrote:
> > vlcplugin_gtk.cpp: In function ?bool video_expose_handler(GtkWidget*,
> GdkEvent*, void*)?:
> > vlcplugin_gtk.cpp:275:49: error: ?gdk_window_get_width? was not declared
> in this scope
> > vlcplugin_gtk.cpp:276:50: error: ?gdk_window_get_height? was not
> declared in this scope
> > make[2]: *** [vlcplugin_gtk.lo] Error 1
>
> Patch attached that addresses that issue.
>
> Cheers,
> -- Cheng
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: 0001-Gtk-only-use-gdk_window_get_-width-height-when-it-is.patch
> Type: text/x-patch
> Size: 1337 bytes
> Desc: not available
> URL: <
> http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120206/8f1df320/attachment-0001.bin
> >
>
> ------------------------------
>
> Message: 6
> Date: Mon, 6 Feb 2012 19:34:25 +0100
> From: Jean-Baptiste Kempf <jb at videolan.org>
> To: Mailing list for VLC media player developers
>        <vlc-devel at videolan.org>
> Subject: Re: [vlc-devel] [Packagers][CALL] VLC 2.0.0
> Message-ID: <20120206183425.GA24160 at videolan.org>
> Content-Type: text/plain; charset=utf-8
>
> On Mon, Feb 06, 2012 at 06:33:04PM +0000, Cheng Sun wrote :
> > On 06/02/12 18:07, Gilles Sabourin wrote:
> > > vlcplugin_gtk.cpp: In function ?bool video_expose_handler(GtkWidget*,
> GdkEvent*, void*)?:
> > > vlcplugin_gtk.cpp:275:49: error: ?gdk_window_get_width? was not
> declared in this scope
> > > vlcplugin_gtk.cpp:276:50: error: ?gdk_window_get_height? was not
> declared in this scope
> > > make[2]: *** [vlcplugin_gtk.lo] Error 1
> >
> > Patch attached that addresses that issue.
>
> Please apply.
>
> Best regards,
>
> --
> Jean-Baptiste Kempf
> http://www.jbkempf.com/ - +33 672 704 734
> Sent from my Electronic Device
>
>
> ------------------------------
>
> Message: 7
> Date: Mon, 06 Feb 2012 13:35:24 -0500
> From: Rafa?l Carr? <funman at videolan.org>
> To: Mailing list for VLC media player developers
>        <vlc-devel at videolan.org>
> Subject: Re: [vlc-devel] [PATCH 1/1] add bin to PATH to let libvlc.dll
>        be found by vlc-cache-gen.exe
> Message-ID: <4F301D6C.2070200 at videolan.org>
> Content-Type: text/plain; charset=UTF-8
>
> Le 2012-02-06 04:20, R?mi Denis-Courmont a ?crit :
> > On Sat, 4 Feb 2012 19:12:27 +0700, Sergey Radionov <rsatom at gmail.com>
> > wrote:
> >> 2011/12/25 Sergey Radionov <rsatom at gmail.com>:
> >>> Fix "This application has failed to start because libvlc.dll
> >>> was not found. Re-installing the application may fix this problem."
> >>> during building of vlc under Windows.
> >>> ---
> >>>  Makefile.am |    1 +
> >>>  1 files changed, 1 insertions(+), 0 deletions(-)
> >>>
> >>> diff --git a/Makefile.am b/Makefile.am
> >>> index 358ac5f..dae8ad1 100644
> >>> --- a/Makefile.am
> >>> +++ b/Makefile.am
> >>> @@ -406,6 +406,7 @@ vlc$(EXEEXT):
> >>>
> >
>  ###############################################################################
> >>>  install-exec-hook:
> >>>        if test "$(build)" = "$(host)"; then \
> >>> +               PATH="$(DESTDIR)$(bindir):$$PATH" \
> >>>                LD_LIBRARY_PATH="$(DESTDIR)$(libdir):$$LD_LIBRARY_PATH"
> > \
> >>>                "$(DESTDIR)$(vlclibdir)/vlc-cache-gen$(EXEEXT)" \
> >>>                         "$(DESTDIR)$(vlclibdir)/plugins" ; \
> >>> --
> >>> 1.7.7.1.msysgit.0
> >>>
> >>
> >> ping?
> >
> > I think I already mentioned it was wrong. Pinging won't change my mind.
>
> I already applied it, according to
>
> <20120104112301.GA12100 at videolan.org> :
> > Both can be argued for, to be honest.
> > However, it is true that most setups (including autotools) install
> > windows libraries in /bin.
>
> And since it wouldn't harm non-Windows runs
>
>
> ------------------------------
>
> _______________________________________________
> vlc-devel mailing list
> vlc-devel at videolan.org
> http://mailman.videolan.org/listinfo/vlc-devel
>
>
> End of vlc-devel Digest, Vol 57, Issue 44
> *****************************************
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120207/2c789f97/attachment.html>


More information about the vlc-devel mailing list