User forums > Help

Just getting it set up w/wxWidgets...

(1/7) > >>

FlyingIsFun1217:
Hey,

I just downloaded Code::Blocks to see what it was like, and after trying to compile the default wxWidgets program, found out that I needed to download wxWidgets seperately (Yeah, I'm used to wxDev-C++). So thats been done.

Now when I try and compile the project (after changing the wxwidgets version in project->Build options to 2.8.0), I just get a bunch of errors, the first being "wx/setup.h: No such file or directory".

What should I do to be able to fully work with wxWidgets in Code::Blocks? It seems like a great IDE!

Thanks!
FlyingIsFun1217

Pecan:
You probably just need to set your global variables.
Bet sure to follow the compiling directions for you OS from
wiki.codeblocks.org.

FlyingIsFun1217:
Set global variables? How?

I also assume that when you say to follow the compiling directions for (in my case) Windows that you are talking about compiling wxWidgets (found here, under Building wxWidgets). I tried this, but only ever got errors. Maybe because the version I downloaded came with MinGW?

FlyingIsFun1217

Pecan:
MainMenu->Settings->Global Variables

Biplab:
You can use direct path in place of Global Variable. Use the absolute Path of wx version in the following dialog in the textbox.



For example, in my PC, wx-2.6.3 is kept at C:\wxWidgets-2.6.3 and wx-2.8.0 is kept at C:\wxMSW-2.8.0. Please specify the top level dir. C::B will find out include and lib dir.

Code::Blocks doesn't come with pre-compiled wx libs. You can compile it on your own, or download wxPack (http://wxpack.sourceforge.net). wxPack comes with wx lib compiled with GCC and MSVC. That might be helpful.

Navigation

[0] Message Index

[#] Next page

Go to full version