wxWidgets Here

1) install git clone from git hub the recent version
cd ~/wx/wxWidgets-3.1.3     
mkdir gtk-build             # the name is not really relevant
cd gtk-build
../configure                # builds unicode, shared lib
make -j3                    # use 3 cores. Set to the number of cores your have. 'make' uses 1 core
sudo make install           # some platforms require to use 'su' instead of 'sudo'
sudo ldconfig               # not required in each system

wxWidgets: wxWidgets for GTK installation

2) wx-congfig --version

impwxWidgetsSinceAug_2022/menu$ wx-config --version
3.3.0
3) menu.cpp ,menu.h main.cpp ,main.h in here

Menus and toolbars in wxWidgets

 g++ main.cpp main.h menu.cpp menu.h `wx-config --cxxflags --libs` -o outmenu
 


版权声明:本文为liufengl138原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。