Author Topic: wxWidget with codeblocks problem  (Read 49635 times)

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
wxWidget with codeblocks problem
« on: March 24, 2017, 01:49:52 pm »
Have instaled CodeBlocks and wxWidget 3.0.x but still unable to start a wxWidget project, always geting this error mesages:





I don´t care about debug, as never using it, but release is a problem.
My OS is Windows, but it should be already clear because of the pics.
« Last Edit: March 24, 2017, 01:52:06 pm by gtafan »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: wxWidget with codeblocks problem
« Reply #1 on: March 24, 2017, 03:12:48 pm »
How did you build the wxWidgets binaries?

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #2 on: March 24, 2017, 04:22:21 pm »
mingw32-make -f makefile.gcc BUILD=release SHARED=0 MONOLITHIC=1 UNICODE=1 clean
mingw32-make -f makefile.gcc BUILD=release SHARED=0 MONOLITHIC=1 UNICODE=1
So after that some .a files apear in the lib folder, but the error mesage staied the same, as befor building.
« Last Edit: March 24, 2017, 04:28:36 pm by gtafan »

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: wxWidget with codeblocks problem
« Reply #3 on: March 24, 2017, 04:36:43 pm »
Did you uncheck the "Use wxWidgets DLL" option of the wizard? You created a static version of wxWidgets (SHARED=0).

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #4 on: March 24, 2017, 05:15:17 pm »
Did you uncheck the "Use wxWidgets DLL" option of the wizard? You created a static version of wxWidgets (SHARED=0).
Yes I did.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: wxWidget with codeblocks problem
« Reply #5 on: March 24, 2017, 06:32:30 pm »
you can still try to build the project.

probably you have to set some libraries by yourself...

can you give us the path to your wxWidgets build folder and how the libraries are called?

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #6 on: March 27, 2017, 01:58:37 pm »
Here the path:



but it can´t be the problem, because wrong path would show an error mesage just after this dialog.
My options look like that:



Just for fun have tried all posible combinations, but always got exactlly the same error.

The lib folder looks like that:



and the gcc_lib:



Posibly some .a files are mising?

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: wxWidget with codeblocks problem
« Reply #7 on: March 27, 2017, 02:21:16 pm »
There are two missing libraries, libwxmsw30u.a and libwxmsw30u_gl.a.

You should call again the compilation command and look for compilation errors (one frequent error with monolithic builds is related to memory starvation in ld).


Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #8 on: March 27, 2017, 02:55:03 pm »
Should I set monolithic  to 0?

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: wxWidget with codeblocks problem
« Reply #9 on: March 27, 2017, 04:04:38 pm »
First you should identify why compilation fails, if it is due to a linker memory error then MONOLITHIC=0 is an option.

In https://wiki.wxwidgets.org/Compiling_wxWidgets_with_MinGW, past the middle of the page, there are some hints compiling wxWidgets in monolithic and static mode (look for To fix issues when compiling static library with MONOLITHIC option and below).

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #10 on: March 27, 2017, 06:14:03 pm »
Could be problem with static? When I compiled with static=1 there were more .a files there.
Is there any simpler posibility to make WxWidget worck with CodeBlocks? I mean without that anoing comandline stuff. Haev read somewhere about Codeblocks version with everithing istaled, including WxWidgets.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: wxWidget with codeblocks problem
« Reply #11 on: March 27, 2017, 06:49:11 pm »
Could be problem with static? When I compiled with static=1 there were more .a files there.
Is there any simpler posibility to make WxWidget worck with CodeBlocks? I mean without that anoing comandline stuff. Haev read somewhere about Codeblocks version with everithing istaled, including WxWidgets.

Warning: wxWidgets is a C++ Library therefore any Binary will only work with the same C++ Compiler as the binary used when built.

So, you need to decide what C++ Compiler you are going use. Then, find a Binary built for the exact C++ Compiler.
Or, find a pre-built Binary that has a location you can download the C++ Compiler to match.

NOTE: The CB Wizard may or may not work with the pre-built Binary you find.

NOTE: Since, you failed to find the correct sub-forum to post your question; I would guess that creating a CB Project without a
CB Wizard is beyond your current skill level.

I will try to think of a possible solution for newbies like you.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: wxWidget with codeblocks problem
« Reply #12 on: March 27, 2017, 07:03:59 pm »
The "annoying command line stuff" must be executed only once.

Check when the building process failed and then ask in the wxwidgets forum, not here.

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #13 on: March 30, 2017, 02:05:18 pm »
The "annoying command line stuff" must be executed only once.

Check when the building process failed and then ask in the wxwidgets forum, not here.
Just dont`t understand why can´t codeblocks build WxWigets itself, would make ewerithing easier.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: wxWidget with codeblocks problem
« Reply #14 on: March 30, 2017, 05:44:50 pm »
The "annoying command line stuff" must be executed only once.

Check when the building process failed and then ask in the wxwidgets forum, not here.
Just dont`t understand why can´t codeblocks build WxWigets itself, would make ewerithing easier.

Warning: wxWidgets is a C++ Library therefore any Binary will only work with the same C++ Compiler as the binary used when built.

Please read what I posted! Then, understand the Code::Blocks is a IDE that works with many different compilers.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #15 on: March 30, 2017, 07:11:21 pm »
Sorry but my bigest problem is the language. I know how to compile a C++ project without IDE, but not if it should have a GUI.
I also know that CB can worck with diferent compilers and diferent versions of the same compiler are incompatible. However, as far I know, a compiler should be specified befor CB can use it, so CB knows the path to it and should be able to invoke it for building any C++ API. So I am tallking about some kind of plugin system, like many IDEs have.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: wxWidget with codeblocks problem
« Reply #16 on: March 30, 2017, 07:48:35 pm »
Sorry but my bigest problem is the language. I know how to compile a C++ project without IDE, but not if it should have a GUI.
I also know that CB can worck with diferent compilers and diferent versions of the same compiler are incompatible. However, as far I know, a compiler should be specified befor CB can use it, so CB knows the path to it and should be able to invoke it for building any C++ API. So I am tallking about some kind of plugin system, like many IDEs have.

Please read and follow the rules http://forums.codeblocks.org/index.php/topic,9996.0.html

Please ask your how to build wxWidgets questions on sites like https://forums.wxwidgets.org/ in the future.
Please ask your C++ Programming questions on sites like https://cboard.cprogramming.com/forum.php

Please re-read this thread!!
This whole thread is because you DO NOT know how to build wxWidgets on the command line!!

Please use the user sub-forum in the future.
http://www.catb.org/esr/faqs/smart-questions.html

Can a admin person lock this thread!

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #17 on: March 30, 2017, 08:13:02 pm »
I read the name of this subforum was help, so I posted here. Have seen a lot of wikis, befor posting here, but none of them was useful.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: wxWidget with codeblocks problem
« Reply #18 on: March 30, 2017, 08:17:16 pm »
I read the name of this subforum was help, so I posted here. Have seen a lot of wikis, befor posting here, but none of them was useful.

This site is also NOT a support site for poor reading comprehension.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #19 on: March 31, 2017, 01:36:12 pm »
Like I said, have done exactly, what that wikis were telling, tried building with diferent options, witht static=1 there were even more .a files, but got exactly the same error mesage from CodeBlocks.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: wxWidget with codeblocks problem
« Reply #20 on: March 31, 2017, 02:58:10 pm »
Like I said, have done exactly, what that wikis were telling, tried building with diferent options, witht static=1 there were even more .a files, but got exactly the same error mesage from CodeBlocks.

Post the names of the wxWidgets libraries that was created by you building wxWidgets.

DECIDE what version/build type of wxWidgets libraries you wish to use and then tell us!!

Tell us the options used in the CB Wizard; Please try to help us help you or I will ask that you be banned!

Edit: One of the links that give a good overview of wxWidgets http://wiki.codeblocks.org/index.php/WxWindowsQuickRef

Tim S.
« Last Edit: March 31, 2017, 09:08:52 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #21 on: April 03, 2017, 04:28:14 pm »
Like I said, have done exactly, what that wikis were telling, tried building with diferent options, witht static=1 there were even more .a files, but got exactly the same error mesage from CodeBlocks.

Post the names of the wxWidgets libraries that was created by you building wxWidgets.

DECIDE what version/build type of wxWidgets libraries you wish to use and then tell us!!

Tell us the options used in the CB Wizard; Please try to help us help you or I will ask that you be banned!

Edit: One of the links that give a good overview of wxWidgets http://wiki.codeblocks.org/index.php/WxWindowsQuickRef

Tim S.
Hi Tim, really not here for trolling you or somebody else, sorry if it looks like so. If you read post #6, there are answers to most of your questions. The link yo gave me, I already know, that where I got that comandline stuff from. As you can see in post #2 I am doing exactlly what that wiki, you gave me a link to tells.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: wxWidget with codeblocks problem
« Reply #22 on: April 03, 2017, 08:07:57 pm »
Bye, you refuse to help me help you.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: wxWidget with codeblocks problem
« Reply #23 on: April 03, 2017, 10:50:04 pm »
Soooo, i would like to join the party here xD


From this post:
http://forums.codeblocks.org/index.php/topic,21840.msg148600.html#msg148600
we see, that your compilation of wxWidgets was not successful. Why we know that? The main libraries are missing....
So you cant use codeblocks with wxWidgets because you have a build error on compiling the library and so there is no library you can use in codeblocks

This was told to you by this post:
There are two missing libraries, libwxmsw30u.a and libwxmsw30u_gl.a.

You should call again the compilation command and look for compilation errors (one frequent error with monolithic builds is related to memory starvation in ld).

you ask:
Quote
Should I set monolithic  to 0?
well we don't know.. do you need a monolithic library? in general it is not "that" wise to build a big library as monolithic, because you need a lot ram. But if you want to use wxWidgets to build codeblocks it is better to build it as monolithic. What you should do is check why the build fails... We can't tell you this from the far. you have the error message in your console...
This was told you here:
First you should identify why compilation fails, if it is due to a linker memory error then MONOLITHIC=0 is an option.

In https://wiki.wxwidgets.org/Compiling_wxWidgets_with_MinGW, past the middle of the page, there are some hints compiling wxWidgets in monolithic and static mode (look for To fix issues when compiling static library with MONOLITHIC option and below).

Could be problem with static? When I compiled with static=1 there were more .a files there.
So why do you don't tell us the new names as stahta01 asked for? Is it this hard to type the names? We can't do it for you, because we don't have your problem...

Is there any simpler posibility to make WxWidget worck with CodeBlocks?
This is quite simple: Type one line in the command line, hit enter and wait... If something does not work, read the error message, find a solution and start from 1)....
Of corse you can also use pre build packages. They are out there, but you can use google by your own. If you want to learn programming googeling (or duckduckgoing) should be one of your basic skills (and also a bit of perseverance is needed)

Just dont`t understand why can´t codeblocks build WxWigets itself, would make ewerithing easier.
I can tell you why: The developer of wxWidgets decided to use make as their build system. So you have to use make as build system to make wx and not codeblocks. Codeblocks is not a compiler or a framework. Codeblocks is a editor (like notepad) with a integrated build system (like make, but not make!) . Why don't the codeblocks devs provide a binary/project file for wx you may ask? Simply because it is not their work and also some sort of lack of time.... They are busy with life and more critical codeblocks things, than providing a thing 10000 other people can do with a bit help

Sorry but my bigest problem is the language. I know how to compile a C++ project without IDE, but not if it should have a GUI.
I also know that CB can worck with diferent compilers and diferent versions of the same compiler are incompatible. However, as far I know, a compiler should be specified befor CB can use it, so CB knows the path to it and should be able to invoke it for building any C++ API. So I am tallking about some kind of plugin system, like many IDEs have.
Ok, now you are complaining about the language... This really has nothing to do with codeblocks... In codeblocks you can use python, D, fortran and many other languages... If you ask for a packet management system you can look at linux... there it is a simple (debian system)
Code
sudo apt-get install libwxgtk2.8-dev
and all will work. This is not the work codeblocks has to do. This is the work a packet manager has to do. (On windows you can use pacman?! in msys2)
I personally like how all this is done in c++, because i have all the control i need, and all is dam fast (not like this node bullshit, or even python crap ;) ) , but it is a bit of work to learn all this and if you understand the little pieces you will understand the whole computer thing a lot better. Then you don't write this bullshit webapps (with electron) like nowadays every "programmer" does, because he has no fundamental understanding of the computer (a simple chat program needs 400MB of RAM WTF??!!!???)

Quote
Hi Tim, really not here for trolling you or somebody else, sorry if it looks like so. If you read post #6, there are answers to most of your questions. The link yo gave me, I already know, that where I got that comandline stuff from. As you can see in post #2 I am doing exactlly what that wiki, you gave me a link to tells.
You didn't tell us the names of your static libraries. In your second post the essential names where missing, because your wxWidhets build failed (and by the way: If your problem is the failing wxWidgets build, then this is the wrong forum (wrong page, you see the codeblocks in the url? It would be the right page if there is written wxWidgets) to ask this question, as told to you by others, this forum is only for codeblocks problems and not wxWidgets problems)...

So what can i tell you: Read what others are writing carefully and follow the hints they are giving you. Most of the time they have their reasons to write the steps you should do, because they know what they are doing. And if someone asks you to write something a second/third/fourth , you should do it, because maybe the first time something was different...



Sry for this long post, but it was a kind of stress-relieve for me


Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #24 on: April 04, 2017, 04:15:02 pm »
There is a misunderstanding, when I tallked about problems with language, I meaned not programming one, but the US language. I have no problems with C++ and eve if I have, I´ll not tallk about them here, as it defenetly not the right place.
I have used WxDev befor, it was really easy to use and I never had such problems, but unfortunatelly WxDev is outdated and is not suporting the curent C++ standard. As the only free alternative I was talld to use CodeBlocks instead, but since more than a month I can´t create a wxWidget Project in CodeBlocks, even I have done exactlly the things that wiki sites were telling me. Really hope to made my problem clear, even with my big problems with your language.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: wxWidget with codeblocks problem
« Reply #25 on: April 04, 2017, 06:39:24 pm »
There is a misunderstanding, when I tallked about problems with language, I meaned not programming one, but the US language. I have no problems with C++ and eve if I have, I´ll not tallk about them here, as it defenetly not the right place.
I have used WxDev befor, it was really easy to use and I never had such problems, but unfortunatelly WxDev is outdated and is not suporting the curent C++ standard. As the only free alternative I was talld to use CodeBlocks instead, but since more than a month I can´t create a wxWidget Project in CodeBlocks, even I have done exactlly the things that wiki sites were telling me. Really hope to made my problem clear, even with my big problems with your language.

Then, why in the world did you NOT take your wxWidgets building problem to https://forums.wxwidgets.org/

The only reason I see is that you really are a troll!!

Edit: In case you are NOT troll; your problem is most likely you are getting an error building wxWidgets.
But, since you refuse to answer questions; I must consider you to be an troll or very foolish and ignorant!

Tim S.
« Last Edit: April 04, 2017, 08:28:56 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #26 on: April 05, 2017, 11:16:41 am »
@Tim: I have already answered the questions in post #6 here, you just need to go back to that post and read, so you can see a list of .a files that were produced after building wxWidget in post #2, also here you can read which comandline I used, if you think that something mising in that posts, just tell me what. Also took your advice to ask about this problem in wxWidgets forum.
Like I said have big problems with the language, not programming one, but that not making me a troll.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: wxWidget with codeblocks problem
« Reply #27 on: April 05, 2017, 01:55:39 pm »
Bye Bye Troll.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #28 on: April 05, 2017, 03:31:52 pm »
Bye Bye Troll.
I gave you the answers in my previous posts, you don´t want to read tham, OK but that don´t give you the right to call me troll.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: wxWidget with codeblocks problem
« Reply #29 on: April 05, 2017, 05:13:40 pm »
ARE YOU SUCCEEDING IN BUILDING WXWIDGETS OR ARE YOU GETTING A ERROR?

YOU REFUSE TO ANSWER QUESTIONS YOU ARE A TROLL!!!!

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline sodev

  • Regular
  • ***
  • Posts: 497
Re: wxWidget with codeblocks problem
« Reply #30 on: April 05, 2017, 05:22:38 pm »
Everyone here thinks too complicated, i think the solution for the problem is quite simple. Lets recap the facts. As you can see from post #6 his wxWidgets library was not build, only some support libraries. From my experience this might be because the default settings of the makefile dont work for the compiler or some settings in setup.h are not matching and he didnt supply extra parameters to the makefile. Or he even forgot to create the setup.h file from the setup0.h file. But thats not important, he doesnt care about not having a wxWidgets library nor to supply us the error messages from that annoying command line stuff, all he cares about are the error messages from CodeBlocks.

You dont need to use that wizard to create a wxWidgets application! In fact i have never used that for my numerous wxWidgets projects because i thought its horrible outdated and always configured my projects manually (well ok, actually i use PreMake to generate all projects because otherwise i couldnt keep that many projects updated without spending all my life for only that ;D).

So here is a step by step solution for your problem:
  • create a new empty project
  • add as many empty c++ header files you need
  • add as many empty c++ source files you need
  • optionally configure the properties of the project according to the wiki and other documentation to use your not present wxWidgets library
  • fill the empty files with your code
  • hit the compile button and ignore all those annoying command line stuff error messages
  • no more CodeBlocks error messages!

Awesome, coding was never so much fun using your working style!

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #31 on: April 05, 2017, 05:33:36 pm »
Everyone here thinks too complicated, i think the solution for the problem is quite simple. Lets recap the facts. As you can see from post #6 his wxWidgets library was not build, only some support libraries. From my experience this might be because the default settings of the makefile dont work for the compiler or some settings in setup.h are not matching and he didnt supply extra parameters to the makefile. Or he even forgot to create the setup.h file from the setup0.h file. But thats not important, he doesnt care about not having a wxWidgets library nor to supply us the error messages from that annoying command line stuff, all he cares about are the error messages from CodeBlocks.

You dont need to use that wizard to create a wxWidgets application! In fact i have never used that for my numerous wxWidgets projects because i thought its horrible outdated and always configured my projects manually (well ok, actually i use PreMake to generate all projects because otherwise i couldnt keep that many projects updated without spending all my life for only that ;D).

So here is a step by step solution for your problem:
  • create a new empty project
  • add as many empty c++ header files you need
  • add as many empty c++ source files you need
  • optionally configure the properties of the project according to the wiki and other documentation to use your not present wxWidgets library
  • fill the empty files with your code
  • hit the compile button and ignore all those annoying command line stuff error messages
  • no more CodeBlocks error messages!

Awesome, coding was never so much fun using your working style!
There are about 1000 or even more lines produced by the comandline, so should I post tham all? An other thing, I am using bat file to make life easier, so after it finished the comandline closes.
« Last Edit: April 05, 2017, 05:35:24 pm by gtafan »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: wxWidget with codeblocks problem
« Reply #32 on: April 05, 2017, 05:39:54 pm »
Everyone here thinks too complicated, i think the solution for the problem is quite simple. Lets recap the facts. As you can see from post #6 his wxWidgets library was not build, only some support libraries. From my experience this might be because the default settings of the makefile dont work for the compiler or some settings in setup.h are not matching and he didnt supply extra parameters to the makefile. Or he even forgot to create the setup.h file from the setup0.h file. But thats not important, he doesnt care about not having a wxWidgets library nor to supply us the error messages from that annoying command line stuff, all he cares about are the error messages from CodeBlocks.

You dont need to use that wizard to create a wxWidgets application! In fact i have never used that for my numerous wxWidgets projects because i thought its horrible outdated and always configured my projects manually (well ok, actually i use PreMake to generate all projects because otherwise i couldnt keep that many projects updated without spending all my life for only that ;D).

So here is a step by step solution for your problem:
  • create a new empty project
  • add as many empty c++ header files you need
  • add as many empty c++ source files you need
  • optionally configure the properties of the project according to the wiki and other documentation to use your not present wxWidgets library
  • fill the empty files with your code
  • hit the compile button and ignore all those annoying command line stuff error messages
  • no more CodeBlocks error messages!

Awesome, coding was never so much fun using your working style!
There are about 1000 or even more lines produced by the comandline, so should I post tham all? An other thing, I am using bat file to make life easier, so after it finished the comandline closes.

NO YOU SHOULD NOT POST THEM HERE; Can you read the rules and follow them.
Or are you too much of a troll to believe the rules apply to you!!!

Edit: You are the worst Troll I have ever tried to help!!!
Go do your trolling at the wxWidgets forum!!

Tim S.
« Last Edit: April 05, 2017, 05:42:23 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #33 on: April 05, 2017, 05:47:37 pm »
Everyone here thinks too complicated, i think the solution for the problem is quite simple. Lets recap the facts. As you can see from post #6 his wxWidgets library was not build, only some support libraries. From my experience this might be because the default settings of the makefile dont work for the compiler or some settings in setup.h are not matching and he didnt supply extra parameters to the makefile. Or he even forgot to create the setup.h file from the setup0.h file. But thats not important, he doesnt care about not having a wxWidgets library nor to supply us the error messages from that annoying command line stuff, all he cares about are the error messages from CodeBlocks.

You dont need to use that wizard to create a wxWidgets application! In fact i have never used that for my numerous wxWidgets projects because i thought its horrible outdated and always configured my projects manually (well ok, actually i use PreMake to generate all projects because otherwise i couldnt keep that many projects updated without spending all my life for only that ;D).

So here is a step by step solution for your problem:
  • create a new empty project
  • add as many empty c++ header files you need
  • add as many empty c++ source files you need
  • optionally configure the properties of the project according to the wiki and other documentation to use your not present wxWidgets library
  • fill the empty files with your code
  • hit the compile button and ignore all those annoying command line stuff error messages
  • no more CodeBlocks error messages!

Awesome, coding was never so much fun using your working style!
There are about 1000 or even more lines produced by the comandline, so should I post tham all? An other thing, I am using bat file to make life easier, so after it finished the comandline closes.

NO YOU SHOULD NOT POST THEM HERE; Can you read the rules and follow them.
Or are you too much of a troll to believe the rules apply to you!!!

Edit: You are the worst Troll I have ever tried to help!!!
Go do your trolling at the wxWidgets forum!!

Tim S.
Calling me a troll wasn´t helpfull, however we both have comunication problem, it´s really hard for me to understand what you asking and you seems to have the same problem.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: wxWidget with codeblocks problem
« Reply #34 on: April 05, 2017, 06:06:15 pm »
To the OPT (Original Posting Troll)

You NEED to read and follow the rules!!! http://forums.codeblocks.org/index.php/topic,9996.0.html

You NEED to learn how to ask a smart Question! http://www.catb.org/esr/faqs/smart-questions.html

You NEED to learn to tell the truth!!

You lied about building on the command line!!!

Using a batch file is NOT building on the command line.

YOU NEED TO POST THE ERROR you are getting on the wxWidgets forum.

And, you need to stop wasting everyone's time on this website.

Go way Troll.

Tim S.


« Last Edit: April 05, 2017, 06:12:15 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: wxWidget with codeblocks problem
« Reply #35 on: April 05, 2017, 06:46:50 pm »
To the OPT (Original Posting Troll)

You NEED to read and follow the rules!!! http://forums.codeblocks.org/index.php/topic,9996.0.html

You NEED to learn how to ask a smart Question! http://www.catb.org/esr/faqs/smart-questions.html

You NEED to learn to tell the truth!!

You lied about building on the command line!!!

Using a batch file is NOT building on the command line.

YOU NEED TO POST THE ERROR you are getting on the wxWidgets forum.

And, you need to stop wasting everyone's time on this website.

Go way Troll.

Tim S.
Tim please calm down.
There is no need to be so aggressive.
Just ignore this thread (and similar).

It's okay to tell the posters to follow the rules, but please stop to be offending in any case.

Why can't you believe, that not everybody in  the world speaks (reads,writes) english as good as native speakers.

Did you ever try to communicate with the help of web-translators, especially if you (try to) talk about stuff not so well know by the translation engine ?

I did and it can be really funny (or annoying).

Whatsoever, please be less aggressive in the future, or you might get banned for a while.



Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: wxWidget with codeblocks problem
« Reply #37 on: April 05, 2017, 07:52:43 pm »
Quote
The following post, "Re: wxWidget with codeblocks problem" by jens has been reported by stahta01 on a board you moderate:

The topic: http://forums.codeblocks.org/index.php?topic=21840.msg148728#msg148728
Moderation center: http://forums.codeblocks.org/index.php?action=moderate;area=reports;report=20

The reporter has made the following comment:
I asked that this thread be locked You all ignored me; I will now ignore you!

Tim why do you communicate this way ?
Do you really think this is the correct way ?
If you would be honest to yourself, you would see, that many of your posts sound unnecessary agressive.

And if you feel ignored, because a topic does not get closed, because you want it, it's your problem.
As I wrote before: just ignore such threads.

Your help is really appreciated, but if you can't help, because the OP does not give the information you need, just leave the thread (with or without a comment).

Being offending and aggressive violates the rules in almost all forums as well as some questions do here.
But again, this forum has moderators and administrators and it's "their job" to lock threads or ban users.
And until now it has worked quite well, as far as I know.

And, you need to stop wasting everyone's time on this website.

At the moment you waste my time for nothing.

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #38 on: April 06, 2017, 04:36:08 pm »
To the OPT (Original Posting Troll)

You NEED to read and follow the rules!!! http://forums.codeblocks.org/index.php/topic,9996.0.html

You NEED to learn how to ask a smart Question! http://www.catb.org/esr/faqs/smart-questions.html

You NEED to learn to tell the truth!!

You lied about building on the command line!!!

Using a batch file is NOT building on the command line.

YOU NEED TO POST THE ERROR you are getting on the wxWidgets forum.

And, you need to stop wasting everyone's time on this website.

Go way Troll.

Tim S.
Tim please calm down.
There is no need to be so aggressive.
Just ignore this thread (and similar).

It's okay to tell the posters to follow the rules, but please stop to be offending in any case.

Why can't you believe, that not everybody in  the world speaks (reads,writes) english as good as native speakers.

Did you ever try to communicate with the help of web-translators, especially if you (try to) talk about stuff not so well know by the translation engine ?

I did and it can be really funny (or annoying).

Whatsoever, please be less aggressive in the future, or you might get banned for a while.
Thanks, have already apolgies, was really not my goal to troll somebody here. At least somebody understands how hard is to comunicate in a language that´s not yours.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: wxWidget with codeblocks problem
« Reply #39 on: April 07, 2017, 12:48:58 am »
Quote
Thanks, have already apolgies, was really not my goal to troll somebody here. At least somebody understands how hard is to comunicate in a language that´s not yours.
Honestly? tim wanted to know your filenames and you refuse since x posts to give them. And we told you 10 times that in the post you showed the files there are some missing.

If you still have the problem: http://forums.codeblocks.org/index.php/topic,21867.0.html
if this does not help, answer the questions (filenames, error messages...) otherwise i will, like tim, refuse to help you (because i can't help you without information from your side)...

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: wxWidget with codeblocks problem
« Reply #40 on: April 07, 2017, 11:48:31 am »
If you still have the problem: http://forums.codeblocks.org/index.php/topic,21867.0.html

BlueHazzard, there is a typo in your comprehensive guide that should be edited in order to avoid future problems: -fno-keep-inlline-dllex should be -fno-keep-inlline-dllexport

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: wxWidget with codeblocks problem
« Reply #41 on: April 07, 2017, 12:52:08 pm »
fixed it, but this should go to the wiki...

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #42 on: April 07, 2017, 01:37:58 pm »
Quote
Thanks, have already apolgies, was really not my goal to troll somebody here. At least somebody understands how hard is to comunicate in a language that´s not yours.
Honestly? tim wanted to know your filenames and you refuse since x posts to give them. And we told you 10 times that in the post you showed the files there are some missing.

If you still have the problem: http://forums.codeblocks.org/index.php/topic,21867.0.html
if this does not help, answer the questions (filenames, error messages...) otherwise i will, like tim, refuse to help you (because i can't help you without information from your side)...
Which filenames? I have posted all filenames generated after building in post #6. If he meaned other filenemes, I asked him which ones, but instead of answering that he called me a troll.
I have to stres out once again, that I have problems with the US language and I also never had to build anithing on comandline, so not familiar with that stuff. For me personal there is no much diference between comandline and bat file, as bat file is just a tool making worcking with comandline easier.
However that CXXFLAGS="-fno-keep-inlline-dllexport -std=gnu++11" was not in the wiki I read, the exact comandline from that wiki you can see in post #2. So will se if adding that stuff to that comandline will solve the problem.
« Last Edit: April 07, 2017, 01:42:14 pm by gtafan »

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: wxWidget with codeblocks problem
« Reply #43 on: April 07, 2017, 03:04:45 pm »
Ok, one last time:
In post #6:
Quote
Here the path:

but it can´t be the problem, because wrong path would show an error mesage just after this dialog.
My options look like that:

Just for fun have tried all posible combinations, but always got exactlly the same error.

The lib folder looks like that:
and the gcc_lib:

Posibly some .a files are mising?
you posted a image with the files:
Code
libwxexpat.a
libwxjpeg.a
libwxpng.a
libwxregexu.a
libwxsintilla.a
libwxtiff.a
libwxzlib.a
Now we told you like 1000 times that your wxWidgets build failed and for this you are missing some libraries:
Quote
There are two missing libraries, libwxmsw30u.a and libwxmsw30u_gl.a.

You should call again the compilation command and look for compilation errors (one frequent error with monolithic builds is related to memory starvation in ld).
after this nothing productive happened... You whined about how complicated all this is, we whined how you can not simply post the error messages you get. After this we thought you have successfully build wxWidgets and so we asked if you can post the filenames again, but you told us that you have posted them in #6 and we told you that this is not the case and so on and so on... BlaBlaBlaBla...

Simply follow the steps from the other link and if you hit a error post a screenshot of the error here....



Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #44 on: April 08, 2017, 01:26:35 pm »
Problem solved, it was all because of wrong comandline, the corect one is:

mingw32-make -f makefile.gcc BUILD=release MONOLITHIC=1 UNICODE=1 SHARED=0 CXXFLAGS="-std=gnu++11 -fno-keep-inline-dllexport"

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #45 on: April 10, 2017, 01:34:15 pm »
Ok, one last time:
In post #6:
Quote
Here the path:

but it can´t be the problem, because wrong path would show an error mesage just after this dialog.
My options look like that:

Just for fun have tried all posible combinations, but always got exactlly the same error.

The lib folder looks like that:
and the gcc_lib:

Posibly some .a files are mising?
you posted a image with the files:
Code
libwxexpat.a
libwxjpeg.a
libwxpng.a
libwxregexu.a
libwxsintilla.a
libwxtiff.a
libwxzlib.a
Now we told you like 1000 times that your wxWidgets build failed and for this you are missing some libraries:
Quote
There are two missing libraries, libwxmsw30u.a and libwxmsw30u_gl.a.

You should call again the compilation command and look for compilation errors (one frequent error with monolithic builds is related to memory starvation in ld).
after this nothing productive happened... You whined about how complicated all this is, we whined how you can not simply post the error messages you get. After this we thought you have successfully build wxWidgets and so we asked if you can post the filenames again, but you told us that you have posted them in #6 and we told you that this is not the case and so on and so on... BlaBlaBlaBla...

Simply follow the steps from the other link and if you hit a error post a screenshot of the error here....
No meter what I did, always got the same result as in post #6, the comandline was wrong, or to be more precise incomplete. Like somebody mentioned here, 2 .a files were mising, but instead of telling that, the CB wizard tolld me something about wrong configuration, which was really iritating.
The really anoing thing about comandline is not the fact I have to use it, but the time it takes to build. Hope I was able to make ewerithing clear.

Offline gtafan

  • Almost regular
  • **
  • Posts: 126
Re: wxWidget with codeblocks problem
« Reply #46 on: December 25, 2022, 05:38:16 pm »
Is it not posible just simply to open the make file from wxWidgets in CB like it can be done wit VS or DevCpp makefiles?