gtk-config确实问题的解决

本文介绍了GTK1.1时代使用gtk-config进行配置的方法,并对比GTK+2.0采用pkg-config配置所带来的变化。对于系统默认安装GTK+2.0导致无法编译旧版软件的问题,文章提供了安装gtk-config及手动创建脚本的解决方案。
部署运行你感兴趣的模型镜像

gtk1.1时代使用gtk-config来配置的 gtk+2.0则用pkg-config来配置,所以如果系统默认安装了gtk+2.0将无法编译一些旧的软件

 

 

 

 

 

 

gtk-config属于包libgtk1.2-dev

可以使用以下命令安装

sudo apt-get install libgtk1.2-dev

 

如果无法安装,则添加一个脚本

sudo nano  /usr/bin/gtk-config

#!/bin/sh
module="gtk+-2.0"
if test "$1" = "--version"; then
        pkg-config --modversion $module
else
        pkg-config $* $module
fi

 

sudo chmod +x /usr/bin/gtk-config

 搞定

 

 

 

 

您可能感兴趣的与本文相关的镜像

Stable-Diffusion-3.5

Stable-Diffusion-3.5

图片生成
Stable-Diffusion

Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率

admin01@admin01-VirtualBox:~/桌面/OPENCV/demo/build$ ./testimage ./out.png Gtk-Message: 20:25:44.426: Failed to load module "gail" Gtk-Message: 20:25:44.426: Failed to load module "atk-bridge" (testimage:3791): Gtk-WARNING **: 20:25:44.450: 无法在模块路径中找到主题引擎:“adwaita”, (testimage:3791): Gtk-WARNING **: 20:25:44.450: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.451: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.451: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.451: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.451: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.451: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.451: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.452: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.452: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.452: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.452: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.452: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.452: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.452: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.452: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.452: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.452: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.452: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.453: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.453: 无法在模块路径中找到主题引擎:“pixmap”, (testimage:3791): Gtk-WARNING **: 20:25:44.454: 无法在模块路径中找到主题引擎:“adwaita”, Gtk-Message: 20:25:44.457: Failed to load module "canberra-gtk-module" Showing image. Press any key in the window to exit.
最新发布
10-04
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值