Page 1 of 1

Error while building vlc with wx2.8

Posted: 26 Dec 2006 19:41
by dbtsai
When I use wx2.8 to build vlc, I encounter the following error message.

Any idea? Thanks

/usr/include/wx-2.8/wx/image.h:136: warning: dereferencing type-punned pointer will break strict-aliasing rules
dialogs.cpp: In member function 'void DialogsProvider::OnOpenFileGeneric(wxCommandEvent&)':
dialogs.cpp:379: error: 'class wxFileDialog' has no member named 'SetStyle'
make[7]: *** [libwxwidgets_plugin_la-dialogs.lo] Error 1
make[7]: Leaving directory `/home/build/deb/vlc/vlc-0.8.6.release/modules/gui/wxwidgets'
make[6]: *** [all-modules] Error 1
make[6]: Leaving directory `/home/build/deb/vlc/vlc-0.8.6.release/modules/gui/wxwidgets'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/build/deb/vlc/vlc-0.8.6.release/modules/gui'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/build/deb/vlc/vlc-0.8.6.release/modules/gui'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/build/deb/vlc/vlc-0.8.6.release/modules'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/build/deb/vlc/vlc-0.8.6.release'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/build/deb/vlc/vlc-0.8.6.release'
make: *** [build-stamp] Error 2

Posted: 27 Dec 2006 13:32
by Hxp
If you are compiling vlc 0.8.6 or the latest svn checkout then compile it with wxwidgets 2.6.3 (downloadable from http://www.wxwidgets.org/downloads/#previous_stable ). Provide the path to the wxwidget directory by adding --with-wx-config-path=/path/to/your/wxWidgets-2.6.3 to the configure command. When using the latest svn checkout you even get an error message during the configure process when trying to use wxwidgets 2.8.

Hope this helps,
regards, rainer

Posted: 27 Dec 2006 16:59
by dbtsai
Well, I success compile vlc 0.8.6 with wx2.8 by applying the following patch.

Thanks, anyway.

Best Wish

Tsai Dung-Bang


@@ -0,0 +1,11 @@
+--- vlc/modules/gui/wxwidgets/dialogs.cpp~ 2006-12-09 02:12:14.000000000 +0100
++++ vlc/modules/gui/wxwidgets/dialogs.cpp 2006-12-18 00:35:58.752118250 +0100
+@@ -376,7 +376,7 @@
+ {
+ p_file_generic_dialog->SetMessage( wxU(p_arg->psz_title) );
+ p_file_generic_dialog->SetWildcard( wxU(p_arg->psz_extensions) );
+- p_file_generic_dialog->SetStyle( (p_arg->b_save ? wxSAVE : wxOPEN) |
++ p_file_generic_dialog->SetWindowStyle( (p_arg->b_save ? wxSAVE : wxOPEN) |
+ (p_arg->b_multiple ? wxMULTIPLE:0) );
+ }
+

Posted: 05 Jan 2007 18:58
by kemro
Can you tell me, how to apply this patch ?

I tried something like

patch -p1 < THISpatch

in vlc source directory, but have this:
missing header for unified diff at line 1 of patch
can't find file to patch at input line 1
Perhaps you used the wrong -p or --strip option?
File to patch:

Posted: 05 Jan 2007 19:05
by RĂ©mi Denis-Courmont
Looks like the patch is broken.

This one should work:

Code: Select all

--- vlc-0.8.6a.orig/modules/gui/wxwidgets/dialogs.cpp +++ vlc-0.8.6a/modules/gui/wxwidgets/dialogs.cpp @@ -380,7 +380,7 @@ { p_file_generic_dialog->SetMessage( wxU(p_arg->psz_title) ); p_file_generic_dialog->SetWildcard( wxU(p_arg->psz_extensions) ); - p_file_generic_dialog->SetStyle( (p_arg->b_save ? wxSAVE : wxOPEN) | + p_file_generic_dialog->SetWindowStyle( (p_arg->b_save ? wxSAVE : wxOPEN) | (p_arg->b_multiple ? wxMULTIPLE:0) ); }
But it might be simpler to change SetStyle to SetWindowStyle manually in modules/gui/wxwidgets/dialogs.cpp.

Posted: 05 Jan 2007 20:43
by kemro
Finally works, Thank You very much ! :)

Posted: 23 Mar 2007 16:17
by thresh
that being said, i've some look-n-feel glitches with wxgtk28 builds.

some widgets are misplaced and/or missing and i have a segfault on exit.

so, i don't think that's a good idea to build vlc against wxgtk-2.8.

Re: Error while building vlc with wx2.8

Posted: 09 May 2008 09:39
by dimstar
the crash with wx 2.8 could actually be tracked down to an error of wxwidgets itself.

This patch for wx 2.8 solves such crashes:
http://svn.wxwidgets.org/viewvc/wx/wxWi ... view=patch

alternative, wxwidgets can also be compiled without fnome-vfs support, this should also help

Re: Error while building vlc with wx2.8

Posted: 16 Jul 2008 03:22
by dragon-pk
good!!!!!!!!

Re:

Posted: 17 Jul 2008 10:29
by msnty1
If you are compiling vlc 0.8.6 or the latest svn checkout then compile it with wxwidgets 2.6.3 (downloadable from http://www.wxwidgets.org/downloads/#previous_stable ). Provide the path to the wxwidget directory by adding --with-wx-config-path=/path/to/your/wxWidgets-2.6.3 to the configure command. When using the latest svn checkout you even get an error message during the configure process when trying to use wxwidgets 2.8.

Hope this helps,
regards, rainer
I see. I'll see to it. thank.


_______________________

Small dogs