Author Topic: fatal error: wx/wxprec.h: No such file or directory  (Read 524 times)

Offline Landslyde

  • Multiple posting newcomer
  • *
  • Posts: 43
fatal error: wx/wxprec.h: No such file or directory
« on: April 10, 2018, 01:51:19 am »
My old laptop finally bit the dust and I got an svn build of C::B from https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks.  This is the same I was using before my Sony VAIO blew a fuse.  But now I have this error when I try to compile a GUI. 

I've sudo apt-get install libwxgtk3.0-dev, but that didn't work. When I got C::B from that site before, it worked out of the box. I didn't have to add anything.  But I had to add all of this this time:
sudo apt install codeblocks-wxcontrib-headers codeblocks-contrib codeblocks-libwxcontrib0

So what now?
Linux Mint 18.3
Code::Blocks 17.12
G++ 8.0

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6252
    • My Best Post
Re: fatal error: wx/wxprec.h: No such file or directory
« Reply #1 on: April 10, 2018, 02:04:05 am »
Does the command work from the command line?
Code: [Select]
wx-config --list

If it does, post what wx configs it lists.

If it does not, you need to fix it.

Note: After fixing it you likely will need to re-start code::blocks to get C::B to see the change.

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

Offline Landslyde

  • Multiple posting newcomer
  • *
  • Posts: 43
Re: fatal error: wx/wxprec.h: No such file or directory
« Reply #2 on: April 10, 2018, 08:38:30 am »
It's fixed. Thanks for your help, stahta01.
Linux Mint 18.3
Code::Blocks 17.12
G++ 8.0