Author Topic: How install CB from sources on Linux?  (Read 5705 times)

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
How install CB from sources on Linux?
« on: December 06, 2015, 06:25:04 pm »
My installed CodeBlocks is two year old. Nightly builds I see are only for Windows, I need Linux. How can download source code and how can I build it?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: How install CB from sources on Linux?
« Reply #1 on: December 06, 2015, 06:46:25 pm »
You have plenty of options:
1. use svn - https://sourceforge.net/p/codeblocks/code/HEAD/tree/
2. use git, search github for cloned repos
3. use the newly released 15.12rc1 - http://forums.codeblocks.org/index.php?topic=20729.0 but for some reason we have not posted a source package.

And generally there are repos for the night builds for the more popular distros.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: How install CB from sources on Linux?
« Reply #2 on: December 06, 2015, 07:52:19 pm »
I use way described at http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Linux and installed it from SVN, but I have errors:
- if I try launch from Mint menu start - nothing do
- if I try run from terminal: undefined symbol: cbEVT_APP_CMDLINE
(source has been compiled but application not runs)
Maybe I must use not last SVN version but 15.12rc1 ? how get from SVN this version?
« Last Edit: December 06, 2015, 07:59:20 pm by Borneq »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: How install CB from sources on Linux?
« Reply #3 on: December 06, 2015, 08:04:53 pm »
Did you self-compile wxWidgets?
If yes, what version of wxWidgets was used?
If not, what version of wxWidgets is returned by wx-config?

Tim S.

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: How install CB from sources on Linux?
« Reply #4 on: December 06, 2015, 08:07:39 pm »

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: How install CB from sources on Linux?
« Reply #5 on: December 06, 2015, 09:04:45 pm »
Version 2.8;
Something went bad.
i have restored Linux on VirtualBox from snapshot.
Especially I not sure if edit /etc/ld.so.conf  - in this file was line with include, I add next line " /opt/wx/2.8/lib"

Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: How install CB from sources on Linux?
« Reply #6 on: December 06, 2015, 09:12:39 pm »
you can try a binary from: https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks-nightly
In
https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks-nightly/+packages
is many .deb files, how install from this deb ? I must download to one directory all, or it is possible download automatically with wget? How install from many files?
For one file: sudo dpkg -i DEB_PACKAGE
« Last Edit: December 06, 2015, 09:14:25 pm by Borneq »

Offline yvesdm3000

  • Almost regular
  • **
  • Posts: 225
Re: How install CB from sources on Linux?
« Reply #7 on: December 06, 2015, 10:05:13 pm »
You only need 1 deb files. The different deb files are for each version of Ubuntu, so you need to pick the correct one.

Yves
Clang based code completion for Code::Blocks:   http://github.com/yvesdm3000/ClangLib

Offline cacb

  • Lives here!
  • ****
  • Posts: 536
Re: How install CB from sources on Linux?
« Reply #8 on: December 06, 2015, 11:47:39 pm »
My installed CodeBlocks is two year old. Nightly builds I see are only for Windows, I need Linux. How can download source code and how can I build it?

I do it this way on Kubuntu
http://forums.codeblocks.org/index.php/topic,18580.msg127254.html#msg127254

...except nowadays download *.orig.tar.gz from https://apt.jenslody.de/stable/pool/main/
otherwise same procedure as described



Offline Borneq

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: How install CB from sources on Linux?
« Reply #9 on: December 10, 2015, 10:57:35 am »
It succeeded compile it from sources by http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Linux. Previous problem was configuring.