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

Landslyde

  • Guest
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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • 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
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 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Landslyde

  • Guest
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.