Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Denis on June 22, 2006, 04:39:10 pm

Title: Building Code::Blocks
Post by: Denis on June 22, 2006, 04:39:10 pm
I trying to build C::B like it said in "build" text file. I opened CodeBlocks.cbp but C::B asked me to fill global variable "wx":

Code
Warning
-------------
At least one global variable is used but not yet defined.
Please define it now...

What I have to define in this variable?
Title: Re: Building Code::Blocks
Post by: killerbot on June 22, 2006, 04:46:54 pm
point it to the install dir of you wx sources : example : "D:\projects\wxWidgets-2.6.2"
same when you build the plug-ins of cb it will ask for CB global var : D:\projects\CodeBlocks\src
Title: Re: Building Code::Blocks
Post by: Denis on June 22, 2006, 05:18:49 pm
Thanks. I did but I got compiler messages:
Code
C:\wxWidgets\include\wx\platform.h:190: wx/setup.h: No such file or directory
C:\wxWidgets\include\wx\chkconf.h:84: #error "wxUSE_DYNLIB_CLASS must be defined."
C:\wxWidgets\include\wx\chkconf.h:92: #error "wxUSE_EXCEPTIONS must be defined."
C:\wxWidgets\include\wx\chkconf.h:100: #error "wxUSE_FILESYSTEM must be defined."
C:\wxWidgets\include\wx\chkconf.h:113: #error "wxUSE_DYNAMIC_LOADER must be defined."
and so on...

PS: Last C::B sources from SVN, mingw 3.4.2 and wxWidgets 2.6.3
Title: Re: Building Code::Blocks
Post by: TDragon on June 22, 2006, 07:08:19 pm
Did your wxWidgets build produce the directory <wxwidgets>\lib\gcc_dll\mswu? If not, you'll need to change the directories in the C::B project build options to match what you have.
Title: Re: Building Code::Blocks
Post by: Pecan on June 22, 2006, 10:06:14 pm
Thanks. I did but I got compiler messages:
Code
C:\wxWidgets\include\wx\platform.h:190: wx/setup.h: No such file or directory
C:\wxWidgets\include\wx\chkconf.h:84: #error "wxUSE_DYNLIB_CLASS must be defined."
C:\wxWidgets\include\wx\chkconf.h:92: #error "wxUSE_EXCEPTIONS must be defined."
C:\wxWidgets\include\wx\chkconf.h:100: #error "wxUSE_FILESYSTEM must be defined."
C:\wxWidgets\include\wx\chkconf.h:113: #error "wxUSE_DYNAMIC_LOADER must be defined."
and so on...

PS: Last C::B sources from SVN, mingw 3.4.2 and wxWidgets 2.6.3

I've also noticed that of late, global variables don't work. I had to go back and define $(wx) etc in my projects options. It used to work just fine.

I haven't changed wx and cb in months. And they're still defined correctly.
But...

I was thinking at the time that I might have a conf corruption and that "someday" I'd delete the conf and start over again. Someday....

That trick used to work everytime.