如果 gtk 没有正确的子文件夹,我如何在 Code::Blocks 中设置 GTK+ 项目?
How can I set up a GTK+ Project in Code::Blocks if gtk doesn't have the right subfolders?
我正在关注这个 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。在执行第 3 步并提供位置 GTK 的路径时,出现此错误:
The path you entered seems valid, but the wizard can't locate the
include directory. The wizard cannot continue.
当我回顾存储库时,我发现没有创建项目所需的 "include" 或 "lib" 子文件夹。如果这两个文件夹都不存在,我该如何设置项目?我意识到该教程是在 2013 年编写的,所以它可能已经过时了。有 2015 年的 YouTube tutorial 关于设置它,但是设置环境变量和更改 Code::Blocks "Global Compiler Settings" 似乎更复杂,所以我想知道这个 2013 年的教程是否仍然有效。
该教程中有很多过时的信息。它推荐 GTK+2,GTK+ 现在是版本 3,正在升级到版本 4,您可能希望按照 GTK 的方法进行安装和设置,而不是让自己围绕 Code::Blocks.
我的建议是遵循 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 需要做多少工作,您可以考虑使用不同的 IDE。
我正在关注这个 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。在执行第 3 步并提供位置 GTK 的路径时,出现此错误:
The path you entered seems valid, but the wizard can't locate the include directory. The wizard cannot continue.
当我回顾存储库时,我发现没有创建项目所需的 "include" 或 "lib" 子文件夹。如果这两个文件夹都不存在,我该如何设置项目?我意识到该教程是在 2013 年编写的,所以它可能已经过时了。有 2015 年的 YouTube tutorial 关于设置它,但是设置环境变量和更改 Code::Blocks "Global Compiler Settings" 似乎更复杂,所以我想知道这个 2013 年的教程是否仍然有效。
该教程中有很多过时的信息。它推荐 GTK+2,GTK+ 现在是版本 3,正在升级到版本 4,您可能希望按照 GTK 的方法进行安装和设置,而不是让自己围绕 Code::Blocks.
我的建议是遵循 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 需要做多少工作,您可以考虑使用不同的 IDE。