News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Building Code::Blocks

Started by Denis, June 22, 2006, 04:39:10 PM

Previous topic - Next topic

Denis

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":


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


What I have to define in this variable?

killerbot

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

Denis

Thanks. I did but I got compiler messages:

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

TDragon

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.
[url="https://jmeubank.github.io/tdm-gcc/"]https://jmeubank.github.io/tdm-gcc/[/url] - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Pecan

#4
Quote from: Denis on June 22, 2006, 05:18:49 PM
Thanks. I did but I got compiler messages:

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.