News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

fatal error: wx/wxprec.h

Started by smartes, October 12, 2021, 03:30:31 PM

Previous topic - Next topic

smartes

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.

sodev

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?

smartes

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

AndrewCot

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.

smartes

Quote from: 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.

Usually, it works. But Wiki now shows 502 Bad Gateway.

AndrewCot

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