GUI 应用程序的跨平台 C 库? [英] Cross Platform C library for GUI Apps?

查看:38
本文介绍了GUI 应用程序的跨平台 C 库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

免费、易于学习/使用、GUI 应用程序的跨平台 C 库?我在找 Qt 吗?

额外问题:我可以在 Mac 上使用上述库/工具包进行开发,然后在 PC/Linux 上重新编译吗?

超级奖励问题:链接到教程和/或下载所述库.

事实是,我正在追赶 C 系列(来自 Web 开发 - XHTML/PHP/MySQL)以学习 iPhone 开发.

我确实明白 C 不是 C++ 或 ObjectiveC,但我想让学习曲线尽可能简单.不要太离题,但我也在寻找好的入门书籍和网站.我已经找到到目前为止.

我想在这里用一颗石头杀死许多鸟.我不明白有特定于平台的扩展,但我会尽量避免那些用于移植目的这个想法是我想在一台机器上编写代码并编译三次.(Mac/Win/Linux) 如果 Objective C 可以在 Windows 和 Linux 以及 OS X 上编译,那很好.如果我必须使用 C++,那也没关系.

解决方案

如果您正在寻找 C++ 库,那么 Qt 基本上可以满足您的需求.如果你想坚持纯 C,那么 Qt 不是一个选择.

作为 C 框架,您可以使用 GTK+,它适用于 Linux、Windows 和 OS X.

Free of charge, simple to learn/use, Cross Platform C library for GUI Apps? Am I looking for Qt?

Bonus question: Can I develop with the said library/toolkit on Mac then recompile on PC/Linux?

Super Bonus Question: Link to tutorial and/or download of said library.

The truth is that I'm in the process of catching up on the C family (coming from web development - XHTML/PHP/MySQL) to learn iPhone development.

I do understand that C is not C++ or ObjectiveC but I want to keep the learning curve as simple as possible. Not to get too off topic, but I am also on the lookout for good starter books and websites. I've found this so far.

I'm trying to kill many birds with one stone here. I don understand that there are platform specific extensions, but I will try to avoid those for porting purposes The idea is that I want to write the code on one machine and just compile thrice. (Mac/Win/Linux) If Objective C will compile on Windows and Linux as well as OS X then that's good. If I must use C++, that's also fine.

解决方案

If you are looking for a C++ library, then Qt basically does what you are looking for. If you want to stick to pure C, then Qt is not an option.

As a C framework you could use GTK+, it works on Linux, Windows and OS X.

这篇关于GUI 应用程序的跨平台 C 库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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