I'm consistently getting a wxwidgets compile error in SVN

*nix specific usage questions
johnclubvec
Blank Cone
Blank Cone
Posts: 29
Joined: 05 Mar 2004 15:09

I'm consistently getting a wxwidgets compile error in SVN

Postby johnclubvec » 30 Oct 2005 01:56

wxGTK-2.6.2

This is the error message I've been getting in SVN:

if g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -DSYS_LINUX -I../../../include `top_builddir="../../.." ../../../vlc-config --cxxflags plugin wxwidgets` -Wsign-compare -Wsign-compare -Wall -pipe -MT libwxwidgets_plugin_a-open.o -MD -MP -MF ".deps/libwxwidgets_plugin_a-open.Tpo" \
-c -o libwxwidgets_plugin_a-open.o `test -f 'open.cpp' || echo './'`open.cpp; \
then mv -f ".deps/libwxwidgets_plugin_a-open.Tpo" ".deps/libwxwidgets_plugin_a-open.Po"; \
else rm -f ".deps/libwxwidgets_plugin_a-open.Tpo"; exit 1; \
fi
open.cpp: In function `char* ProbeDVD(const wxChar*)':
open.cpp:1337: error: request for member `data' in `tmp_buf', which is of
non-aggregate type `const wxChar*'
open.cpp: In function `char* ProbeCDDA(const wxChar*)':
open.cpp:1407: error: request for member `data' in `tmp_buf', which is of
non-aggregate type `const wxChar*'
open.cpp: In function `char* ProbeVCD(const wxChar*)':
open.cpp:1420: error: request for member `data' in `tmp_buf', which is of
non-aggregate type `const wxChar*'
make[6]: *** [libwxwidgets_plugin_a-open.o] Error 1

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 01 Nov 2005 16:41

you need to have a unicode version of wxWidgets
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

johnclubvec
Blank Cone
Blank Cone
Posts: 29
Joined: 05 Mar 2004 15:09

Postby johnclubvec » 01 Nov 2005 19:26

Thanks for the reply. In that case, you might consider changing the ./configure warning regarding that situation. At present, configure detects the absence of unicode support in wxwidgets, but does not state that compilation will be impossible without it.

Hetfield

Postby Hetfield » 28 Nov 2005 16:30

why not adding not-unicode support?

it isn't too difficult..just wxChar play :)

Guest

Postby Guest » 29 Nov 2005 14:03

replace
char *psz_device = const_cast<char *>(tmp_buf.data());

with

char *psz_device = (char*) tmp_buf;

there are 3 occurrences.

works on ansi system, please test on unicoded too, so it can be applied upstream.

Thanks


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

Who is online

Users browsing this forum: No registered users and 59 guests