Author Topic: Recommended Build Environment  (Read 4776 times)

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Recommended Build Environment
« on: December 05, 2005, 09:06:07 am »
i'm just starting to setup a fresh Ubuntu 5.10 Breezy
and would like to know, what is the recommended build-environment for CodeBlocks ?


i assume for all of these following packages i can take the latest version from the ubuntu-repositories,
has someone had any problems using a particular version ?
    autoconf
    automake
    binutils
    libtool
    wxGTK-2.6
    wx-common

gcc, g++
gcc is version 4.0 ok ?

wx-Widgets, what's recommended to use
wxwidgets  2.6.1  or  2.6.2,  ansi  or  unicode   ???


am i missing something ?

thanks

Offline cyberkoa

  • Plugin developer
  • Almost regular
  • ****
  • Posts: 145
    • http://
Re: Recommended Build Environment
« Reply #1 on: December 05, 2005, 09:28:15 am »
If I am not mistaken , you need build-essential, g++ , lib-tools package .

C::B can only run on wxGTK2.6.x  with Unicode make  (I remember last time the unicode conversion proposed by rick is to solve the Linux prolem)

I use wxwidgets-2.6.2 , manage to compile using the autotools (bootstrap .. configure ...) but it was 1 month ago , recently C::B is under heavy changes , maybe there are some changes ..

it is better to put all the code under <home> directory or else it will have a lot of authority problem ..unless you use root , I suffer from that the first few times of my trial.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Recommended Build Environment
« Reply #2 on: December 05, 2005, 10:42:02 am »
C::B compiles and works fine out-of-the-box in Ubuntu (that's what I use :) ).
Just install the essentials (compiler, autotools), install the wxGTK packages (no need to build it yourself) and wxgtk-common and then build C::B. Easy as 1-2-3 :)
Be patient!
This bug will be fixed soon...

che

  • Guest
Re: Recommended Build Environment
« Reply #3 on: December 06, 2005, 10:17:25 pm »
C::B compiles and works fine out-of-the-box in Ubuntu (that's what I use :) ).
Just install the essentials (compiler, autotools), install the wxGTK packages (no need to build it yourself) and wxgtk-common and then build C::B. Easy as 1-2-3 :)

Hi Mandrav,

For the unexperienced users, can you be more precise about "build Easy as 1-2-3"  ;-)

Thanks a lot.
Pascual.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Recommended Build Environment
« Reply #4 on: December 06, 2005, 10:41:27 pm »
Have you read the wiki?
Read this, the section titled "Code::Blocks installation".
Be patient!
This bug will be fixed soon...

che

  • Guest
Re: Recommended Build Environment
« Reply #5 on: December 06, 2005, 10:55:55 pm »
Sorry  :( I have just done it

Sorry again and thanks a lot.
Pascual.

Offline cyberkoa

  • Plugin developer
  • Almost regular
  • ****
  • Posts: 145
    • http://
Re: Recommended Build Environment
« Reply #6 on: December 07, 2005, 04:30:43 am »
Sorry  :( I have just done it

Sorry again and thanks a lot.
Pascual.

Can you briefly explain which steps you have done ?



1. get all the packages for building like build-essential , autotools etc

2. compile wxGTK / install wxGTK

3. check the setup.h , the line wxUSE_UNICODE should be set to 1.

4. make sure wx-config is in the search path , can be confirmed using "which wx-config"

make sure that the your user id have the rights to read/write wxGTK path

download the CB source and put under your /usr/home/codeblocks


you need to use dos2unix to convert the source to unix-compatible format.

you can search the thread in Linux/Unix section , there is a thread about compilation of CB under debian , use that as a guide to compile


basically the CB compilation steps are
./bootstrap
./configure
./make
./make install    <- this one need to use sudo