User forums > Using Code::Blocks

ubuntu C::B questions

(1/6) > >>

Michael:
Hello,

Yesterday, I have build my first C::B in ubuntu 5.10 :D. It was a bit difficult at the beginning (I am also a ubuntu newbie), but with the precious help of Daniel2000, the C::B wiki turorial and a Pecan's topic, I got it done :D. The version in question is rev2133 (gcc 4.0.2 Linux/unicode).

I have remarked a small problem. In the compiler's settings -->Programs-->Program Files, the Resource compiler label and combo are cut by half. Has someone else remarked this or it is just a local problem?

I have also remarked that the code completion cache has been de-activated and will be later taken out. Could I ask why?

I also would like to ask about building C::B in ubuntu. In Windows, after updating the project, I opened it and compiled C::B. In ubuntu, after updating the project with SVN, should I do


--- Quote ---make unistall
./configure
make
make install

--- End quote ---

Or it would be simplier with the CodeBlocks-unix.cbp? I ask because make take me more than 1 hours to be completed :roll:.

I have also had problems by using make install, because of permission problems. I had to do sudo -i and then make install. I suppose that doing make unistall will require root rights? To avoid these "problems" should I build C::B by using a root shell?

Thank you very much.

Best wishes,
Michael

Alux:

--- Code: (bash) ---sudo make unistall
./configure
make
sudo make install

--- End code ---
should do it - and im not even totaly sure you need to uninstall beforehand (feel free to correct me!)

one hour is quite a long build time in this case i think... what are your system specs?
also - once youve built once updating from svn should only get files that have changed, and make should only recompile files that have changed...

btw, depending on how new to ubuntu/linux you are
www.ubuntuguide.org (though for 5.04) has lots of handy info, and the offial wiki is crammed with helpfull info too
whats more there are a couple of handy apps such as easyubuntu(quite safe i tihnk) and automatix(heard complaints,mainly from people who tried to dist-upgrade after using this) that can install all sorts of goodness automaticly (such as a whole bunch of codecs, new ver of wine, java 1.5 etc)

mandrav:

--- Quote ---
--- Code: ---sudo make unistall
make
sudo make install

--- End code ---

--- End quote ---

This should do it. Note that you must uninstall first, or else when linking the app and plugins it uses the libcodeblocks.so previously installed (instead of the one you create with 'make'). Don't know why yet...

And, of course, don't forget that you can build it using codeblocks-unix.cbp ;)
After you build C::B succesfully once using 'configure' and install it, you can build C::B using itself. So everything will be like in windows world (run 'update' afterwards, etc).

Michael:

--- Quote from: Alux on March 04, 2006, 10:21:42 pm ---
--- Code: (bash) ---sudo make unistall
./configure
make
sudo make install

--- End code ---
should do it - and im not even totaly sure you need to uninstall beforehand (feel free to correct me!)

--- End quote ---

Thank you :D. I am not sure that I have to unistall it. May be just when I will have some compilitation/linking issues. I was wrong here. Sorry. Mandrav pointed out that you have to first make unistall.


--- Quote from: Alux on March 04, 2006, 10:21:42 pm ---one hour is quite a long build time in this case i think... what are your system specs?

--- End quote ---

I have a Desktop with PIII 500 MHz and 512MB RAM. It is not the maximum, but it is only thing I have got from my institute (as secondary computer). And ubuntu works relatively fine (much better than a Windows XP would have been done :)).


--- Quote from: Alux on March 04, 2006, 10:21:42 pm ---also - once youve built once updating from svn should only get files that have changed, and make should only recompile files that have changed...

--- End quote ---

In this case, I should avoid a make unistall. If not it will re-build all from the beginning.


--- Quote from: Alux on March 04, 2006, 10:21:42 pm ---btw, depending on how new to ubuntu/linux you are
www.ubuntuguide.org (though for 5.04) has lots of handy info, and the offial wiki is crammed with helpfull info too
whats more there are a couple of handy apps such as easyubuntu(quite safe i tihnk) and automatix(heard complaints,mainly from people who tried to dist-upgrade after using this) that can install all sorts of goodness automaticly (such as a whole bunch of codecs, new ver of wine, java 1.5 etc)

--- End quote ---

Thank your for the info.

Actually, I am fighting with the root's permission. I have my C::B executable in /usr/local/bin, but I cannot do a shortcut to put in my desktop :D.

Best wishes,
Michael

Michael:

--- Quote from: mandrav on March 04, 2006, 10:37:11 pm ---
--- Quote ---
--- Code: ---sudo make unistall
make
sudo make install

--- End code ---

--- End quote ---

This should do it. Note that you must uninstall first, or else when linking the app and plugins it uses the libcodeblocks.so previously installed (instead of the one you create with 'make'). Don't know why yet...

--- End quote ---

Ah, Ok. So, I was wrong in my previous post (I will edit it). Thank you for pointing this out :).


--- Quote from: mandrav on March 04, 2006, 10:37:11 pm ---And, of course, don't forget that you can build it using codeblocks-unix.cbp ;)
After you build C::B succesfully once using 'configure' and install it, you can build C::B using itself. So everything will be like in windows world (run 'update' afterwards, etc).

--- End quote ---

I think I will be more comfortable with this solution :D. I have quite never used make and friends, but I suppose that it should not be so difficult to understand and use them.

Best wishes,
Michael

Navigation

[0] Message Index

[#] Next page

Go to full version