You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ # you must be in the top-level libui directory, otherwise this won't work
$ mkdir build
$ cd build
$ cmake ..
$ make
$ make tester # for the test program
$ make examples # for examples
执行cmake时报错,相关信息如下:
-- No package 'gtk+-3.0' found
CMake Error at /usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:367 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPkgConfig.cmake:532 (_pkg_check_modules_internal)
unix/CMakeLists.txt:4 (pkg_check_modules)
libui是一个简单易用的C语言GUI库。
1. 编译libui
(1) 从官网下载libui的源码
下载地址:https://github.com/andlabs/libui
(2) 根据README的说明进行构建
执行cmake时报错,相关信息如下:
解决方法为安装libgtk,即:
编译完成后,生成的共享库位于
build/out
目录。2. 编写测试代码
代码如下:
编译、运行:
效果如下:
The text was updated successfully, but these errors were encountered: