User forums > Using Code::Blocks
CB10.05minGW on XpPc: New wxWidgets wxSmith Proj - CB ask: wxWidgets Location ?
Mel_3:
stahta01 - Thanks for the clear statement regarding wxWidgets not being included with C::B
Here are the answers to your 3 questions:
Question 1:
- Prior Programming Experience = ASM/embedded processors, ASM/Desktops, Basic, Visual Basic, VBA, PHP, ASP, HTML, CSS, XML, and a little Java Script. I understand OOP, Creating Cless's, Objects/Instances of the Class, and using Methods and setting Properties, etc
- BUT in recent years I've only done occasional programming
- I'm just starting to play with C and C++ and...
.. have installed Microsoft Visual Studio Express - and have done a few simple console app's.
.. have installed Code::Blocks minGW - and built and run a few simple console apps in both C and C++ (C::B 10.05)
- I have used GUI's to create code but often work only with a text editor customizing or doing scratch code
Question 2:
- The compiler I'm using is the minGW ver that came with the C::B package download for PC's
- It looks like I installed it August of 2011 but have just now started to play with it in an attempt to get up to speed.
- C::B ver = 10.05 Rev 6283 Build May 27, 2010 19:10:05(windows unicode)- 32 bit
- minGW ver = ? in c:\program files\codeblocks I see mingwm10.dll
- I've looked for command line way to run minGW/gcc to get ver # but have yet to find out how.
Question 3:
I've loaded C::B onto an XP Pro 32bit PC with all the latest updates.
MortenMacFly - Thank you for the concise list - that helps.
Responses to your items...
1 - Got it on what C::B is/does.
2, 3, 4, 5 - So wxSmith needs compiled wxWidgets to work... wxSmith is included with C::B but I have to download & compile wxWidgets - right?
6 - As a newbie to C++, C::B, etc this would save me having to figure out how to download & compile wxWidgets... right?
I'll download it as you suggest but would like to learn to use C::B & minGW to compile wxWidgets... unless it takes a different gcc compiler version...
7 - I'll consult the C::B doc's as you suggest... but am interested in learning how to set the Windows Environment Variables as well.
Thanks again for the help Guys.
stahta01:
Here is the batch file command I used to compile the wxWidgets using the MinGW sub folder under Code::Blocks 10.05.
--- Code: ---REM Add MinGW Bin folder to the system path
SET PATH=C:\Program Files\CodeBlocks\MinGW\bin;%PATH%
REM Change to the wxWidgets build directory
cd /D H:\SourceCode\OpenSourceCode\Libs\GUI\wxWidgets\wxWidgets-2.8.10-SJLJ\build\msw
REM Clean the release monolithic unicode DLL build
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 clean
REM Create the release monolithic unicode DLL build
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1
PAUSE
--- End code ---
NOTE: The pause command is only needed if you run the command in a batch file and wish to see the build output.
NOTE: You need to adjust the "cd" command to where ever you download the wxWidgets source code.
I do NOT think it is safe to help you set the system environmental variable to add the MinGW Bin folder to it. If you do it wrong you can make PC non boot-able. That is why I adjust the PATH variable via the SET command instead.
NOTE: It takes my old PC about 3 hours to Compile a single build of wxWidgets; about the last hour of that is doing the link command.
Tim S.
Mel_3:
Tim,
Great ! Thanks for the batch file. I'll give it a try tomorrow and report back.
Your right on the Environment Variables... I wiped out the PATH's Sunday and had to so a system Restore to the Saturday status...
I now see I should have clicked Edit and appended to the existing paths and not have clicked New... which cleared the Path variable(s)
And as I read (here?) it may be better to do this on a session basis and not permanently modify the Path Environment Variable.
Thanks again for the kind assistance !!!
stahta01:
FYI:
My build just error out and Google implies my MinGW ld command is the likely cause.
I think my CB MinGW is the original shipped with CB 10.05.
Tim S.
Mel_3:
Tim,
fyi... on my system...
> mingw32-make --version
reports GNU Make 3.81
So that is what came when I downloaded C::B minGW package
You said: "My build just error out and Google implies my MinGW ld command is the likely cause."
How would you change your batch file to correct this so that the compile was successful?
thanks again for the help !!!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version