From https://wiki.wxwidgets.org/Compiling_an ... ng_started
Code: Select all
cd /path/to/wxWidgets-3.0.4
mkdir gtk-build
cd gtk-build
../configure
make
sudo make install
cd gtk-build/samples/minimal
make
./minimal
Now I want to compile my own C project in /path/to/wxWidgets-3.0.4/gtk-build/projects/frame/frame.c .
Code: Select all
cd /path/to/wxWidgets-3.0.4/gtk-build/projects/frame
g++ frame.c 'wx-config --cxxflags --libs' -o frametest
g++: error: wx-config --cxxflags --libs: No such file or directory
cd /path/to/wxWidgets-3.0.4/gtk-build
g++ ./projects/frame/frame.c 'wx-config --cxxflags --libs' -o frametest
g++: error: wx-config --cxxflags --libs: No such file or directory
It is a pity "Compiling_and_getting_started" doesn't give one example of this.
I have tried using CodeLite and Code::Blocks IDEs and there is so much set up by default that I can't follow it.