Code::Blocks Forums

User forums => Help => Topic started by: Pingi on February 07, 2008, 09:44:08 pm

Title: From the Beginning
Post by: Pingi on February 07, 2008, 09:44:08 pm
Hi to all,
This is my first post here, since I just registered after a friend said good things about this site.

Now, I know it can be a trouble for you, but can someone explain me what to download (preferably with links) in order to get this CB up and running.
I am kind of new at this, and am completely confused with the amount of links and nightly builds and everything else on this forum.

I downloaded CB_20080206_rev4866_win32 so far, and I know I have to download wxWidget (I don't know what is that), and I guess I should get some new nightly build, but I really need some help. I worked with other tools earlier, but it was all Insert CD->Click Install->Restart->Work, so I'm dumb in essence  :(

Sorry on this question, but I found nowhere anything for complete beginners such as myself.

I hope there is someone who can help me.
Title: Re: From the Beginning
Post by: mandrav on February 07, 2008, 10:20:47 pm
How to use a nightly build (http://forums.codeblocks.org/index.php/topic,3232.0.html).
Title: Re: From the Beginning
Post by: Pecan on February 07, 2008, 11:28:14 pm
http://www.sci.brooklyn.cuny.edu/~goetz/codeblocks/codeblocks-instructions.pdf
Title: Re: From the Beginning
Post by: Jimage on February 08, 2008, 02:06:01 am
Actually, I'm slighty confused here too. Where do I find the source for a given nightly so I can compile it myself? All I see in the original posts are links to Windows-specific stuff.

Cheers.
Title: Re: From the Beginning
Post by: Jenna on February 08, 2008, 07:28:43 am
Actually, I'm slighty confused here too. Where do I find the source for a given nightly so I can compile it myself? All I see in the original posts are links to Windows-specific stuff.

Cheers.

You can download the actual svn-sources from server using the svn command.
Here (http://www.codeblocks.org/source_code.shtml) are the URL's you can use.
On Linux you will need a package normally called something with "subversion" in name, that includes the svn binary.
There are also some guis available, or svn-clients that fit in your file-browser (for example "kdesvn-kio-plugins" for konqueror on debian).

If you want a special revision you can use the "-r <revision>" switch on commandline (might differ with other svn-clients, look in the man-page).

On WIndows you can use Tortoise-SVN (http://tortoisesvn.tigris.org/) as gui and if you want to build C::B from sources you also need the commandline-svn (http://subversion.tigris.org/) to make C::B know the actual revision while building.

You can also download the source-code for the actual nightly as tarball from my repository (see signature), but there are normally only the last two or three builds available.
Title: Re: From the Beginning
Post by: Pingi on February 08, 2008, 11:41:05 am
Thanks for that pdf, everything is explained. But what about wxWidgets, I understood that it is for creating windows and stuff, how to install and use it?
I've been on their site and there are a lot of things to download, I just don't know what is important.

This is my last question   :)
Title: Re: From the Beginning
Post by: Jenna on February 08, 2008, 12:47:13 pm
How to use a nightly build (http://forums.codeblocks.org/index.php/topic,3232.0.html).

On the site mandrav posted there is a link to the Nightly Cookbook (http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook).
Everything is explained there.
For using wxWidgets on Windows for your own projects you have to build at least the Release-version and set the base-parameter of the "wx" variable in C::B.

You don't need wxWidgets to create windows, you can also look for example at the Win32-gui-example, but using a toolkit like wxWidgets is much more comfortable.
Title: Re: From the Beginning
Post by: Pingi on February 08, 2008, 06:53:25 pm
Thanks for help. I think I'll manage.
Title: Re: From the Beginning
Post by: Jimage on February 09, 2008, 03:37:52 am
Quote from: jens
You can download the actual svn-sources from server using the svn command.
Exactly what I'm looking for. It's downloading now. Many thanks. Just a thought, but it might be worth someone putting some info about that on the download page while the nightlies are standard practice

Now I've got another problem. Running ./configure I run into this:
Code
./configure: line 24298: AM_OPTIONS_WXCONFIG: command not found
./configure: line 24299: syntax error near unexpected token `2.8.0,'
./configure: line 24299: `AM_PATH_WXCONFIG(2.8.0, wxWin=1)'

From what I've read, this is resolved by installing wxgtk-dev, but that package is not available on the Arch repositories, and I don't know where else to find it. There seems to be no direct mention of it on the wxwidgets site.

Edit: Ah, looks like there are instructions for installing wx from source on that wiki page.