hugin-devs team mailing list archive
-
hugin-devs team
-
Mailing list archive
-
Message #02285
[Bug 784695] Re: compiling PTBatcherGUI: invalid conversion from ‘const wxChar*’ to ‘wxChar*’
** Changed in: hugin
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Hugin.
https://bugs.launchpad.net/bugs/784695
Title:
compiling PTBatcherGUI: invalid conversion from ‘const wxChar*’ to
‘wxChar*’
Status in Hugin - Panorama Tools GUI:
Fix Released
Bug description:
There's a minor problem in PTBatcherGUI on my system (Kubuntu 11.4,
using wxWidgets 2.8) when compiling bleeding edge hugin
(5216:b7b7c4cbbfd0), python_scripting branch. Here's what the compiler
says:
[ 80%] Building CXX object src/hugin1/ptbatcher/CMakeFiles/PTBatcherGUI.dir/PTBatcherGUI.cpp.o
/home/kfj/src/hugin/hpi13/hpi13.hg/src/hugin1/ptbatcher/PTBatcherGUI.cpp: In member function ‘virtual wxChar* BatchIPCConnection::OnRequest(const wxString&, const wxString&, int*, wxIPCFormat)’:
/home/kfj/src/hugin/hpi13/hpi13.hg/src/hugin1/ptbatcher/PTBatcherGUI.cpp:395:16: error: invalid conversion from ‘const wxChar*’ to ‘wxChar*’
/home/kfj/src/hugin/hpi13/hpi13.hg/src/hugin1/ptbatcher/PTBatcherGUI.cpp:400:16: error: invalid conversion from ‘const wxChar*’ to ‘wxChar*’
/home/kfj/src/hugin/hpi13/hpi13.hg/src/hugin1/ptbatcher/PTBatcherGUI.cpp:405:16: error: invalid conversion from ‘const wxChar*’ to ‘wxChar*’
/home/kfj/src/hugin/hpi13/hpi13.hg/src/hugin1/ptbatcher/PTBatcherGUI.cpp:446:12: error: invalid conversion from ‘const wxChar*’ to ‘wxChar*’
make[2]: *** [src/hugin1/ptbatcher/CMakeFiles/PTBatcherGUI.dir/PTBatcherGUI.cpp.o] Fehler 1
make[1]: *** [src/hugin1/ptbatcher/CMakeFiles/PTBatcherGUI.dir/all] Fehler 2
make: *** [all] Fehler 2
I'm sure it's just an oversight somewhere, but the virtual wxWidgets
function that's overridden actually returns a wxChar*, and the
overriding function tries to return wxEmptyString, which seems to be
of const wxChar* type. I used a temporary workaround here and cast
wxEmptyString to (wxChar*), but this should be fixed properly.
Kay
To manage notifications about this bug go to:
https://bugs.launchpad.net/hugin/+bug/784695/+subscriptions
References