便携式 C++集成开发环境

发布于 2024-08-30 05:56:10 字数 1536 浏览 3 评论 0 原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

不打扰别人 2024-09-06 05:56:10

如果您想编写跨平台 GUI 程序,Qt Creator 是一个不错的选择。
Qt 是一个优秀的跨平台 GUI 库。

Qt Creator is a good choice if you want to code cross platform GUI programs.
Qt is an excellent cross platform GUI library.

不疑不惑不回忆 2024-09-06 05:56:10

bash shell(及其工具)+ vim + cmake + Mercurial = 爱。 Bash 可在所有流行平台上使用,甚至是 Windows

p.s.,我忘记了 gdb + ddd。

The bash shell (and it's tools) + vim + cmake + mercurial = love. Bash is available on all popular platforms, even windows

p.s., I forgot gdb + ddd.

素衣风尘叹 2024-09-06 05:56:10

您指定的 IDE 都是跨平台的,可在 Windows、Mac OS X 和 Linux 上使用。也就是说,您只需要使代码跨平台(使用 BoostQt 来做到这一点)。我个人在 Mac OS X 上使用 Xcode,在 Linux 上使用 GEdit 或 Anjuta 或 KDevelop,在 Windows 上使用 Code::Blocks。您可能还对我的 C++ 应用程序项目模板C++ 库项目模板,它使用 < a href="http://www.cmake.org/" rel="nofollow noreferrer">CMake 构建系统,同时使用 Boost 和 Qt;如果您使用标志“--gui”,应用程序项目模板已经具有创建“hello world”GUI 的代码。

我还应该指出,CMake 能够为各种 IDE 生成项目文件,因此 CMake 构建的一个优点是您可以生成 makefile(默认),但您也可以生成 Visual Studio 项目 (Windows) 、KDevelop 项目 (Linux) 或 Xcode 项目 (OS X) 仅来自一个项目描述文件,允许用户使用该特定开发平台的本机 IDE。

The IDEs you named are all cross-platform and available on Windows, Mac OS X, and Linux. That said, you only really need to make your code cross-platform (use Boost and Qt to do that). I personally use Xcode on Mac OS X, GEdit or Anjuta or KDevelop on Linux, and Code::Blocks on Windows. You might also be interested in my C++ Application Project Template and C++ Library Project Template, which provide a portable cross-platform build using the CMake build system, and which uses both Boost and Qt; the application project template already has code to create a "hello world" GUI if you use the flag "--gui".

I should also point out that CMake is capable of generating project files for a wide variety of IDEs, so an advantage of a CMake build is that you can generate makefiles (the default), but you can also generate a Visual Studio project (Windows), a KDevelop project (Linux), or an Xcode project (OS X) from just the one project description file, allowing one to use the native IDE for that particular development platform.

拥抱我好吗 2024-09-06 05:56:10

您可以制作便携式NetBeans,以及代码::块GeanyDev-C++Eclipse

上述任何一个都应该能够进行 Windows GUI 或跨平台 GUI 开发,只需确保您的闪存驱动器上有所有必需库的副本即可。如果您在闪存驱动器上使用portable Cygwin,您可以包含gcc(这样您的IDE就有一个编译器以及各种 UI 库的 cygwin 版本(gtk、FLTK、wxwidgets、qt 等)。

我看到有些人采取的另一种方法是在虚拟机中加载 Linux 安装,然后将其与诸如 便携式 VirtualBox。我建议首先将其复制到硬盘驱动器,直接从闪存驱动器运行它的性能会很糟糕。

You can make a portable NetBeans, as well as Code::Blocks, Geany, Dev-C++, or Eclipse.

Any of the above should be able to do Windows GUI or cross-platform GUI development, just make sure you have a copy of all necessary libraries on your flash drive. If you use portable Cygwin on the flash drive, you can include gcc (so your IDE has a compiler as well) and the cygwin versions of a variety of UI libraries (gtk, FLTK, wxwidgets, qt, etc etc).

An alternate route that I have seen some people take is to load up a Linux installation in a virtual machine, then carry that around on the flash drive along with something like Portable VirtualBox. I would recommend copying it to the hard drive first, the performance would be terrible running it straight off the flash drive.

辞取 2024-09-06 05:56:10

你考虑过 Vim.不完全是 IDE,但您可以轻松地将版本放在一个 USB 记忆棒上,以便您可以在任何地方运行。

对于某些事情,我喜欢 Eclipse,但只有当 Java 安装在主机上时,它才具有可移植性。 Eclipse 的另一个大问题是它对机器的要求相当高,我认为需要快速的 SMP 机器才能正常工作。坦率地说,虽然我现在不使用任何“C”语言的 Eclipse。

稍微困难一点的选择可能是再次使用与 Vim 相同的方法的 EMACS。这就是将不同目标机器的多个副本放在 USB 记忆棒上。

最后我必须附上其他建议,那就是最好的便携式 IDE 是笔记本电脑。例如,您可以在 Mac 上安装几个非常好的 IDE,并轻松地将文件传输到目标计算机。作为 Unix,安装您选择的 GCC 或 LLVM 甚至交叉编译器都相当容易。 USB 加密狗方法的一个大问题是您永远无法确定那里拥有您需要的一切。

Have you considered Vim. Not exactly an IDE but you could easily put versions on one USB stick to allow you to run anywhere.

For some things I like Eclipse but it is only portable in your sense if Java is installed on the host machine. The other big problem with Eclipse is that it is fairly machine demanding and in my opinion requires a fast SMP machine to work well. Frankly though I don't use Eclipse for any of the "C" languages right now.

A slightly tougher choice might be EMACS again using the same approach as with Vim. That is putting multiple copies for your different target machines on a USB stick.

In the end I have to second something else suggested, that is the best portable IDE is a laptop. For example you can have several very good IDEs installed on a Mac and easily transfer files to a target machine. Being Unix it is fairly easy to install the GCC or LLVM of your choice even cross compilers. The big problem with a USB dongle approach is that you never can be sure of having everything you need there.

枫以 2024-09-06 05:56:10

Xemacs。如果您想要一些东西,您可以使用大量其他工具将其保存在闪存驱动器上。它不是完整的功能,但在编写软件方面确实比 vim 更进一步。

Xemacs. If you want something that you can keep on a flash drive with a ton of other tools. It isn't full features, but sure is a step up for writing software than vim.

还给你自由 2024-09-06 05:56:10

好吧,它没有便携式版本,但作为通用的多平台 IDE,我肯定会选择 科莫多编辑。我喜欢自动完成和通话提示功能。他们将我的编码速度和生产力提高了 1000 倍。我知道我听起来像广告,但别担心,这是我最真诚的意见。

如果你想要跨平台开发,我同意任何提到Qt的人。它是一个非常出色、可靠(当然取决于您的要求)且灵活的跨平台框架。

祝你好运!

Well, it doesn't have a portable version, but as a general and multi-platform IDE, I would definitely go with Komodo Edit. I love the autocompletion and call-tips features. They boosted my coding speed and productivity by 1000x. I know I sound like an ad, but don't worry, it's my most sincere opinion.

If you want cross-platform development, I agree with whoever mentions Qt. It's a really great, reliable (depends on your requirements, of course) and flexible cross-platform framework.

Good luck!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文