Linux IDE Topic is solved

This forum is reserved for everything you want to talk about. It could be about programming, opinions, open source programs, development in general, or just cool stuff to share!
priyank_bolia
wxWorld Domination!
wxWorld Domination!
Posts: 1339
Joined: Wed Aug 03, 2005 8:10 am
Location: BANGALORE, INDIA
Contact:

Linux IDE

Post by priyank_bolia »

Though we have discussed here a number of times about the IDE war. But its long time back :) and those was related to wxWidgets in general. So here is my question once again:
What is the best Linux IDE for C++ in general, even commercial alternatives.

I always wanted to learn Linux, but that Live CD can't teach anything, and installing Linux on Windows Vista is again a real pain. But today I installed Ubuntu, using Wubi from Vista, and I can tell you it can't be more easier to install Linux, just one click and within 5 minutes your machine is ready.
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

Hi priyank_bolia!

There are many IDEs out there..

But I will recommend one that I am using (and wrote :wink:):

Home page:
http://codelite.org/

Download:
http://codelite.org/wiki/pmwiki.php?n=L ... r.Download

In the download page there is a link to .deb file for Ubuntu.

It contains many functionalities taken from VS and other from eclipse, so i think you will fill at home ;)

Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
phlox81
wxWorld Domination!
wxWorld Domination!
Posts: 1387
Joined: Thu Aug 18, 2005 7:49 pm
Location: Germany
Contact:

Post by phlox81 »

Code::Blocks is also worth a view.
timw4mail
Experienced Solver
Experienced Solver
Posts: 99
Joined: Sun Mar 23, 2008 6:59 pm
Location: United States
Contact:

Post by timw4mail »

I use Netbeans, but Eclipse is another good one.
My wxWidgets Program:Snaga

Platforms:Windows, Linux, Solaris, Mac
IDE/Compiler:Netbeans with MinGW/GCC, Sun Compilers for Solaris, Xcode for Mac
wxWidgets Version:2.8.7
priyank_bolia
wxWorld Domination!
wxWorld Domination!
Posts: 1339
Joined: Wed Aug 03, 2005 8:10 am
Location: BANGALORE, INDIA
Contact:

Post by priyank_bolia »

Hi eranif,
Ya, I already knows about this project. You have done amazing work, and as a developer I knows what it takes to write an IDE alone, for which big companies have an army of developers. But it has a long way to go before its reaches.... You should put a feature tour on your website. Also as I mentioned in my previous post about codeLite, it has to provide extensibility to developers so that they can code extensions under a license that allow them to write something commercial on top of it.

Hi phlox81,
Ya codeblocks is again an good alternative, but coming from Visual Studio with tons of commercial addons on top of that, codeblocks don't give me a good reason to move to Linux as base platform.
But it looks like I am short of options: Comparison_of_integrated_development_environments
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

Also as I mentioned in my previous post about codeLite, it has to provide extensibility to developers so that they can code extensions under a license that allow them to write something commercial on top of it
Actually, CodeLite is very mature and contains *all* of what you had in VS and much more.

It has a plugin system which one can add all its features/neat plugin on top of it.

Many of the functionalities that CodeLite has to offer, comes in a form of a plugin, to name some:
- Subversion plugin - which emulates ANKH svn for VS if you are familiar with it with some extras
- CodeFormatter based on AStyle (but unlike other IDEs who uses ASyle, codelite uses it as a library which make code formatting very fast)
- Improved New class dialog, which offers:
+ Select parent from known classes (including wx)
+ Implement all virtual function of base classes
+ Or implement only the pure virtual functions of base classes
+ Create the clasas as non copyable

To help developers to develop on top of codelite, you can simply click the 'New Wizard plugin...' button, and in less than 10 sec, you have built your first plugin

Its CC is far superior to any CC that exists in open source projects (Including C::B, wxDevCpp and others)
- Support templates
- Offers basic refactoring
- Auto add include files for missing types (for example: it will offer to add 'stdio.h' for functions from that file, such as 'printf' or maybe add include '<wx/xrc/xmlres.h>' for wxXmlResource

In short, I could go on and on, you can add whatever you want on top of CodeLite.

Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
priyank_bolia
wxWorld Domination!
wxWorld Domination!
Posts: 1339
Joined: Wed Aug 03, 2005 8:10 am
Location: BANGALORE, INDIA
Contact:

Post by priyank_bolia »

Code: Select all

Running postinst step...
Creating desktop shortcut for CodeLite...
cp: cannot create regular file `/root/Desktop/': Is a directory
Done
One issue, Ubuntu don't have root user.
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

One issue, Ubuntu don't have root user
Yes, I am familiar with this one - this can be safely ignored.

By the path, it looks like you are running under root user.

However, you should know that it is very not wise to run as root, I highly recommend that you create another user and work under it.

Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
priyank_bolia
wxWorld Domination!
wxWorld Domination!
Posts: 1339
Joined: Wed Aug 03, 2005 8:10 am
Location: BANGALORE, INDIA
Contact:

Post by priyank_bolia »

no there is no root user, to install the deb package I have to do sudo su, otherwise it won't install.
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

thats weird, since I am running post install script to install the shortcut file on the desktop, and the command is:

Code: Select all

echo "Creating desktop shortcut for CodeLite..."
cp /usr/share/applications/codelite.desktop ~/Desktop/
this means the ~/Desktop was expanded to root...

And this can only be done if you was running as root.
sudo su
Why did u need to do this?

sudo dpkg -i <deb_file> should be enough.

the 'su' command might explain why the deb was trying to copy to '/root/Desktop/'
since 'su' is actually switching the user (Switch User), while sudo grants you root privileges, but the user remains the same.

Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
Sof_T
Can't get richer than this
Can't get richer than this
Posts: 864
Joined: Thu Jul 28, 2005 9:48 pm
Location: New Forest, United Kingdom
Contact:

Post by Sof_T »

What about the KDE IDE, it is a very mature product with many features that other IDE's don't offer.
The home of Sof.T http://www.sof-t.site88.net/
Author of Programming with wxDevC++
http://sourceforge.net/projects/wxdevcpp-book/
priyank_bolia
wxWorld Domination!
wxWorld Domination!
Posts: 1339
Joined: Wed Aug 03, 2005 8:10 am
Location: BANGALORE, INDIA
Contact:

Post by priyank_bolia »

@eranif
I am a newbie, and google told me to use sudo su, so I did :)


@Sof_T
If you mean KDevelop, than I tried it last time Introduction to wxWidgets - 2, but sorry to say last experience was horrible.
priyank_bolia
wxWorld Domination!
wxWorld Domination!
Posts: 1339
Joined: Wed Aug 03, 2005 8:10 am
Location: BANGALORE, INDIA
Contact:

Post by priyank_bolia »

Hi eran,
Today I tried CodeLite and CodeBlock both, and while CodeBlock worked perfectly, I run into few issues with CodeLite.

1)Creating a new project, should automatically add a new workspace, if it does not exist, I guess you told feel at home like VS
2)Why adding a new project and a new wxWidgets project is different, when I say add a new project, it should show me all the available options.
3)

Code: Select all

sample_app.h:4:20: error: wx/app.h: No such file or directory
I don't know what's wrong and where to fix but CodeBlock, compiled and run without any errors.
4)While the codeblock dialogs are resizable, but Codelite dialog wasn't, which causes some issues.
Image
5)Your default font is much better than CodeBlock, but instead of that arrow, you can use the +/- thing like VS and CodeBlock, that looks more better.
6)Where can I find the Plugin API documentation.
Thanks,
Priyank
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

Creating a new project, should automatically add a new workspace, if it does not exist, I guess you told feel at home like VS
You are right, it should create the workspace. But being sarcastic won't get you anywhere...

Why adding a new project and a new wxWidgets project is different, when I say add a new project, it should show me all the available options.
This becase the 'New wxWidgets Project' option in the toolbar is from plugin, which was designed that way
wxwidgets:
sample_app.h:4:20: error: wx/app.h: No such file or directory

I don't know what's wrong and where to fix but CodeBlock, compiled and run without any errors.
Dp you have debug build of wxWidgets installed on Linux?
Try selecting the ReleaseUnicode and build it instead of the debug.

My guess is that you only have release build of wx, hence the error
I don't know what's wrong and where to fix but CodeBlock, compiled and run without any errors.
Then I guess, C::B is the way to go
5)Your default font is much better than CodeBlock, but instead of that arrow, you can use the +/- thing like VS and CodeBlock, that looks more better.
If you mean folding icons (-/+) than this is configurable -> Settings -> Editor, you can select any of the four options available there
Including the +/-
6)Where can I find the Plugin API documentation.
Most of it is documented in the headers files using doxygen, but the best way is to have a look of what other plugins do.

The header files for the plugins are at
codelite/trunk/Interfaces/ (you need to checkout CodeLite source files)

This can be a long discussion, if you want a real assistance with CodeLite, than you can ask questions irc.freenode.net channel #codelite where me and the other developer (SRabbelier) are hanging

Or you can ask them in a forum I setup here: http://codelite.org/forum

To keep it brief:

Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
priyank_bolia
wxWorld Domination!
wxWorld Domination!
Posts: 1339
Joined: Wed Aug 03, 2005 8:10 am
Location: BANGALORE, INDIA
Contact:

Post by priyank_bolia »

But being sarcastic won't get you anywhere...
I guess you took in wrong sense, I am extremely sorry for any confusion caused.
This becase the 'New wxWidgets Project' option in the toolbar is from plugin, which was designed that way

But don't you think it is confusing.
My guess is that you only have release build of wx, hence the error
Thanks Release ANSI did the trick, as I has that only.
Then I guess, C::B is the way to go
Forgot about me, any new user that don't know much about a platform, would go for the first thing that works out of box. C::B worked in Debug mode also, as I had wxWidgets package installed from repository. While CodeLite depended only on the wxWidgets that I compiled, I guess that may be the reason.
If you mean folding icons (-/+) than this is configurable -> Settings -> Editor
Thanks, it worked.

One more question, can't I debug release mode applications, it didn't break at breakpoint.


CodeLite is a great IDE, with cool GUI, icons and font, and having the same key binding as VC++. Looking forward to learn Linux and CodeLite.
Post Reply