Author Topic: Issue building 7881 with wx 2.8  (Read 4162 times)

Offline ironhead

  • Almost regular
  • **
  • Posts: 210
Issue building 7881 with wx 2.8
« on: March 03, 2012, 03:41:50 pm »
I just updated to rev. 7881 and I am now getting these errors when I try to compile:

Code
C:\codeblocks\trunk\src\plugins\scriptedwizard\wiz.cpp:736:36: error: 'windows' is not a member of 'platform'
C:\codeblocks\trunk\src\plugins\scriptedwizard\wiz.cpp:736:56: error: 'wxSCI_EOL_CRLF' was not declared in this scope
C:\codeblocks\trunk\src\plugins\scriptedwizard\wiz.cpp:736:73: error: 'wxSCI_EOL_LF' was not declared in this scope
C:\codeblocks\trunk\src\plugins\scriptedwizard\wiz.cpp:741:12: error: 'wxSCI_EOL_CR' was not declared in this scope
C:\codeblocks\trunk\src\plugins\scriptedwizard\wiz.cpp:742:12: error: the value of 'wxSCI_EOL_LF' is not usable in a constant expression
C:\codeblocks\trunk\src\plugins\scriptedwizard\wiz.cpp:736:73: note: 'wxSCI_EOL_LF' does not have integral or enumeration type

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9613
Re: Issue building 7881 with wx 2.8
« Reply #1 on: March 03, 2012, 03:52:37 pm »
I just updated to rev. 7881 and I am now getting these errors when I try to compile:
Huh? How weird is that... what compiler do you use, as it works just fine for me...?!

As a work-around, what happens if you apply this patch:
Code
Index: src/plugins/scriptedwizard/wiz.cpp
===================================================================
--- src/plugins/scriptedwizard/wiz.cpp (revision 7881)
+++ src/plugins/scriptedwizard/wiz.cpp (working copy)
@@ -34,6 +34,7 @@
 #include <projectbuildtarget.h>
 #include <filefilters.h>
 #include <infowindow.h>
+#include <prep.h>
 
 #include <scripting/bindings/sc_base_types.h>
 
@@ -738,9 +739,9 @@
     wxString eol_str;
     switch (eolmode)
     {
-      case wxSCI_EOL_CR:  eol_str = _T("\r"); break;
-      case wxSCI_EOL_LF:  eol_str = _T("\n"); break;
-      default:            eol_str = _T("\r\n"); // means wxSCI_EOL_CRLF
+      case static_cast<int>(wxSCI_EOL_CR):  eol_str = _T("\r"); break;
+      case static_cast<int>(wxSCI_EOL_LF):  eol_str = _T("\n"); break;
+      default:                              eol_str = _T("\r\n"); // means wxSCI_EOL_CRLF
     }
 
     if ( cbWrite(f, contents + eol_str, wxFONTENCODING_UTF8) )
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Issue building 7881 with wx 2.8
« Reply #2 on: March 03, 2012, 04:30:32 pm »
Fix committed in Rev 7882.
Be a part of the solution, not a part of the problem.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9613
Re: Issue building 7881 with wx 2.8
« Reply #3 on: March 03, 2012, 09:15:04 pm »
Fix committed in Rev 7882.
Ah - now I got it, yes - that explains the error. Thanks Biplab!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Online oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13163
    • Travis build status
Re: Issue building 7881 with wx 2.8
« Reply #4 on: March 03, 2012, 11:53:10 pm »
Biplab: How do you manage to commit the last fix? Using svn+ssh://svn.berlios.de fails for the last couple of days :(
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Issue building 7881 with wx 2.8
« Reply #5 on: March 04, 2012, 12:24:56 am »
Biplab: How do you manage to commit the last fix? Using svn+ssh://svn.berlios.de fails for the last couple of days :(
Same here, but you can switch from svn+ssh to https like this on console:
Code
svn switch --relocate svn+ssh://[email protected]/svnroot/repos/codeblocks/trunk https://j[email protected]/svnroot/repos/codeblocks/trunk
or for debugger-branch:
Code
svn switch --relocate svn+ssh://[email protected]/svnroot/repos/codeblocks/trunk https://[email protected]/svnroot/repos/codeblocks/trunk

The exact url's and username (of course)depend on what you had before.
in general:
Code
svn switch --relocate FROM TO
« Last Edit: March 04, 2012, 12:27:16 am by jens »

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: Issue building 7881 with wx 2.8
« Reply #6 on: March 04, 2012, 12:15:18 pm »
Biplab: How do you manage to commit the last fix? Using svn+ssh://svn.berlios.de fails for the last couple of days :(

As jens pointed out, I'm using https protocol to access Berlios. :)
Be a part of the solution, not a part of the problem.