What is the right way to install wxWidgets with codeblocks Topic is solved

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: What is the right way to install wxWidgets with codeblocks

Post by sly_chandan »

Yep!

I got that fixed with compiling again.

I just dont want to get stuck on this compilation process again.

Thanks.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: What is the right way to install wxWidgets with codeblocks

Post by ONEEYEMAN »

Hi,
You are missing the point.
Why did you want to play with the different compilers and their different vetrsions in the first place?
As I said - unless you want a different C++ standard you shouldn't be playing with different versions of C++ compilers - they are all ABI-compatible.

Thank you.
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: What is the right way to install wxWidgets with codeblocks

Post by sly_chandan »

I actually don't understand all this process of compilation.

It just is confusing.

First we compile the wxwidgets library.
Then we build the project and compile the project.

Then we can link up different compilers if we would like to.

What is the point of all this process?

Could you please explain me the above process?
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: What is the right way to install wxWidgets with codeblocks

Post by sly_chandan »

Can you help me dig deeper in actually understanding how to compile this wxwidgets library?

I have read the book Compilers 2e by Aho.


I know what the compiler is actually meant for. It converts high level language to lower level language.

Can I help in development work of wxwidgets?

Can I understand the gcc compiler?

Can I actually do something in this community?
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: What is the right way to install wxWidgets with codeblocks

Post by PB »

In fact, it is as simple as:
1. Select a compiler that matches your needs and is supported by the libraries your application requires.
2. Build the library and your application with the compiler selected in #2.

Your problems were:
1. Choosing the compiler which is known to be problematic.
2. Following the outdated build guide.
3. Ignoring advice given on forum.

BTW, I assume there is a typo and this
ONEEYEMAN wrote: Tue Mar 02, 2021 4:15 pm As I said - unless you want a different C++ standard you shouldn't be playing with different versions of C++ compilers - they are all ABI-compatible.
should actually be "....are NOT ABI-compatible.". Once you select a compiler, you must stick with it. I believe that binary compatibility is rare. Not only are different compilers incompatible, even the same versions of the compiler are.
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: What is the right way to install wxWidgets with codeblocks

Post by sly_chandan »

Can I learn the compilation process of the gcc or wxwidgets library?
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: What is the right way to install wxWidgets with codeblocks

Post by PB »

Yes, you can. I am not smart yet I am sufficiently knowledgeable about that, so I think anyone can.

The official wxWidgets documentation provides information needed to build wxWidets. My guide, which you did not like, goes into some more detail. If you want to know more about GCC itself, you need to study its documentation. There is no magic, just effort and time needed.
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: What is the right way to install wxWidgets with codeblocks

Post by sly_chandan »

What are you talking about?


How can I dig deeper with wxwidgets library?
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: What is the right way to install wxWidgets with codeblocks

Post by ONEEYEMAN »

Hi,
@sly_chandan,
What is you end goal? Do you want to do Software Development, further develop wxWidgets library to help improve it or you want to become a system developer and work for M$ improving Windows or MSVC.

Also, what kind of experience do you have working as a developer? Out of college? Have some development experience?

@PB,
That was not a typo. I meant to say that MinGW/gcc versions are ABI-compatible and all MSVC versions are.
Of course there is no compatibility between MSVC and MinGW/gcc. But that is irrelevant here since the OP wanted to play with the different versions of the same compiler.
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: What is the right way to install wxWidgets with codeblocks

Post by PB »

sly_chandan wrote: Tue Mar 02, 2021 5:12 pm What are you talking about?
Obviously I am answering your
sly_chandan wrote: Tue Mar 02, 2021 5:02 pm Can I learn the compilation process of the gcc or wxwidgets library?
sly_chandan wrote: Tue Mar 02, 2021 5:12 pm How can I dig deeper with wxwidgets library?
What are you talking about?

Do you think the process with wxWidgets is different than with other similar libraries, i.e.:
1. Read the documentation.
2. Write the code using the library to familiarize yourself with the library.
3. Read the library source to understand what is going under the hood.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: What is the right way to install wxWidgets with codeblocks

Post by ONEEYEMAN »

Hi,
@OP:
Unless you want to become a compiler developer, you shouldn't think about that too much.
But that brings us to my previous post - what is your end goal.

Thank you.
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: What is the right way to install wxWidgets with codeblocks

Post by PB »

ONEEYEMAN wrote: Tue Mar 02, 2021 5:19 pm
That was not a typo. I meant to say that MinGW/gcc versions are ABI-compatible and all MSVC versions are.
Of course there is no compatibility between MSVC and MinGW/gcc.
AFAIK, MinGW/GCC are certainly not binary compatible between versions or even distributions (e.g., different exception handling). I did even experience runtime crashes when a compiler DLL with the same name was in PATH but the executable was built with different GCC version.

MSVC is binary compatible only for 2015, 2017, and 2019 versions. But even there are gotchas, see https://docs.microsoft.com/en-us/cpp/po ... w=msvc-160
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: What is the right way to install wxWidgets with codeblocks

Post by sly_chandan »

I really am good with Higher Level Languages.

But when it gets down to understanding the libraries like .Net, wxWidgets, I never have entered into this arena.

Will reading wxWidgets library help me understand and further do something with the library?

Can I understand the gcc compiler? If yes then how should I begin with it.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: What is the right way to install wxWidgets with codeblocks

Post by ONEEYEMAN »

Hi,
Unless you want to become a compiler developer you don't want to bother with gcc.
And yes - reading the docs and the code will help. You can also build and run different samples provided by wxWidgets.

If you get a problem - post here and someone will be able to help.

But first - try to understand it yourself.

BTW, there is nothing wrong by being a good "High Level" developer. ;-)

Thank you.
sly_chandan
Earned some good credits
Earned some good credits
Posts: 116
Joined: Fri Sep 25, 2015 2:33 pm

Re: What is the right way to install wxWidgets with codeblocks

Post by sly_chandan »

Yes I would like to be a compiler developer.

How should I begin with it?
Post Reply