Code::Blocks Forums

User forums => Help => Topic started by: macylapka on May 17, 2011, 03:35:30 pm

Title: CodeBlocks build faild (Windows, SVN)
Post by: macylapka on May 17, 2011, 03:35:30 pm
Hi,

Sorry for my english. I try build Code blocks on Win XP SP3, with TDM-GCC v4.5.2 and i get this error :

Quote
Compiling: sdk\cbauibook.cpp
D:\wxWidgets for CB\include/wx/event.h: In member function 'void cbAuiNotebook::MinimizeFreeSpace(wxAuiTabCtrl*)':
D:\wxWidgets for CB\include/wx/event.h:2997:18: error: 'virtual bool wxEvtHandler::ProcessEvent(wxEvent&)' is inaccessible
D:\CodeBlocks\src\sdk\cbauibook.cpp:549:36: error: within this context

If this error is on forum pls, excuse. If not please any suggestion.

Best regards.
Title: Re: CodeBlocks build faild (Windows, SVN)
Post by: xunxun on May 18, 2011, 04:50:33 am
which svn?
You may try to change your directory to no SPACE.
Title: Re: CodeBlocks build faild (Windows, SVN)
Post by: stahta01 on May 18, 2011, 03:59:29 pm
Which version of wxWidgets?
Title: Re: CodeBlocks build faild (Windows, SVN)
Post by: macylapka on May 19, 2011, 07:26:02 am
Hi,

To compile code blocks i use wxWidgets 2.9.2. I download lastes code blocks from svn, i can't found version number.

Regards
Title: Re: CodeBlocks build faild (Windows, SVN)
Post by: MortenMacFly on May 19, 2011, 08:42:32 am
To compile code blocks i use wxWidgets 2.9.2.
This is not yet supported. You'll need wx v2.8.xx.

Note that wx v2.9.x is not an official stable version.
Title: Re: CodeBlocks build faild (Windows, SVN)
Post by: macylapka on May 19, 2011, 12:22:49 pm
Hi,

Thanks a lot :) ! It works! Svn have rev = 0, it's ok ?

Regards
Title: Re: CodeBlocks build faild (Windows, SVN)
Post by: Jenna on May 19, 2011, 12:30:29 pm
Hi,

Thanks a lot :) ! It works! Svn have rev = 0, it's ok ?

Regards
It's okay.
You need to install commandline subversion to fetch (and compile in) the svn-version.
Title: Re: CodeBlocks build faild (Windows, SVN)
Post by: macylapka on May 19, 2011, 03:20:56 pm
Hi,

Quote
You need to install commandline subversion to fetch (and compile in) the svn-version.

From where download this commandline ? I saw some instruction when i tried run fresh build cb. I copy file to folder with cb 10.05. It woks  :P . But i think must be another way.

Regards.
Title: Re: CodeBlocks build faild (Windows, SVN)
Post by: Jenna on May 19, 2011, 07:18:23 pm
http://subversion.apache.org/packages.html (http://subversion.apache.org/packages.html)

By the way:
Using google with "download subversion" gives me more than 9 million answers.
Title: Re: CodeBlocks build faild (Windows, SVN)
Post by: stahta01 on May 19, 2011, 08:03:15 pm
For Windows, svn.exe must be in the system path or you can add it to the Compilers "Additional Paths".

Note: The Zip command has to be in the system path.

Edit: Adding either to the working folder that normally is set to the folder holding the Code::Blocks exe should also work.

Tim S.
Title: Re: CodeBlocks build faild (Windows, SVN)
Post by: macylapka on May 19, 2011, 11:21:02 pm
Hi,

Thx all for help ! :)

Regards
Adrian

P.S.
Why forums exist if is google ?
Title: Re: CodeBlocks build faild (Windows, SVN)
Post by: Jenna on May 20, 2011, 08:47:24 am
P.S.
Why forums exist if is google ?

Because there are questions, that google can not answer.
In fact google (or other search engines) do not answer any questions, but they can find answers to similar questions on this and other forums.

By the way:
not searching the forum and/or a web searchengine violates our forum rules.
Title: Re: CodeBlocks build faild (Windows, SVN)
Post by: heromyth on August 15, 2011, 08:05:39 am
Hi,

Sorry for my english. I try build Code blocks on Win XP SP3, with TDM-GCC v4.5.2 and i get this error :

Quote
Compiling: sdk\cbauibook.cpp
D:\wxWidgets for CB\include/wx/event.h: In member function 'void cbAuiNotebook::MinimizeFreeSpace(wxAuiTabCtrl*)':
D:\wxWidgets for CB\include/wx/event.h:2997:18: error: 'virtual bool wxEvtHandler::ProcessEvent(wxEvent&)' is inaccessible
D:\CodeBlocks\src\sdk\cbauibook.cpp:549:36: error: within this context

If this error is on forum pls, excuse. If not please any suggestion.

Best regards.

Here has a solution. That's to say, replace
     tabCtrl->ProcessEvent(event);
with
     GetEventHandler()->ProcessEvent(event);