便携式 C++ IDE
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2702416/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Portable C++ IDE
提问by Click Ok
I want a portableC++ IDE for general development, and too to develop basic Windows GUI applications.
我想要一个用于一般开发的便携式C++ IDE,也需要用于开发基本的 Windows GUI 应用程序。
In my research, I've found this (with latest version date):
在我的研究中,我发现了这个(最新版本日期):
- CodeLite IDE(2010-04-02)
- Ultimate++(2010-03-16)
- Qt Creator(2010-02-01)
- NetBeans(2009-12-10)
- Code::Blocks(2008-02-28)
- Bloodshed Dev-C++(2005-02-22)
- CodeLite IDE(2010-04-02)
- 终极++(2010-03-16)
- Qt 创造者(2010-02-01)
- NetBeans(2009-12-10)
- 代码::块(2008-02-28)
- Bloodshed Dev-C++(2005-02-22)
But I don't know if some these IDE's supports Windows GUI development (or Cross Platform GUI development) or if can be portable(NetBeanscan be portable).
但我不知道这些 IDE 是否支持 Windows GUI 开发(或跨平台 GUI 开发)或者是否可以移植(NetBeans可以移植)。
EDIT: Reading the replies and doing more research, I'm near to choose between NetBeans or Qt Creator. But Qt Creator is 287mb (big for portable development). So sad looks that NetBeans, even being small (c++ is near to 30mb) needs Qt library for GUI (278mb)...
编辑:阅读回复并进行更多研究,我几乎要在 NetBeans 或 Qt Creator 之间进行选择。但是 Qt Creator 是 287mb(对于便携式开发来说很大)。令人难过的是,NetBeans,即使很小(c++ 接近 30mb)也需要用于 GUI 的 Qt 库(278mb)...
回答by bitc
Qt Creator is a good choice if you want to code cross platform GUI programs. Qt is an excellent cross platform GUI library.
如果您想编写跨平台 GUI 程序,Qt Creator 是一个不错的选择。Qt 是一个优秀的跨平台 GUI 库。
回答by Hassan Syed
The bash shell (and it's tools) + vim + cmake + mercurial = love. Bash is available on all popular platforms, even windows
bash shell(及其工具)+ vim + cmake + mercurial = love。Bash 可用于所有流行平台,甚至 Windows
p.s., I forgot gdb + ddd.
ps,我忘了gdb + ddd。
回答by Michael Aaron Safyan
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 Boostand Qtto 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 Templateand C++ Library Project Template, which provide a portable cross-platform build using the CMakebuild 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".
您命名的 IDE 都是跨平台的,可在 Windows、Mac OS X 和 Linux 上使用。也就是说,你只需要让你的代码跨平台(使用Boost和Qt来做到这一点)。我个人在 Mac OS X 上使用 Xcode,在 Linux 上使用 GEdit 或 Anjuta 或 KDevelop,在 Windows 上使用 Code::Blocks。您可能还对我的C++ 应用程序项目模板和C++ 库项目模板感兴趣,它们使用CMake构建系统提供可移植的跨平台构建,并且使用 Boost 和 Qt;如果您使用标志“--gui”,应用程序项目模板已经具有创建“hello world”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.
我还应该指出,CMake 能够为各种 IDE 生成项目文件,因此 CMake 构建的一个优点是您可以生成 makefile(默认),但您也可以生成 Visual Studio 项目(Windows) 、KDevelop 项目 (Linux) 或仅来自一个项目描述文件的 Xcode 项目 (OS X),允许用户将本机 IDE 用于该特定开发平台。
回答by bta
You can make a portable NetBeans, as well as Code::Blocks, Geany, Dev-C++, or Eclipse.
您可以制作可移植的 NetBeans,以及Code::Blocks、Geany、Dev-C++或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 Cygwinon 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).
以上任何一项都应该能够进行 Windows GUI 或跨平台 GUI 开发,只需确保您的闪存驱动器上有所有必要库的副本。如果您在闪存驱动器上使用便携式 Cygwin,您可以包含 gcc(因此您的 IDE 也有编译器)和各种 UI 库(gtk、FLTK、wxwidgets、qt 等)的 cygwin 版本。
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.
我看到有些人采用的另一种方法是在虚拟机中加载 Linux 安装,然后将它与诸如Portable VirtualBox 之类的东西一起放在闪存驱动器上。我建议先将它复制到硬盘驱动器,直接从闪存驱动器运行它的性能会很糟糕。
回答by David Frantz
Have you considered Vim. Not exactly an IDE but you could easily put versions on one USB stick to allow you to run anywhere.
你有没有考虑过 Vim。不完全是 IDE,但您可以轻松地将版本放在一个 USB 记忆棒上,让您可以在任何地方运行。
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.
对于某些事情,我喜欢 Eclipse,但只有在主机上安装了 Java 时,它才具有可移植性。Eclipse 的另一个大问题是它对机器的要求很高,在我看来需要一台快速的 SMP 机器才能正常工作。坦率地说,虽然我现在不将 Eclipse 用于任何“C”语言。
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.
一个稍微困难的选择可能是再次使用与 Vim 相同的方法 EMACS。这就是将不同目标机器的多个副本放在 USB 记忆棒上。
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.
最后,我不得不提出其他建议,即最好的便携式 IDE 是笔记本电脑。例如,您可以在 Mac 上安装几个非常好的 IDE,并轻松地将文件传输到目标机器。作为 Unix,安装您选择的 GCC 或 LLVM 甚至交叉编译器都相当容易。USB 加密狗方法的一个大问题是您永远无法确定那里拥有您需要的一切。
回答by spowers
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.
西马克。如果您想要一些可以使用大量其他工具保存在闪存驱动器上的东西。它不是完整的功能,但肯定比 vim 更适合编写软件。
回答by Andrés Botero
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.
好吧,它没有可移植版本,但作为通用的多平台 IDE,我肯定会选择Komodo Edit。我喜欢自动完成和通话提示功能。他们将我的编码速度和生产力提高了 1000 倍。我知道我听起来像广告,但别担心,这是我最真诚的意见。
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.
如果你想要跨平台开发,我同意提到 Qt 的人。这是一个非常棒的、可靠的(当然取决于您的要求)和灵活的跨平台框架。
Good luck!
祝你好运!