News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Error while make wxsfontproperty.cpp

Started by bugmenot, November 29, 2008, 05:36:25 PM

Previous topic - Next topic

bugmenot

i can't install codeblocks from svn because of this err:

./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.)

MortenMacFly

Quote from: bugmenot on November 29, 2008, 05:36:25 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

dannyyy

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 !

SharkCZ

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.
Code::Blocks package maintainer for Fedora and EPEL

dannyyy

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)

MortenMacFly

Quote from: dannyyy on January 25, 2009, 03:07:54 AM
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... ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]