User forums > Using Code::Blocks

Get wxWidgets 3.0 to work on C::B, Win7

<< < (3/7) > >>

thor36:
I have installed wxPack 3.0 and also TDM compiler.

Can someone help me with telling how to start using wxWidgets in C::B ? If I try create a wxWidgets project, I have several options to choose, and none of them worked so far. I can choose first -> Preferred GUI builder ( none / wxSmith / wxFormBuilder )  & application type ( Dialog Based / Frame Based ).

If I choose, for example, wxSmith and Dialog based, it asks me for the location of wxWidgets on my computer. In my case, this is : O:\SourceCode\Libraries\wxWidgets3.0 , so that is my entry there. Then it asks for compiler and configuration - I leave it as it is, GNU GCC Compiler with "create debug" and "create release" boxes ticked. Next comes a selection of many options in 2 categories : wxWidgets Library Settings and Miscellaneous Settings - I have no clue what should be the right choices here. And no matter what I choose ( or not choose ) here, after clicking "next" I get the warning message saying :
" A matching Debug configuration cannot be found in the wxWidgets directory you specified. This means that Debug target of your project will not build. Are you sure you want to continue with these settings ? ":

If I leave all the option boxes unchecked, and respond to the warning message with "OK" 2 times, I get to the project window with editor box. A sample GUI window ( Welcome to wxWidgets ) is there, but of course trying to build the project won't work. Log gives 1 error, which is :

||=== Build: Debug in gh (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lwxmsw30ud|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 6 second(s)) ===|

What am I missing ? What are the settings I should be careful about choosing ?

stahta01:

--- Quote from: thor36 on February 01, 2014, 03:53:19 am ---I have installed wxPack 3.0 and also TDM compiler.

Can someone help me with telling how to start using wxWidgets in C::B ? If I try create a wxWidgets project, I have several options to choose, and none of them worked so far. I can choose first -> Preferred GUI builder ( none / wxSmith / wxFormBuilder )  & application type ( Dialog Based / Frame Based ).

If I choose, for example, wxSmith and Dialog based, it asks me for the location of wxWidgets on my computer. In my case, this is : O:\SourceCode\Libraries\wxWidgets3.0 , so that is my entry there. Then it asks for compiler and configuration - I leave it as it is, GNU GCC Compiler with "create debug" and "create release" boxes ticked. Next comes a selection of many options in 2 categories : wxWidgets Library Settings and Miscellaneous Settings - I have no clue what should be the right choices here. And no matter what I choose ( or not choose ) here, after clicking "next" I get the warning message saying :
" A matching Debug configuration cannot be found in the wxWidgets directory you specified. This means that Debug target of your project will not build. Are you sure you want to continue with these settings ? ":

If I leave all the option boxes unchecked, and respond to the warning message with "OK" 2 times, I get to the project window with editor box. A sample GUI window ( Welcome to wxWidgets ) is there, but of course trying to build the project won't work. Log gives 1 error, which is :

||=== Build: Debug in gh (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lwxmsw30ud|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 6 second(s)) ===|

What am I missing ? What are the settings I should be careful about choosing ?



--- End quote ---

I would ignore a matching " Debug target" can NOT be found; just try building the release for now.

To get the "Debug target" to work try the below items in the CB wxWidgets wizard.

Did you try clicking yes on "Using the wxWidgets release binaries"?

Or if that fails, try checking on "Configure advanced options" and make sure the checkmark is NOT in front of "Use __WXDEBUG__"

Note: Using the wizards is about as far as my wxWidgets knowledge goes. The only other things I do is build wxWidgets Lib and the wxWidgets samples.

Tim S.

thor36:

--- Quote from: stahta01 on February 01, 2014, 03:57:14 am ---Did you try clicking yes on "Using the wxWidgets release binaries"?

Or if that fails, try checking on "Configure advanced options" and make sure the checkmark is NOT in front of "Use __WXDEBUG__"

--- End quote ---

I am sorry, where does the "Using the wxWidgets release binaries" question appear ? I didn't notice it.

I have also tried the 2nd option you suggested, with same build message result :/

OK, I apologize if my questions go too far with respect to your regular usage of wxW and C::B . Could you tell me in that case the simplest way you think I could make it work ? Carrying in mind the fact that I am a complete newbie and can't do any magic.

stahta01:
What compiler are you using?

Did you configure Code::Blocks to use the Compiler that works with the wxWidgets you downloaded?

Please list all the files in the wxWidgets lib folder that are or type DLL?
This should help me to determine which options are correct for use in the wizard.

In my case the DLL are in this folder "C:\wxMSW-3.0\wxWidgets-3.0.0\lib\gcc_dll"
You are likely under "lib\gcc_dll" if in another location it might have a issue or it might not.

The DLLs in my folder are: Yours might have a very different name; the name will tell what options are correct.

--- Code: ---wxmsw30u_gcc_cb.dll
wxmsw30u_gl_gcc_cb.dll

--- End code ---

Also, look for an "lib\gcc_lib" folder it might work also.

Tim S.

thor36:
If I go to Settings -> Compiler , the selected Compiler there is GNU GCC Compiler , as is the case at configuring the project.

I have downloaded wxPack 3.0, which had an easy setup procedure. And as far as my understanding goes, it installed already built wxW library, so I don't think I came across any Compiler selection in that process, nor was any mentioned.

------

in "wxWidgets3.0" , I have folders "lib" and "lib64". Each of those contain same 6 folders, named : gcc48_dll, gcc48_lib, vcc100_dll, vcc100_lib, vcc120_dll, vcc120_lib

The 3 folders with endings "_dll" contain dll files, among others

In "lib" , folder "gcc48_dll" ( assuming this is the right folders ? ) has 34 .dll files . Some of them start with "wxmsw30u" , but they have appendices, for example "wxmsw30u_gl_gcc48.dll"

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version