Author Topic: Getting wxWidgets to work  (Read 1309 times)

Offline TonyP

  • Single posting newcomer
  • *
  • Posts: 1
Getting wxWidgets to work
« 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?



Offline stahta01

  • Lives here!
  • ****
  • Posts: 7626
    • My Best Post
Re: Getting wxWidgets to work
« Reply #1 on: December 06, 2023, 03:54:26 pm »
You likely need to build wxWidgets or download an already built wxWidgets.

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 Grit Clef

  • Multiple posting newcomer
  • *
  • Posts: 69
  • Where there is a will, there is a way.
Re: Getting wxWidgets to work
« Reply #2 on: December 07, 2023, 04:44:06 am »
MSVC's setup.h can't be used in GCC compiler.
-Windows 7, 32-bit
-CodeBlocks r13531, gcc 14.1.0, debug version

Offline PB

  • Multiple posting newcomer
  • *
  • Posts: 60
Re: Getting wxWidgets to work
« Reply #3 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