Code::Blocks Forums

User forums => Help => Topic started by: smartes on October 12, 2021, 03:30:31 pm

Title: fatal error: wx/wxprec.h
Post by: smartes on October 12, 2021, 03:30:31 pm
Hi!
For some reasons I cannot compile the C::B from source.
I downloaded C::B20.03, next I /configure --prefix=/usr --with-contrib-plugins=all. And after make I got fatal error: wx/wxprec.h no such file. which package it needs.

OS Ubuntu 21.
Title: Re: fatal error: wx/wxprec.h
Post by: sodev on October 12, 2021, 03:56:15 pm
First, VERY BAD IDEA to use the prefix /usr, use at least /usr/local. Second, do you have wxWidgets dev packages installed? What does wx-config --list output?
Title: Re: fatal error: wx/wxprec.h
Post by: smartes on October 13, 2021, 10:34:32 am
OK. I agree /usr not the best location.
However wx-config --list gives

wx-config --list

    Default config is gtk3-unicode-3.1-unofficial

  Default config will be used for output

  Alternate matches:
    base-unicode-3.1-unofficial
Title: Re: fatal error: wx/wxprec.h
Post by: AndrewCot on October 13, 2021, 11:13:13 am
I suggest you start with the WIKI and read the pages about building C::B from source on Linux.

I also suggest NOT using CodeLite unofficial wxwidget library releases as a starting point. Later after you have built C::B a few times from source then give it a go.
Title: Re: fatal error: wx/wxprec.h
Post by: smartes on October 13, 2021, 11:36:55 am
I suggest you start with the WIKI and read the pages about building C::B from source on Linux.

Usually, it works. But Wiki now shows 502 Bad Gateway.
Title: Re: fatal error: wx/wxprec.h
Post by: AndrewCot on October 14, 2021, 01:49:40 am
Try the following archvie.org C::B snapshot from last year:

https://web.archive.org/web/20200205131212/http://wiki.codeblocks.org/index.php/Main_Page