当前位置:网站首页>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/
边栏推荐
- 2022年7月深圳地区CPDA数据分析师认证
- 【postgres】postgres 数据库迁移
- Cmake tutorial series-03-dependency management
- Global and Chinese markets of liquid optical waveguides 2022-2028: Research Report on technology, participants, trends, market size and share
- Lua 基础知识
- Jupyter notebook显示k线图集合
- 备忘一下es6的export/import和类继承的用法
- What files does a CA digital certificate contain? How to view SSL certificate information?
- [Postgres] Postgres database migration
- (图论) 连通分量(模板) + 强连通分量(模板)
猜你喜欢

Wechat applet page Jump and parameter transfer

Precautions for purchasing wildcard SSL certificate

2. < tag dynamic programming and 0-1 knapsack problem > lt.416 Split equal sum subset + lt.1049 Weight of the last stone II

Pytoch learning (II)

NPDP产品经理国际认证考试报名有什么要求?

Intel-Hex , Motorola S-Record 格式详细解析

Two methods of SSL certificate format conversion

Detailed explanation of minimum stack

Unity TimeLine 数据绑定

Linear algebra Chapter 4 Summary of knowledge points of linear equations (Jeff's self perception)
随机推荐
Creating exquisite skills in maker Education
CMake教程系列-02-使用cmake代碼生成二進制
What is the concept of string in PHP
Network neuroscience -- a review of network Neuroscience
FAQs for code signature and driver signature
Cmake tutorial series-01-minimum configuration example
2022护网行动在即,关于护网的那些事儿
Sitelock nine FAQs
C语言 pivot_root的Invalid argument错误解决方案
备忘一下es6的export/import和类继承的用法
Redis+AOP怎么自定义注解实现限流
Software testing skills, JMeter stress testing tutorial, transaction controller of logic controller (25)
[dry goods sharing] the latest WHQL logo certification application process
学术汇报(academic presentation)/PPT应该怎么做?
What is certificate transparency CT? How to query CT logs certificate logs?
原生JS怎么生成九宫格
Precautions for purchasing wildcard SSL certificate
Raki's notes on reading paper: named entity recognition as dependency parsing
Global and Chinese market of subscription revenue management software 2022-2028: Research Report on technology, participants, trends, market size and share
How to switch ipykernel to a different CONDA virtual environment in jupyterlab?