User forums > Help

fatal error: wx/wxprec.h: No such file or directory

(1/1)

Landslyde:
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?

stahta01:
Does the command work from the command line?

--- Code: ---wx-config --list

--- End code ---

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.

Landslyde:
It's fixed. Thanks for your help, stahta01.

Navigation

[0] Message Index

Go to full version