c++跨平台ui

fltk

https://gitee.com/mirrors_fltk/fltk.git

codeblock中有fltk项目开发模板,可以快速构建项目

wxwidget

https://gitee.com/sofu456/wxWidgets.git

git submodule update --init --recursive
打开demo和sample
set(wxBUILD_SAMPLES ALL)
set(wxBUILD_DEMOS ON)
build/options.cmake文件中,设置share或者static
wx_option(wxBUILD_SHARED “Build wx libraries as shared libs” OFF)
wx_option(wxBUILD_USE_STATIC_RUNTIME “Link using the static runtime library” ON)

  • 支持xml构建ui

wxfrombuilder配置fpb文件构建UI
源码构建(github上有安装包可以下载)

find_package找不到wxwidget可以改成如下配置,指定绝对路径
set(wxWidgets_INCLUDE_DIRS E:/Opensource/wxWidgets/include)
set(wxWidgets_LIBRA

你可能感兴趣的:(框架学习,c++,ui,wxwidget)