User forums > General (but related to Code::Blocks)

wxWidget and code::Blocks 16

(1/3) > >>

taazz:
After two days of installation re installation and fails to build wxwidgets 3.1 on windows with mingw32 I finally got it compiled and set it up on code::blocks.
I have iron out a couple of problems and I'm left with hopefully the last one. So I have created a new wxApplication and set it up to use wx 3 thats why I get the error.

--- Quote ---ld.exe||cannot find -l||=== Build: Release in app1 (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lwxmsw30u_core|
ld.exe||cannot find -lwxbase30u|
||error: ld returned 1 exit status|
||=== Build failed: 3 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
|
--- End quote ---

which seems resonable. So the main question is what I have to change to link wxmsw31u_code instead of wxmsw30u_code?
At this point I'm completely outraged with the setup procedure and mostly the lack of a decent installer for any C/C++ IDE, so I decided to stop wasting my time and ask here. Keep in mind that I'm not interested in the "correct" way of doing things, I'm more interested in information on the config files where to look for them and how to add of change more choices (wxwidget31 for example).

thanks in advance for any inside you are willing to share.

stahta01:
Using wxWidgets 3.1 with Code::Blocks questions.

I am trying to make the questions very general because we are getting a lot of questions related to this subject.
If you are good at Editing Wiki Pages feel free to create a page with parts of my posts. (I am very bad at Wiki Editing)

Information about your Compiler is needed.
mingw.org, MinGW64 32 bit, or MinGW64 64 bit ?
GCC version of Compiler

Did you self-build wxWidgets?
If self built; what method (configure/make) or (mingw32-make -f makefile.gcc)
If (mingw32-make -f makefile.gcc) what command was used?
Or download a prebuilt binary?
If downloaded prebuilt binary is it for your Compiler type and version?

Are you using the CB Wizard? The CB Wizard is likely broken for wxWidgets 3.1.
I am looking into ways to fix it.

If using Cygwin GCC or MSys2 GCC, please state that. These need special methods to work with Code::Blocks.

Do you plan to use wxSmith or wxFormBuilder?
If yes, which one?

Tim S.


stahta01:
This CB FAQ might answer your question; but, you likely will have more questions.

http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28general%29#Q:_I_would_like_to_compile_a_project_using_some_non-standard_libraries._How_can_I_indicate_to_CodeBlocks_that_these_libraries_and_include_files_exist.3F

Tim S.

taazz:

--- Quote from: stahta01 on May 04, 2016, 04:03:08 am ---mingw.org, MinGW64 32 bit, or MinGW64 64 bit ?
GCC version of Compiler

--- End quote ---
The compiler used by codeblocks is mingw32 as it was setup from its web installer with gcc version 4.9.3.1 or at lest I'm hopping the autodetect worked correctly.

--- Quote from: stahta01 on May 04, 2016, 04:03:08 am ---Did you self-build wxWidgets?

--- End quote ---
I used the wxWidget 3.1 and 3.0.2 installer for windows tried to use mingww32-make and failed to build wxwidgets repeatedly, my main problem was that the compiler could not find headers like stdio.h. After a day or two trying to find any information on how to set up any environment variables that might be needed I gave up and downloaded and installed TDM-gcc-32.

I used the command shell that it sets up to run the mingw32-make -f makefile.gcc and managed to build a release version of 3.0.2, failed to build a debug version with an error message that I do not remember, I interpreted as "it does not support some cxx11 features" or something along those lines. I tried from the same shell to build the debug version of 3.1.0 and everything wend smoothly, I hope, I did not check the complete compilation output, I ended up with a number of .a file in the <installation dir>\lib\gcc_lib folder and a bit relefed that the problem was corrected on 3.1

I continued with the release build on 3.1. I made various builds with various configurations executing clean before each. I think the last one was
  mingw32-make -f makefile.gcc SHARED=1 UNICODE=1 MONOLITHIC=0 BUILD=release and mingw32-make -f makefile.gcc SHARED=0 UNICODE=1 BUILD=debug
I had multiple fails when trying to compile a simple wxwidget demo which I managed (somehow) to shrink down to the error I posted.
I do plan to keep my builds with SHARED=1 UNICODE=1 MONOLITHIC=0 for both debug and release, I guess that by your next post I will have run a build cycle.


--- Quote from: stahta01 on May 04, 2016, 04:03:08 am ---Are you using the CB Wizard? The CB Wizard is likely broken for wxWidgets 3.1.
--- End quote ---
I have no idea what that is, so I have to say no at this time.


--- Quote from: stahta01 on May 04, 2016, 04:03:08 am ---If using Cygwin GCC or MSys2 GCC, please state that. These need special methods to work with Code::Blocks.

--- End quote ---
As far as I understand so far, I have not used any of those, although some msys package where installed by the mingw32 installer. I do not plan to use any unix like environment at all I prefer things as close to default installation as possible.


--- Quote from: stahta01 on May 04, 2016, 04:03:08 am ---Do you plan to use wxSmith or wxFormBuilder?
If yes, which one?

--- End quote ---
Yes I'm planning to use both of them at first until I settle down on a favorite. So far I think I only used wxSmith and I had an acceptable experience although at some point what ever I placed on it was resize to fill the complete form. So far I prefer the frames over the dialogs design, then again I have to run a couple of sample and see how it behaves before deciding.

Please keep in mind that my c/c++ experience is 0. I'm a noob there too. which makes things geometrically harder than having to deal with code::blocks and wxWidget only.
Most hated thing so far, the fact that environment variable are needed. I considered them an unacceptable pollution, keep everything in your config files and away from my "global" system.

Any way thank you for your time and effort, I appreciate it immensely.



--- Quote from: stahta01 on May 04, 2016, 04:04:56 am ---This CB FAQ might answer your question; but, you likely will have more questions.

--- End quote ---
Thank you, I will take a close look on that.

stahta01:
I see at least a half dozen possible errors you might have made.
But, the main one is I have no Idea what C++ Compiler you are really using; and, I do NOT think you know either.

I will see if I can write up some newbie style directions that use the wxWidgets built binaries because I think that is a major stumbling block for newbies.

No idea how many days this will take me. You will have to download an TDM GCC Compiler to match the wxWidgets 3.1.0 built binaries.

From https://github.com/wxWidgets/wxWidgets/releases/tag/v3.1.0

--- Quote ---MinGW-TDM versions 4.9 and 5.1 (with the default SJLJ exceptions propagation method, using C++11).
--- End quote ---


I will see if the directions can support wxSmith; might try wxFormBuilder if I secede in getting wxSmith working.

I will be using an wx-config.exe to set most of the wxWidgets setting in Code::Blocks.

I have plans to add an option to the CB Wizard to use wx-config.exe in the future.

I strongly recommend newbies have only one MinGW GCC based compiler installation on their computers they can interfere with each other! 

Edit: I would NOT be surprised if wxSmith and wxFormBuilder are both partly (or mostly) broken with wxWidgets 3.1.

I will NOT be able to help you using wxSmith and wxFormBuilder; I am a newbie with both.

Tim S.

Navigation

[0] Message Index

[#] Next page

Go to full version