Code::Blocks Portable

Submit portable freeware that you find here. It helps if you include information like description, extraction instruction, Unicode support, whether it writes to the registry, and so on.
Post Reply
Message
Author
Munaq
Posts: 2
Joined: Thu Aug 28, 2008 7:17 am

Code::Blocks

#1 Post by Munaq »

:arrow: http://www.codeblocks.org/
Code::Blocks is a free C++ IDE built to meet the most demanding needs of its users. It is designed to be very extensible and fully configurable.

Finally, an IDE with all the features you need, having a consistent look, feel and operation across platforms.

Built around a plugin framework, Code::Blocks can be extended with plugins. Any kind of functionality can be added by installing/coding a plugin. For instance, compiling and debugging functionality is already provided by plugins!

We hope you enjoy using Code::Blocks!

The Code::Blocks Team
Q: How do I make Code::Blocks portable?
A: http://wiki.codeblocks.org/index.php?ti ... ortable.3F

It'll be a nice addition. :D

Munaq
Posts: 2
Joined: Thu Aug 28, 2008 7:17 am

#2 Post by Munaq »

No replies, too bad.

You should give it a try, it's a pretty good software.

User avatar
m^(2)
Posts: 890
Joined: Sat Mar 31, 2007 2:38 am
Location: Kce,PL
Contact:

#3 Post by m^(2) »

Munaq wrote:No replies, too bad.

You should give it a try, it's a pretty good software.
Its powerful, nice looking and reasonably fast, but it's configuration is strange...It has a lot of in-depth settings, but lacks many basic ones. I couldn't make it work the way I wanted.

User avatar
Ascend4nt
Posts: 61
Joined: Fri Nov 19, 2010 10:37 am
Location: NJ, USA
Contact:

Re: Code::Blocks

#4 Post by Ascend4nt »

So they finally released a new version recently - 12.11. I haven't given it a full workout yet, but I've gone through and figured out how to make it portable. It's a bit more of a hassle than for 10.05, but if you want a nice cross-platform cross-compiler development environment, this is really the only good choice (dev-cpp is gcc only).

Site: http://www.codeblocks.org/
Windows downloads: http://www.codeblocks.org/downloads/26#windows
(I've only tested the "codeblocks-12.11-setup.exe" version, but I suspect the one with the included compiler should work the same)

FAQ - Making it portable:
http://wiki.codeblocks.org/index.php?ti ... nd_plugins

Portable Launcher: http://cblauncher.codecutter.org/CbLauncher_1.0.1.zip

Steps:
1. Download the exe and run the install. Do NOT run CodeBlocks yet, otherwise you will need to delete %appdata%\CodeBlocks
2. Copy the CodeBlocks folder from %programfiles%\CodeBlocks to your portable folder.
3. Delete uninstall.exe from the portable folder
4. Uninstall CodeBlocks
5. Open CbLauncher_1.0.1.zip and navigate to CbLauncher\bin\Release, and copy CbLauncher.exe into your portable CodeBlocks folder
6. Launch CbLauncher.exe
7. On the first run: click 'OK' to "Compilers auto-detection" prompt, and click 'No, leave everything as it is' for the "File Associations" prompt.

Note: I DID try using 7-zip and UniExtract on it, but it doesn't extract correctly (some files are left out and the 'template\wizards' folder winds up in $_OUTDIR).

Also, with a quick glance at the source code for CbLauncher, there's a lot of overkill involved. It just needs to set %appdata% and push the parameters to CodeBlocks, but instead it tries to search for fonts to add (which don't exist). It also limits the parameter length to 260 characters which is retarded.. the command line can be up to 32767 characters! Ah well, most should only launch it with one .cbp project at a time anyway.

P.S. I'm a long-term user of this IDE, and while it is a bit of a pain in the ass to set up the different compilers and the options for them, it does turn out to be quite flexible. I have projects that I can now easily set to compile in Microsoft VC++ 2003, 2008, 2010, 2012, GCC/G++, Tiny C Compiler, and Pelles C! (Yes, I'm that crazy)

update: doxygen (if you use it) writes stuff to the registry, though I doubt it affects portability
Last edited by Ascend4nt on Sat Dec 29, 2012 11:29 pm, edited 1 time in total.

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: Code::Blocks

#5 Post by guinness »

I will check this out as I currently have dev-cpp, also I thought you used dev-cpp because I believe I saw your handle attached to the portable launcher.

User avatar
Ascend4nt
Posts: 61
Joined: Fri Nov 19, 2010 10:37 am
Location: NJ, USA
Contact:

Re: Code::Blocks

#6 Post by Ascend4nt »

guinness wrote:I will check this out as I currently have dev-cpp, also I thought you used dev-cpp because I believe I saw your handle attached to the portable launcher.
I did actually write a portable launcher for dev-cpp (posted on pastebin a while back), but the developer decided to go with his own version. Of course, Orwell's version doesn't work correctly when launched from another folder or when passed file(s) with spaces in them.

I haven't used dev-cpp in a long while, but it looks like it might be worth checking out recent builds due to fixes to debugging. However, code::blocks is also supposed to work correctly with the debugger. (Visual Studio is my debugging platform of choice, though)

If you need help configuring Code::Blocks, let me know. Most of the pain in setting it up is adding library files to link to, and adding the right search directories for the Windows SDK.

edit: I should mention, you'll probably want to make use of the "$(CODEBLOCKS)" macro when setting up relative paths.

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: Code::Blocks

#7 Post by guinness »

My plan is to tackle the configuration this weekend so I may hold you to your offer of help. Plus, it seems I see your user handle everywhere!

User avatar
Ascend4nt
Posts: 61
Joined: Fri Nov 19, 2010 10:37 am
Location: NJ, USA
Contact:

Re: Code::Blocks - CppCheck plugin

#8 Post by Ascend4nt »

Since CppCheck is a great plugin tool to have alongside Code::Blocks, I'd figure I'd mention how to fix support for it in the IDE (the plugin is there, but not the program). Basically, you just need to download and extract the CppCheck files and put them in the root CodeBlocks folder.

CppCheck Home: http://cppcheck.sourceforge.net/
CppCheck Download: http://sourceforge.net/projects/cppchec ... /cppcheck/
(You'll want the latest MSI installer)

Steps to install:
1. Use UniExtract on the cppcheck MSI file. I chose the default extraction
2. Copy the files from PFiles\CppCheck into the Code::Blocks folder
3. Also, if you are running Code::Blocks where Visual C++ 2010 runtimes aren't installed, copy the PFiles\Win contents to Code::Blocks
4. Optionally delete cppcheck_xx.qm language files. The GUI could probably be removed as well if you don't plan to run it standalone

*Note: cppcheck-GUI writes stuff to the registry

User avatar
guinness
Posts: 4118
Joined: Mon Aug 27, 2007 2:00 am
Contact:

Re: Code::Blocks

#9 Post by guinness »

I gave it a try and at present feel it's a little to much for me as I'm only starting out with C/C++.

juvera
Posts: 22
Joined: Sat Oct 15, 2011 4:05 am

Code::Blocks Portable

#10 Post by juvera »

At http://codeblocks.codecutter.org/ they say they have a portable version inc. a minGW C/C++ compiler of Code::Blocs ( http://codeblocks.codecutter.org/CodeBlocks-EP.zip ).

Portableapps.com has a paf for the IDE part, but no compiler: http://portableapps.com/node/18671

User avatar
Ascend4nt
Posts: 61
Joined: Fri Nov 19, 2010 10:37 am
Location: NJ, USA
Contact:

Re: Code::Blocks Portable

#11 Post by Ascend4nt »

That 'EDU-Portable' is pretty old. Code::Blocks is up to 12.11, and you can download the portable launcher individually - see http://www.portablefreeware.com/forums/ ... 790#p60790

User avatar
joby_toss
Posts: 2970
Joined: Sat Feb 09, 2008 9:57 am
Location: Romania
Contact:

Re: Code::Blocks Portable

#12 Post by joby_toss »

Tested codeblocks-16.01-nosetup.zip and codeblocks-16.01mingw-nosetup.zip from: http://www.codeblocks.org/downloads/26
Settings saved to AppData.

User avatar
juverax
Posts: 366
Joined: Mon Jun 11, 2018 5:19 am

Re: Code::Blocks Portable

#13 Post by juverax »

CodeBlocks no-setup v.20.03 is released: http://www.codeblocks.org/downloads/26

User avatar
webfork
Posts: 10821
Joined: Wed Apr 11, 2007 8:06 pm
Location: US, Texas
Contact:

Re: Code::Blocks Portable

#14 Post by webfork »

Turns out we had another thread on the topic so I went ahead and merged the two.

---

Also, bit of a personal gripe here, but it's been around since 2014 and they only have two screenshots listed?

http://www.codeblocks.org/screenshots

... especially with the statement right up at the top about "... a consistent look, feel and operation across platforms." That's definitely something to show in screencaps. Sigh.

User avatar
webfork
Posts: 10821
Joined: Wed Apr 11, 2007 8:06 pm
Location: US, Texas
Contact:

Re: Code::Blocks Portable

#15 Post by webfork »

Old thread update:

Code::Blocks was last updated in 2020, now at v20.03 and running on Mac/Win/Linux

Changelog: https://www.codeblocks.org/changelogs/
Mirror: https://www.softpedia.com/get/Programmi ... ocks.shtml

Post Reply