当前位置:网站首页>GTK interface programming (I): Environment Construction
GTK interface programming (I): Environment Construction
2022-06-30 02:51:00 【EEer!】
List of articles
One 、 Environment building
1. install GNU Compile link tool
sudo apt-get install build-essential
2. install gtk3
sudo apt-get install libgtk-3-dev
3. install pkg-config For automatic discovery gtk The location of the header file
sudo apt-get install pkg-config
After installation , You can use the following command to verify that the installation was successful , And look at GTK+3.0 The path of all the included header files and libraries :
pkg-config --cflags --libs gtk+-3.0
The verification results :
4.GUI verification
Use the official example to test whether it can run
main.c The sample code is as follows :
#include <gtk/gtk.h>
int main( int argc, char *argv[])
{
GtkWidget *window;
gtk_init(&argc, &argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_show(window);
gtk_main();
return 0;
}
The compilation instructions are as follows :
sudo gcc main.c -o main `pkg-config --cflags --libs gtk+-3.0`
function :
./main
The verification results :
Two 、GTK Official documents
https://docs.gtk.org/gtk3/
边栏推荐
- oracle怎么设置密码复杂度及超时退出的功能
- How does native JS generate Jiugong lattice
- LeetCode 3. Longest substring without duplicate characters
- [论]【DSTG】Dynamic SpatiotemporalGraph Convolutional Neural Networks for Traffic Data Imputation
- How vscode debugs into standard library files / third-party package source code
- What is digicert smart seal?
- How can redis+aop customize annotations to achieve flow restriction
- Mysql表数据比较大情况下怎么修改添加字段
- 多卡服务器使用
- Enlightenment from the revocation of Russian digital certificate by mainstream CA: upgrade the SSL certificate of state secret algorithm to help China's network security to be autonomous and controlla
猜你喜欢

Linear algebra Chapter 4 Summary of knowledge points of linear equations (Jeff's self perception)

Call collections Sort() method, compare two person objects (by age ratio first, and by name ratio for the same age), and pass lambda expression as a parameter.

Software testing skills, JMeter stress testing tutorial, transaction controller of logic controller (25)

2.< tag-动态规划和0-1背包问题>lt.416. 分割等和子集 + lt.1049. 最后一块石头的重量 II

最小栈详解

Pytoch learning (II)

VScode如何Debug(调试)进入标准库文件/第三方包源码

【postgres】postgres 数据库迁移

三层交换机和二层交换机区别是什么

Cmake tutorial series -02- generating binaries using cmake code
随机推荐
Three solutions to forced hibernation of corporate computers
Wechat applet page Jump and parameter transfer
Five cheapest wildcard SSL certificate brands
How to modify and add fields when MySQL table data is large
Unity timeline data binding
How to use vant to realize data paging and drop-down loading
怎么使用Vant实现数据分页和下拉加载
Linear algebra Chapter 3 summary of vector and vector space knowledge points (Jeff's self perception)
2.< tag-动态规划和0-1背包问题>lt.416. 分割等和子集 + lt.1049. 最后一块石头的重量 II
Cmake tutorial series-01-minimum configuration example
HTA入门基础教程 | VBS脚本的GUI界面 HTA简明教程 ,附带完整历程及界面美化
How to switch ipykernel to a different CONDA virtual environment in jupyterlab?
Recursion frog jumping steps problem
重看《Redis设计与实现》后记录几个要点
High paid programmers & interview questions series 63: talk about the differences between sleep (), yield (), join (), and wait ()
可视化HTA窗体设计器-HtaMaker 界面介绍及使用方法,下载 | HTA VBS可视化脚本编写
Heavy attack -- ue5's open source digital twin solution
Matlab code running tutorial (how to run the downloaded code)
IBM WebSphere channel connectivity setup and testing
Distributed file system fastdfs