Code::Blocks Forums

User forums => Help => Topic started by: TonyP on December 06, 2023, 03:46:25 pm

Title: Getting wxWidgets to work
Post by: TonyP on December 06, 2023, 03:46:25 pm
Hi all, looking for some help getting wxWidgets to work.  Frankly, I'm having a horrible time with it.  Using GCC compiler and have wxWidgets installed (I think).  Clicking compile gives me an error:

C:\wxWidgets\include\wx\platform.h|183|fatal error: wx/setup.h: No such file or directory|

Double clicking on the error in the build messages, takes me to the offending line in "platform.h".

there is indeed no setup.h in wx but I have a setup.h file in msvc/wx/setup.h, should I simply copy this to the wx directory?  Or should I edit the platform.h file to refer instead to the msvc/wx directory?


Title: Re: Getting wxWidgets to work
Post by: stahta01 on December 06, 2023, 03:54:26 pm
You likely need to build wxWidgets or download an already built wxWidgets.

Tim S.
Title: Re: Getting wxWidgets to work
Post by: Grit Clef on December 07, 2023, 04:44:06 am
MSVC's setup.h can't be used in GCC compiler.
Title: Re: Getting wxWidgets to work
Post by: PB on December 07, 2023, 12:29:13 pm
The OP just needs to read the official wxWidgets docs to learn how to build and use it.

The setup.h is error is even in the FAQ.

FWIW, I have written a whole guide on how to build wxWidgets with GCC and use in Code::Blocks: https://github.com/PBfordev/wxpbguide