Code::Blocks Forums

User forums => Help => Topic started by: themascaratrout on April 03, 2017, 12:24:40 pm

Title: wx widgets install on win10
Post by: themascaratrout on April 03, 2017, 12:24:40 pm
Hi All,

First post, new to programming. After some research, I've chosen code::blocks on Windows 10 as my ide for c++, (with MinGW) I'm having some trouble getting it set up...

I've been trying to compile wxWidgets but on starting a new project, global variable editor dialog box comes up with this message

"in the currently active set, Code::Blocks does not know the global compiler variable "wx". Please define it."

I can't find any previous searches with this exact issue so I'd appreciate any pointers :)

Thanks for any replies,

 
Title: Re: wx widgets install on win10
Post by: cacb on April 03, 2017, 01:24:05 pm
You have to define 'wx' via

Settings -> Global Variables ....

The 'base' value should typically point to the root folder of your wxWidgets installation
Title: Re: wx widgets install on win10
Post by: themascaratrout on April 03, 2017, 01:53:48 pm
Hi cacb thanks for that.


now getting a dialog warning tho - attached
(I've tried 3.0.2    & 3.1.0)
Title: Re: wx widgets install on win10
Post by: stahta01 on April 03, 2017, 03:42:02 pm
Did you build a Release type build of wxWidgets?

Did you build any type of build of wxWidgets?

Tim S.
Title: Re: wx widgets install on win10
Post by: themascaratrout on April 03, 2017, 03:57:30 pm
Hi Tim,

Yes it was a release build, I typed in to cmd:
mingw32-male -f make file.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1


Thanks for your help with this
Title: Re: wx widgets install on win10
Post by: stahta01 on April 03, 2017, 04:02:48 pm
What options did you use in the CB wxWidgets Wizard?

The options need to match the build of wxWidgets.

http://wiki.codeblocks.org/index.php/WxWindowsQuickRef (http://wiki.codeblocks.org/index.php/WxWindowsQuickRef)

Tim S.
Title: Re: wx widgets install on win10
Post by: themascaratrout on April 03, 2017, 04:57:20 pm
basically all by now :)

wxWidgets 3.0.x is the only one I haven't changed...


attached is latest dialog :(

Thanks for your help with this





Title: Re: wx widgets install on win10
Post by: ollydbg on April 03, 2017, 06:10:26 pm
I don't see much errors in the image shot.
It said you don't have a "debug" version of wxWidgets library. But you can still go on by click YES.

You can build a "debug" version of your application which links against a "release" version of wxWidgets library. This should work fine.
Title: Re: wx widgets install on win10
Post by: themascaratrout on April 03, 2017, 08:21:00 pm
Sorted, I moved the compiler and widgets into DDrive, worked straight off.

Thanks all