News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

CodeBlocks build faild (Windows, SVN)

Started by macylapka, May 17, 2011, 03:35:30 PM

Previous topic - Next topic

macylapka

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.
Windows XP, Vista & Ubuntu 10.10
TDM-GCC 4.5.2 SJLJ
Code Blocks SVN
wxWidgets 2.8.12 & 2.9.2

xunxun

which svn?
You may try to change your directory to no SPACE.
Regards,
xunxun

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

macylapka

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
Windows XP, Vista & Ubuntu 10.10
TDM-GCC 4.5.2 SJLJ
Code Blocks SVN
wxWidgets 2.8.12 & 2.9.2

MortenMacFly

Quote from: macylapka on May 19, 2011, 07:26:02 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.
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]

macylapka

#5
Hi,

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

Regards
Windows XP, Vista & Ubuntu 10.10
TDM-GCC 4.5.2 SJLJ
Code Blocks SVN
wxWidgets 2.8.12 & 2.9.2

Jenna

Quote from: macylapka on May 19, 2011, 12:22:49 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.

macylapka

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.
Windows XP, Vista & Ubuntu 10.10
TDM-GCC 4.5.2 SJLJ
Code Blocks SVN
wxWidgets 2.8.12 & 2.9.2

Jenna

http://subversion.apache.org/packages.html

By the way:
Using google with "download subversion" gives me more than 9 million answers.

stahta01

#9
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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

macylapka

Hi,

Thx all for help ! :)

Regards
Adrian

P.S.
Why forums exist if is google ?
Windows XP, Vista & Ubuntu 10.10
TDM-GCC 4.5.2 SJLJ
Code Blocks SVN
wxWidgets 2.8.12 & 2.9.2

Jenna

Quote from: macylapka on May 19, 2011, 11:21:02 PM
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.

heromyth

Quote from: 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.

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