User forums > General (but related to Code::Blocks)

Difficulties building from SVN source or Ubuntu repository

<< < (3/4) > >>

resander:
Thanks a lot.

Build 5368 is now working.
Jens' answers are useful for Ubuntu beginners coming from Windows like myself, so here is a summary:

GETTING UBUNTU BINARIES

i)  enter 'sudo gedit /etc/apt/sources.list' (without the quotes) and when in editor
    add lines

     deb http://apt.jenslody.de/ any main
     deb-src http://apt.jenslody.de/ any main
     deb http://apt.wxwidgets.org/ etch-wx main

    at the end of /etc/apt/sources.list

    OR

    select Software Sources from the GUI Administration menu, select Third Party Software
    and add the three lines above
 
 ii)  enter 'apt-get install jens-lody-debian-keyring' from terminal

 iii) enter 'wget -q http://apt.wxwidgets.org/key.asc -O-  | sudo apt-key add -' from
      terminal

 iv)  use apt-get update and apt-get install codeblocks OR use update and install
      via Synaptic manager       

     
BUILDING FROM SOURCE

One-time preparation:
   - install libtools via synaptic
   - install autoconf and automake via synaptic

i)   enter svn://svn.berlios.de/codeblocks/trunk from commandline

ii)  install libwxgtk2.8-dev and wx-common via synaptic

iii) install sudo apt-get install libgtk2.0-dev from terminal

iv)  issue the following from the command line in the trunk directory
      ./bootstrap
      ./configure --enable-contrib
      make
      sudo make install


However, with Jens' frequent Ubuntu binary builds there is probably little need to build from source.

Again many thanks.

tuXXX:
1) SVN code contains errors (it's ok - development code)
2) 8.02 is too old.
3) Nightly builds only for windows.

I'm using Linux. How I can get new version of codeblocks??? Not daily version, just relative new??? HOW???

2009 Jan 5 -> SNV -> Error:

--- Code: ---libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../../src/include -I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 -I/usr/local/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -pthread -I../../../../src/include -I../../../../src/include/wxscintilla/include -Ulinux -Uunix -O2 -ffast-math -DCB_AUTOCONF -g -O2 -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -MT HexEditPanel.lo -MD -MP -MF .deps/HexEditPanel.Tpo -c HexEditPanel.cpp  -fPIC -DPIC -o .libs/HexEditPanel.o
HexEditPanel.cpp: In member function ‘void HexEditPanel::OnDrawAreaKeyDown(wxKeyEvent&)’:
HexEditPanel.cpp:924: error: ‘class wxKeyEvent’ has no member named ‘GetUnicodeKey’
make[4]: *** [HexEditPanel.lo] Error 1
make[4]: Leaving directory `/home/s/my/codeblocks/trunk/src/plugins/contrib/HexEditor'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/s/my/codeblocks/trunk/src/plugins/contrib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/s/my/codeblocks/trunk/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/s/my/codeblocks/trunk/src'
make: *** [all-recursive] Error 1
--- End code ---

Jenna:
It seems you try to build C::B against an ansi-release of wxWidgets or you use at least headers of an ansi-version ("-I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 ") , that will most likely not work.

tuXXX:

--- Quote from: jens on January 05, 2009, 05:14:08 pm ---It seems you try to build C::B against an ansi-release of wxWidgets or you use at least headers of an ansi-version ("-I/usr/local/lib/wx/include/gtk2-ansi-release-2.8 ") , that will most likely not work.
--- End quote ---
Oh, thanks for fast reply! I'll try to rebuild my wxW to unicode.
One more question plz ^_^
I building this at home. And I want to move compiled codeblocks to my work. And to second computer :) How to move compiled fresh C:B?

P.S.
I found "debian - nightlies and wxWidgets (msw-)cross-build libs for "i386" and "amd64" : http://apt.jenslody.de/" =) I'm using Ubuntu 8.10 (Debian derivative) - can I use your packages? Is there some rootkits? Backdoors? ^_^

Jenna:

--- Quote from: tuXXX on January 05, 2009, 06:06:01 pm ---
I found "debian - nightlies and wxWidgets (msw-)cross-build libs for "i386" and "amd64" : http://apt.jenslody.de/" =) I'm using Ubuntu 8.10 (Debian derivative) - can I use your packages? Is there some rootkits? Backdoors? ^_^

--- End quote ---

You should be able to use them, and no there aren't any rootkits (as far as I know).

And if there would be any, do you believe, that I would say the truth ?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version