Author Topic: How to install Code::Blocks on Debian 8.0 Jessie using Jens repo source files.  (Read 15031 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Draft copy of wxWidgets 2.8 directions; plan to update in a few days.
Code
# nano /etc/apt/sources.list
deb-src http://debian.cse.msu.edu/debian/ sid main

mkdir -p ~/devel/deb_source_libs

cd ~/devel/deb_source_libs
apt-get source wxwidgets2.8

su
apt-get install libgl1-mesa-dev
apt-get install libglu1-mesa-dev
apt-get build-dep wxwidgets2.8
exit

cd /home/stahta01/devel/deb_source_libs/wxwidgets2.8-2.8.12.1+dfsg2
dpkg-buildpackage -rfakeroot -uc

cd ~/devel/deb_source_libs
su

# Needed before installing wxGTK debs
apt-get install wx-common

# Needed to run Code::Blocks
dpkg -i libwxbase2.8-0_2.8.12.1+dfsg2-2_amd64.deb
dpkg -i libwxgtk2.8-0_2.8.12.1+dfsg2-2_amd64.deb

# Needed to build Code::Blocks SVN using Code::Blocks
dpkg -i wx2.8-headers_2.8.12.1+dfsg2-2_amd64.deb
dpkg -i libwxbase2.8-dev_2.8.12.1+dfsg2-2_amd64.deb
dpkg -i libwxgtk2.8-dev_2.8.12.1+dfsg2-2_amd64.deb

exit

Code
# Steps to build Code::Blocks recent nightly linked with wxGTK2.8 under Debian 8.0 "Jessie" using jenslody repo.
# I am doing this to learn how to build deb files
# If you just want to build Code::Blocks; the bootstrap, configure, and make method is better.
# But, this way does have the advantage of being able to install the deb files.


# Add Code::Blocks source location needed for "apt-get source codeblocks"
su
# edit the file /etc/apt/sources.list
nano /etc/apt/sources.list
# add the next two lines using the editor
deb     https://apt.jenslody.de/stable stable main
deb-src https://apt.jenslody.de/stable stable main

# Installs the https protocal for apt needed when using jenslody repo.
apt-get install apt-transport-https
apt-get update
# Installing jens-lody-debian-keyring results in less future warnings
apt-get install jens-lody-debian-keyring
exit

mkdir -p ~/devel/deb_source_libs
cd ~/devel/deb_source_libs
apt-get source codeblocks

# You can now comment out the two lines added to /etc/apt/sources.list

# Verify that wxWidgets (wxGTK) 2.8 is in the list
wx-config --list
# Change to wxGTK 2.8; the build currently errors out using wxGTK 3.0
update-alternatives --config wx-config

cd ~/devel/deb_source_libs/codeblocks-13.12svn10234
fakeroot debian/rules clean
fakeroot debian/rules build
fakeroot debian/rules binary

cd ~
cd ./devel/deb_source_libs
su
# I do NOT like xterm so; I remove it very often; so, I need to add it back to install one of the deb files.
apt-get install xterm xbitmaps

dpkg -i codeblocks-common_13.12svn10234-1_all.deb
dpkg -i codeblocks-additional-common_13.12svn10234-1_all.deb
dpkg -i codeblocks-contrib-common_13.12svn10234-1_all.deb

dpkg -i libcodeblocks0_13.12svn10234-1_amd64.deb   
dpkg -i codeblocks_13.12svn10234-1_amd64.deb

# The next line installs two debs at once since they depend on each other
dpkg -i codeblocks-headers_13.12svn10234-1_all.deb codeblocks-dev_13.12svn10234-1_amd64.deb


dpkg -i libwxsmithlib0_13.12svn10234-1_amd64.deb
dpkg -i wxsmith-dev_13.12svn10234-1_amd64.deb
dpkg -i libwxsmithlib0-dev_13.12svn10234-1_amd64.deb
dpkg -i wxsmith-headers_13.12svn10234-1_all.deb                # wxsmith-headers depends on wxsmith-dev


dpkg -i codeblocks-libwxcontrib0_13.12svn10234-1_amd64.deb
dpkg -i codeblocks-contrib_13.12svn10234-1_amd64.deb

dpkg -i codeblocks-dbg_13.12svn10234-1_amd64.deb
dpkg -i codeblocks-contrib-dbg_13.12svn10234-1_amd64.deb


dpkg -i codeblocks-wxcontrib-dev_13.12svn10234-1_amd64.deb
dpkg -i codeblocks-wxcontrib-headers_13.12svn10234-1_all.deb   # codeblocks-wxcontrib-headers depends on codeblocks-wxcontrib-dev

dpkg -i codeblocks-additional_13.12svn10234-1_amd64.deb
dpkg -i codeblocks-additional-dbg_13.12svn10234-1_amd64.deb

exit

# Information notes Only Below
I got the below message during the clean step.
src/plugins/headerguard/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
« Last Edit: May 15, 2015, 05:03:40 pm by stahta01 »
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 linlinchn

  • Single posting newcomer
  • *
  • Posts: 3
Now Code::Blocks is in the new testing repo(strech)~! And is compiled using wx3.0.
Everyone can install codeblocks using apt-get install codeblocks(may need sudo or su root), after get testing update sources into sources.list`!
« Last Edit: May 21, 2015, 02:33:39 am by linlinchn »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Now Code::Blocks is in the new testing repo(strech)~! And is compiled using wx3.0.
Everyone can install codeblocks using apt-get install codeblocks(may need sudo or su root), after get testing update sources into sources.list`!

Remember Code::Blocks has more bugs when linked to wxGTK3.0 instead of wxGTK2.8; so; report the wxWidgets version when reporting errors to the CB team.

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