User forums > Using Code::Blocks
CB10.05minGW on XpPc: New wxWidgets wxSmith Proj - CB ask: wxWidgets Location ?
Mel_3:
Downloaded & installed CB10.05 minGW package on XP Pro PC - Builds & Runs Console App "Hello World" fine.
Files installed to c:\program files\codeblocks
and c:\program files\codeblocks\MinGW
I see wxSmithlib.dll and other dll's in c:\program files\codeblocks\
I see wxSmith on the Menu now but when I attempt to create a new project ... C::B ask me for wxWidget's location.
Click New | project | wxWidgets |Next | wxWidgets 2.8 | Enter Proj Title | Click Next | Next | Select wxSmith & Frame Based | Click Next
then... C::B ask me for wxWidget's location.
I then clicked the Button with the 3-dots and C::B opens a Global Variable Editor window. I'm unsure how to use this.
Is this an "Environment Variable" issue or what?
If it is an Environment Variable issue... I looked at manually setting via...
- Right Click My Computer | Properties | Advanced | Environment Variables
- Then what?
I see...
- User Variables and
- System Variables
Which should I create?
What goes in "Variable" field?
What goes in "Value" field?
BTW, I was attempting to follow the Tutorial at...
http://wiki.codeblocks.org/index.php?title=WxSmith_tutorial:_Hello_world
Thanks for any help.
stahta01:
Did you read and understand the info on this link?
http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef
Do you have wxWidgets built to work with your Compiler?
Tim S.
Mel_3:
Stahta01,
First: Thank you for your help. I really want to get this going...
Second: I did read the link http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef
And tried to follow the instructions but since I have not played with Environment Variables before once I did this...
- Right Click My Computer | Properties | Advanced | Environment Variables
to open the Environment Variables Window I was unsure which I should choose...
a - User Variables
b - System Variables
AND...
was unsure what went in the two fields...
a - Variable Field
b - Value Field
I tried creating a new System Variable with Variable = Path and Value = c:\program files\code blocks
But the command line test shown on the link
C:\>mingw32-gcc
mingw32-gcc: no input files
C:\>
Did not respond as they said it should
Third:
I had the impression wxSmith & wxWidgets were came with Code::Blocks since I saw wxSmith as a Menu Item and saw wxWidgets as a Project Type...
I think now that Code::Blocks just comes with the "hooks" and I must download wxWidgets.
But the more I read the more confused I get on the 3-items wxSmith, wxWidgets, and wxFormBuilder.
- I thought I read they were 3 different "tools" -
- then I thought I read wxFormBuilder was a "tool" in wxWidgets...
So what do I download to get the ability to create Forms with controls like Buttons, Combo/Drop-Down Boxes, etc... and associate/attach code to various events for the controls?
Again, I really thank you for the help.
stahta01:
Code::Blocks DOES NOT include the wxWidgets library source code (wxWidgets headers etc.).
Do you have any prior programming knowledge?
What is the name and version of your Compiler?
OS Name, 32/64 bits, and version?
Tim S.
MortenMacFly:
1.) Code::Blocks is an IDE that drives your compiler
2.) wxFormBuilder is a stand-alone tool that allows creating source code for UI's based on wxWidgets
3.) wxSmith is an integrated C::B plugin that allows the same
4.) You'll need a compiled development version of wxWidgets if you want to develop wxWidgets apps. No matter what IDE/tool you choose. Its the same for every other library you intend to use.
5.) You need to compile wxWidgets in the flavour you need for your apps. This library can be compiled in many flavours.
6.) You might checkout wxPack instead which is a compilation of pre-compiled wxWidgets versions for development.
7.) Don't fiddle with Windows system variables, especially if you don't know what they do. You can setup envvars inside Code::Blocks using the EnvVars plugin or (in the case of wxWidgets) C::B is looking for a global compiler variable, named "wx". Consult the C::B documentation accordingly (see my sig).
Navigation
[0] Message Index
[#] Next page
Go to full version