Hi. First of all I would like to say I visited this and many other forums to try and fix this issue, to no avail.
Recently I updated my whole system to the newest software. That includes wxWidgets, codeblocks etc.
The problem is that I use real time charting tool called wxFreeChart which has long but abandoned support.
wxFreeChart uses gtk2 so I was forced to install wxWidgets with gtk2 as well(tried both versions 2.8.12 and 3.0.5 of wxWidgets with gtk2).
I have ran into difficulties using the 20.03 codeblocks version with gtk2 so I tried version 17.12-1 which didn't let me install it's .deb files.
Now I am trying to use Code::Blocks version 16.01-release with wxWidgets version 3.0.5 with gtk2. I installed wxWidgets like so:
../configure --with-gtk=2 --enable-monolithic
make -j4
sudo make install
sudo ldconfig
Then I tried installing Code::Blocks 16.01 like this:
export CXXFLAGS="-std=c++11"
export ACLOCAL_FLAGS="-I `wx-config --prefix`/share/aclocal"
./bootstrap
./configure --prefix=/usr --with-contrib-plugins=all,-help
make
"make" gives me and
error ./sdk_common.h:37:10: fatal error: wx/wxprec.h: No such file or directory
I should note I do have wxprec.h under /usr/include/wx-3.0/wx
shows:
and,
shows:
Default config is gtk2-unicode-3.0
Default config will be used for output
Alternate matches:
gtk3-unicode-3.1
gtk3-unicode-static-3.1
Also available in /usr/local:
gtk2-unicode-release-2.8
In summary: I'm trying to build and install Code::Blocks with gtk2 so my system could work with older software(wxFreeCharts) but am unable to compile from source.