Code::Blocks Forums

User forums => Help => Topic started by: bugmenot on November 29, 2008, 05:36:25 pm

Title: Error while make wxsfontproperty.cpp
Post by: bugmenot on November 29, 2008, 05:36:25 pm
i can't install codeblocks from svn because of this err:

Code
./wxsfontproperty.cpp: In member function ‘wxString wxsFontData::BuildFontCode(const wxString&, wxsCoderContext*)’:
./wxsfontproperty.cpp:235: error: call of overloaded ‘DoubleToString(double&)’ is ambiguous
/usr/include/wx-2.8/wx/utils.h:304: note: candidates are: wxChar* DoubleToString(double, const wxChar*)
./wxsfontproperty.cpp:37: note:                 wxString<unnamed>::DoubleToString(double)
./wxsfontproperty.cpp: In member function ‘virtual bool wxsFontProperty::XmlWrite(wxsPropertyContainer*, TiXmlElement*)’:
./wxsfontproperty.cpp:450: error: call of overloaded ‘DoubleToString(double&)’ is ambiguous
/usr/include/wx-2.8/wx/utils.h:304: note: candidates are: wxChar* DoubleToString(double, const wxChar*)
./wxsfontproperty.cpp:37: note:                 wxString<unnamed>::DoubleToString(double)
make[6]: *** [wxsfontproperty.lo] Error 1
make[6]: Leaving directory `/opt/codeblocks/src/plugins/contrib/wxSmith/wxwidgets/properties'
make[5]: *** [install-recursive] Error 1
make[5]: Leaving directory `/opt/codeblocks/src/plugins/contrib/wxSmith/wxwidgets'
make[4]: *** [install-recursive] Error 1
make[4]: Leaving directory `/opt/codeblocks/src/plugins/contrib/wxSmith'
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory `/opt/codeblocks/src/plugins/contrib'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/opt/codeblocks/src/plugins'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/opt/codeblocks/src'
make: *** [install-recursive] Error 1

Can someone help me pls (:

PC: Fedora 10 (x86_64), wxGTK 2.8.9 (from repos.)
Title: Re: Error while make wxsfontproperty.cpp
Post by: MortenMacFly on November 29, 2008, 10:02:37 pm
i can't install codeblocks from svn because of this err:
Probably you have an wxPropertyGrid from the wx repos? This lib is included to wx for some time now. But it's not compatible with the one wxSmith uses. Please make sure you do not have a conflicting wxPropertyGrid in one of your include path's. Alternatively make sure that the C::B SVN wxPropertyGrid is the one used at first.
Title: Re: Error while make wxsfontproperty.cpp
Post by: dannyyy on January 14, 2009, 07:47:50 pm
Morten, unfortunately I'm having the same problem while building CodeBlocks SVN 5399, using the 32 bit version of Fedora 10.

I don't know if there is a wxPropertyGrid already installed on the system, but I believe not, because I can't find any reference about it...no includes, no libs, no RPMs, etc.

Can you (or someone else) give me a clue how to fix this ?

Thanks !
Title: Re: Error while make wxsfontproperty.cpp
Post by: SharkCZ on January 19, 2009, 02:41:04 pm
The problem is a conflict between DoubleToString from wxWidgets (with 2.4 compatibility enabled) and the C::B (or rather wxSmith) internal version. See https://developer.berlios.de/bugs/?func=detailbug&bug_id=15075&group_id=5358 for a fix.
Title: Re: Error while make wxsfontproperty.cpp
Post by: dannyyy on January 25, 2009, 03:07:54 am
A big THANK YOU for SharkCZ and Biplab for fixing this problem ! Oh, I mean, I will start compiling it now and have not tested it yet, but I trust you guys...  :D

P.S.: Is MortenMacFly on vacation, or he just ignored my help request ?  :lol: (just kidding)
Title: Re: Error while make wxsfontproperty.cpp
Post by: MortenMacFly on January 25, 2009, 03:51:38 pm
P.S.: Is MortenMacFly on vacation, or he just ignored my help request ?  :lol: (just kidding)
Nope... just really missed it. Vacation would be nice though... ;-)