Author Topic: wx widgets install on win10  (Read 4874 times)

Offline themascaratrout

  • Single posting newcomer
  • *
  • Posts: 5
wx widgets install on win10
« 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,

 
« Last Edit: April 03, 2017, 12:45:06 pm by themascaratrout »

Offline cacb

  • Lives here!
  • ****
  • Posts: 536
Re: wx widgets install on win10
« Reply #1 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

Offline themascaratrout

  • Single posting newcomer
  • *
  • Posts: 5
Re: wx widgets install on win10
« Reply #2 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)
« Last Edit: April 03, 2017, 02:33:01 pm by themascaratrout »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: wx widgets install on win10
« Reply #3 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline themascaratrout

  • Single posting newcomer
  • *
  • Posts: 5
Re: wx widgets install on win10
« Reply #4 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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: wx widgets install on win10
« Reply #5 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

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline themascaratrout

  • Single posting newcomer
  • *
  • Posts: 5
Re: wx widgets install on win10
« Reply #6 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






Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: wx widgets install on win10
« Reply #7 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.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline themascaratrout

  • Single posting newcomer
  • *
  • Posts: 5
Re: wx widgets install on win10
« Reply #8 on: April 03, 2017, 08:21:00 pm »
Sorted, I moved the compiler and widgets into DDrive, worked straight off.

Thanks all