User forums > Help

C::B don't want to allow me begin wx develop.

(1/1)

boulabiar:
Hi,

I am not able to use wx in C::B in the windows platform.

I've installed Code::Blocks and wxwidgets 2.8.4.

When I create a new wx project, I am asked for wx directory, so I specified it,
in the pre-final step 2 errors come up to me :

"A matching Debug configuration cannot be found in the wxWidgets directory you specified, This means that Debug target of your project will not build "

And the same thing for release !

What I should do ? I am sure of the directory?!!

Thanks

MortenMacFly:

--- Quote from: boulabiar on July 30, 2007, 04:38:36 am ---What I should do ? I am sure of the directory?!!

--- End quote ---
Did you *compile* wxWidgets? The distribution usually comes as source code only which you need to compile first. Unless you are using somthing like wxPack.
With regards, Morten.

boulabiar:
And how to compile it ?

I tried compiling but I don't know what to do with compiled results files.
There is no clear tutorial how to do this ?

I searched the net, but really I haven't found a good tutorial that I can understand !
(The tutorial I found don't show me exactly what files to copy and where, and it hasn't screenshot or clear step to follow)

thomas:
There is a somehow old article in our WiKi (related to something else), but it nevertheless contains instructions on how to build wxWidgets (an older version, but the instructions are the same):
http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.2_to_develop_Code::Blocks_%28MSW%29#Building_wxWidgets

When you have built wxWidgets in that way, all you should need to do to build your own programs is to set the #wx variable (Settings --> Global Variables) to the location of your wxWidgets folder.

There are a dozen other ways to build wxWidgets, but this is the easiest one for beginners. Remember to copy the DLL when distributing your program, or it will not run.

Auria:
Check on wxWiki, there are very detailed articles on how to build wxWidgets. Also there are usually install instructions in the package when you download it

another way is to use precompiled binaries (e.g wxPack)

Navigation

[0] Message Index

Go to full version