Author Topic: Error while make wxsfontproperty.cpp  (Read 6204 times)

Offline bugmenot

  • Multiple posting newcomer
  • *
  • Posts: 32
Error while make wxsfontproperty.cpp
« 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.)
« Last Edit: November 29, 2008, 06:04:38 pm by bugmenot »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Error while make wxsfontproperty.cpp
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline dannyyy

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: Error while make wxsfontproperty.cpp
« Reply #2 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 !

Offline SharkCZ

  • Almost regular
  • **
  • Posts: 134
Re: Error while make wxsfontproperty.cpp
« Reply #3 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.
Code::Blocks package maintainer for Fedora and EPEL

Offline dannyyy

  • Multiple posting newcomer
  • *
  • Posts: 23
Re: Error while make wxsfontproperty.cpp
« Reply #4 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)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Error while make wxsfontproperty.cpp
« Reply #5 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... ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ