Error while building vlc with wx2.8

*nix specific usage questions
dbtsai
New Cone
New Cone
Posts: 2
Joined: 26 Dec 2006 19:35

Error while building vlc with wx2.8

Postby dbtsai » 26 Dec 2006 19:41

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

Hxp
New Cone
New Cone
Posts: 9
Joined: 19 Dec 2006 15:48

Postby Hxp » 27 Dec 2006 13:32

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

dbtsai
New Cone
New Cone
Posts: 2
Joined: 26 Dec 2006 19:35

Postby dbtsai » 27 Dec 2006 16:59

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) );
+ }
+

kemro
Blank Cone
Blank Cone
Posts: 10
Joined: 30 Dec 2006 17:35

Postby kemro » 05 Jan 2007 18:58

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:

Rémi Denis-Courmont
Developer
Developer
Posts: 15133
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Postby Rémi Denis-Courmont » 05 Jan 2007 19:05

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.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kemro
Blank Cone
Blank Cone
Posts: 10
Joined: 30 Dec 2006 17:35

Postby kemro » 05 Jan 2007 20:43

Finally works, Thank You very much ! :)

thresh
Site Administrator
Site Administrator
Posts: 92
Joined: 22 Mar 2006 11:28
VLC version: git master
Operating System: Linux
Location: Korolev, Russian Federation

Postby thresh » 23 Mar 2007 16:17

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.
Konstantin Pavlov

dimstar
Cone that earned his stripes
Cone that earned his stripes
Posts: 177
Joined: 15 Dec 2006 14:05
Location: Bucuresti, Romania
Contact:

Re: Error while building vlc with wx2.8

Postby dimstar » 09 May 2008 09:39

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

dragon-pk
Blank Cone
Blank Cone
Posts: 67
Joined: 27 Mar 2008 05:23

Re: Error while building vlc with wx2.8

Postby dragon-pk » 16 Jul 2008 03:22

good!!!!!!!!

msnty1
New Cone
New Cone
Posts: 1
Joined: 17 Jul 2008 10:14

Re:

Postby msnty1 » 17 Jul 2008 10:29

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


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 13 guests