[CMake] wxCMake

David Somers dsomers at omz13.com
Sat Mar 5 05:43:03 EST 2005


Greetings,

I've just tried to build (on GNU/Linux/Gentoo) the latest version of CMake (as 
grabbed from CVS)... the command line version is fine... but I having 
problems compiling the wx version.

FYI, wxWindows 2.4.2 is installed in my system.

Building CXX object wxCMakeSetup.dir/cmWXCacheProperty.o...
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx: In member function `int
   cmCacheProperty::Display(wxSizer*, wxPanel*)':
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx:64: error: conversion 
from
   `const char*' to `const wxString' is ambiguous
/usr/include/wx/string.h:306: error: candidates are:
   wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx/string.h:284: error:                 wxString::wxString(int)
   <near match>
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx:115: error: conversion
   from `const char[1]' to `const wxString' is ambiguous
/usr/include/wx/string.h:306: error: candidates are:
   wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx/string.h:284: error:                 wxString::wxString(int)
   <near match>
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx:125: error: conversion
   from `const char*' to `const wxString' is ambiguous
/usr/include/wx/string.h:306: error: candidates are:
   wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx/string.h:284: error:                 wxString::wxString(int)
   <near match>
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx:133: error: conversion
   from `const char*' to `const wxString' is ambiguous
/usr/include/wx/string.h:306: error: candidates are:
   wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx/string.h:284: error:                 wxString::wxString(int)
   <near match>
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx:139: error: conversion
   from `const char[4]' to `const wxString' is ambiguous
/usr/include/wx/string.h:306: error: candidates are:
   wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx/string.h:284: error:                 wxString::wxString(int)
   <near match>
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx:150: error: conversion
   from `const char*' to `const wxString' is ambiguous
/usr/include/wx/string.h:306: error: candidates are:
   wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx/string.h:284: error:                 wxString::wxString(int)
   <near match>
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx:156: error: conversion
   from `const char[4]' to `const wxString' is ambiguous
/usr/include/wx/string.h:306: error: candidates are:
   wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx/string.h:284: error:                 wxString::wxString(int)
   <near match>
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx:166: error: conversion
   from `const char*' to `const wxString' is ambiguous
/usr/include/wx/string.h:306: error: candidates are:
   wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx/string.h:284: error:                 wxString::wxString(int)
   <near match>
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx: In member function `void
   cmCacheProperty::OnFileBrowseButton(wxEvent&)':
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx:290: error: conversion
   from `const char*' to `const wxString' is ambiguous
/usr/include/wx/string.h:306: error: candidates are:
   wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx/string.h:284: error:                 wxString::wxString(int)
   <near match>
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx:290: error: conversion
   from `const char*' to `const wxString' is ambiguous
/usr/include/wx/string.h:306: error: candidates are:
   wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx/string.h:284: error:                 wxString::wxString(int)
   <near match>
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx:297: error: invalid
   conversion from `const wxChar*' to `char'
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx:297: error:   
initializing
   argument 1 of `std::basic_string<_CharT, _Traits, _Alloc>&
   std::basic_string<_CharT, _Traits, _Alloc>::operator+=(_CharT) [with _CharT
   = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>]'
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx:298: error: conversion
   from `const char*' to `const wxString' is ambiguous
/usr/include/wx/string.h:306: error: candidates are:
   wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx/string.h:284: error:                 wxString::wxString(int)
   <near match>
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx: In member function `void
   cmCacheProperty::OnPathBrowseButton(wxEvent&)':
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx:312: error: conversion
   from `const char*' to `const wxString' is ambiguous
/usr/include/wx/string.h:306: error: candidates are:
   wxString::wxString(wchar_t, unsigned int) <near match>
/usr/include/wx/string.h:284: error:                 wxString::wxString(int)
   <near match>
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx:320: error: no matching
   function for call to `cmCacheProperty::SetValue(const wxChar*)'
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.h:46: error: candidates are:
   void cmCacheProperty::SetValue(const std::string&)
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx: In member function `void
   cmCacheProperty::OnEntryChanged(wxEvent&)':
/usr/src/CMake/Source/WXDialog/cmWXCacheProperty.cxx:349: error: invalid
   static_cast from type `wxString' to type `const char*'
make[5]: *** [wxCMakeSetup.dir/cmWXCacheProperty.o] Error 1
make[4]: *** [all] Error 2
make[3]: *** [all_WXDialog] Error 2
make[2]: *** [all] Error 2
make[1]: *** [all_Source] Error 2
make: *** [all] Error 2

Any help appreciated.

-- 
David Somers
VoIP: FWD 622885
PGP Key ID = 7E613D4E (2048; ElGamel)
Key Fingerprint = 53A0 D84B 7F90 F227 2EAB  4FD7 6278 E2A8 7E61 3D4E
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20050305/1292ec8f/attachment.pgp


More information about the CMake mailing list