Page 1 of 1

I'm consistently getting a wxwidgets compile error in SVN

Posted: 30 Oct 2005 01:56
by johnclubvec
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

Posted: 01 Nov 2005 16:41
by dionoea
you need to have a unicode version of wxWidgets

Posted: 01 Nov 2005 19:26
by johnclubvec
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.

Posted: 28 Nov 2005 16:30
by Hetfield
why not adding not-unicode support?

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

Posted: 29 Nov 2005 14:03
by Guest
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