News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Getting wxWidgets to work

Started by TonyP, December 06, 2023, 03:46:25 PM

Previous topic - Next topic

TonyP

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?



stahta01

You likely need to build wxWidgets or download an already built wxWidgets.

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

Grit Clef

MSVC's setup.h can't be used in GCC compiler.
-Windows 7, 32-bit
-CodeBlocks r13542, gcc 14.2.0, debug version

PB

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
[url="https://github.com/PBfordev/wxpbguide"]https://github.com/PBfordev/wxpbguide[/url]