如果gtk没有正确的子文件夹,如何在Code :: Blocks中设置GTK +项目? [英] How can I set up a GTK+ Project in Code::Blocks if gtk doesn't have the right subfolders?

查看:181
本文介绍了如果gtk没有正确的子文件夹,如何在Code :: Blocks中设置GTK +项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循这个教程

I'm following this tutorial on how to set up a GTK+ project on Code::Blocks 16.01. The link in Step 1 to download GTK+ doesn't work, so I instead did a "Open in Desktop" from the Gtk Github repository. When doing Step 3 and giving the path for the location GTK, I get this error:


您输入的路径似乎有效,但向导找不到
include目录。

The path you entered seems valid, but the wizard can't locate the include directory. The wizard cannot continue.

当我回顾存储库时,发现没有include或lib子文件夹是制作这个项目所需要的。如果这两个文件夹都不存在,我可以做些什么来设置项目?我意识到这个教程是在2013年写的,所以也许已经过时了。有关于设置此功能的2015 YouTube YouTube 教程,但设置起来似乎更复杂环境变量和更改Code :: Blocks全局编译器设置,所以我想知道这个2013教程是否仍然有效。

When I look back at the repository, I see there is no "include" or "lib" subfolder that is needed to make the project. What can I do to setup the project if neither of those folders exist? I realize the tutorial was written in 2013, so maybe it's outdated. There is a 2015 YouTube tutorial about setting this up, but it seems more complicated with setting up environment variables and changing Code::Blocks "Global Compiler Settings", so I was wondering if this 2013 tutorial still works.

推荐答案

该教程中有很多过时的信息。它建议GTK + 2,GTK +现在在版本3上,移动到4,你可能想要遵循GTK的安装和设置方法,而不是围绕Code :: Blocks定位。

That tutorial has a lot of outdated info in it. It recommends GTK+2, GTK+ is now at version 3, moving on to 4, and you'll probably want to follow GTK's methods for installing and setting up instead of orienting yourself around Code::Blocks.

我的建议是遵循 GTK +下载说明说明关于如何设置以及这些关于如何开始的说明,然后开始使用Code :: Blocks(为此您可能需要查看)。

My recommendation would be to follow the GTK+ download instructions and the instructions on how to set it up and maybe these instructions on how to start, then begin making it work with Code::Blocks (for which you probably need to look at this question).

另外,无论如何,为GTK + 3设置Code :: Blocks需要花费多少功夫,你可以考虑使用usi不同的IDE。

Also, with how much work it takes to set up Code::Blocks for GTK+3 anyway, you may consider using a different IDE.

这篇关于如果gtk没有正确的子文件夹,如何在Code :: Blocks中设置GTK +项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆