Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: Borneq on December 06, 2015, 06:25:04 pm

Title: How install CB from sources on Linux?
Post by: Borneq 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?
Title: Re: How install CB from sources on Linux?
Post by: oBFusCATed 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.
Title: Re: How install CB from sources on Linux?
Post by: Borneq 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 (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?
Title: Re: How install CB from sources on Linux?
Post by: stahta01 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.

Title: Re: How install CB from sources on Linux?
Post by: BlueHazzard on December 06, 2015, 08:07:39 pm
you can try a binary from: https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks-nightly
Title: Re: How install CB from sources on Linux?
Post by: Borneq 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"
Title: Re: How install CB from sources on Linux?
Post by: Borneq 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 (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
Title: Re: How install CB from sources on Linux?
Post by: yvesdm3000 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
Title: Re: How install CB from sources on Linux?
Post by: cacb 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


Title: Re: How install CB from sources on Linux?
Post by: Borneq 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 (http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Linux). Previous problem was configuring.