Code::Blocks

User forums => Help => Topic started by: mario on October 06, 2005, 01:36:17 pm

Title: importing existsing project into CB?
Post by: mario on October 06, 2005, 01:36:17 pm
Hello all,

First of all, I'm new to CB and would like to say I am very, very pleasantly surprised with CB,
IMHO it has great potential to be great devel ide.
In my current work I use Eclipse mostly because all-for-one-ide multiplatform reasons.
Some things are still missing in it and CDT speed is definitely not it's stronger side.

Anyway, back to my topic, I am having problems with importing existing
projects into CB.

Example:  compiling wxWidgets source using CB. These are the steps I use:
 1. unpack wxWidgets
 2. inside wxWidgets tree create dir 'build-cb-gcc'
 3. in CB I create empty 'wx.cbp' project in 'build-cb-gcc' directory
 4. click 'Project->Add Files Recursivly...'
 5. select 'src' directory and click OK
 6. multiple selection dialog apears and states 'Selected: 1340'
 7. click OK

At this point CB freezes. CPU usage is ~90-99%. Disk led is not flashing.
Been waiting for it to come around for 5minutes now :)

I tried importing each src dir separately and it works ok (160 files for 'common').

Any suggestions?

Thanks,
Regards,
  Mario

P.S.
I am most enthusiastic in helping develop CB and would be very grateful
for pointers on how to get started?
Title: Re: importing existsing project into CB?
Post by: mandrav on October 06, 2005, 02:22:29 pm
If you 're using C::B version 1.0rc1-1, please wait a couple of days and get 1.0rc2. It's much improved and many bugs have been squashed.
Title: Re: importing existsing project into CB?
Post by: Ceniza on October 06, 2005, 09:12:07 pm
Hmmm, is it really that a good idea to compile wxWidgets with Code::Blocks that way?

Compilation flags must be considered, a correct setup.h, libraries creation and linking, and even more things.

I don't really think that'll end in a successfull build but in a full of errors experience.

Consider compiling wxWidgets using makefiles, either the ones provided or configured. Only when a Code::Blocks project for it be created it'd be really possible.

Sorry for the bad news.
Title: Re: importing existsing project into CB?
Post by: takeshi miya on October 06, 2005, 09:48:02 pm
Currently, the best way is to compile wxWidgets from the makefiles.

HOWEVER, thanks to the work ABX is doing in supporting C::B in bakefiles, when he more or less finish it, compiling wxWidgets from inside Code::Blocks would be posible, and very easy. Even, it's probably that the Code::Blocs project files will come with future releases of wxWidgets.
Title: Re: importing existsing project into CB?
Post by: mario on October 07, 2005, 08:19:56 am
I have no problem compiling wxWidgets using configure/make under msys,
also no problem using MS.NET IDE importing existing Visual Studio DSW file.

I just wanted to create an emty project from CB and then using 'custom
makefile' option try to build wxWidgets (say 'make -f makefile.gcc).

All of my projects I'm currently working on have a custom makefile and I had
no problems building them using 'custom makefile' option in CB so I wanted
to try it on wxWidgets also, but got stopped in importing wxWidgets files into
CB project.

Thanks,
Regards,
  Mario