Difference between revisions of "Installing Code::Blocks from source on Arch Linux"

From Code::Blocks
(remove gamin, add boost as dependency)
(Add installing of xterm and starting codeblocks)
 
Line 2: Line 2:
  
 
1. Install wget and zip
 
1. Install wget and zip
  pacman -S wget zip
+
  pacman -S wget zip xterm
  
 
2. Download the wxWidgets source code
 
2. Download the wxWidgets source code
Line 45: Line 45:
 
14. Now install codeblocks to /opt/codeblocks
 
14. Now install codeblocks to /opt/codeblocks
 
   make install
 
   make install
 +
 +
15. Start codeblocks
 +
  LD_LIBRARY_PATH=/usr/local/bin /opt/codeblocks/bin/codeblocks

Latest revision as of 09:17, 9 August 2019

Download wxWidgets 3.0.3 source code:

1. Install wget and zip

pacman -S wget zip xterm

2. Download the wxWidgets source code

wget https://github.com/wxWidgets/wxWidgets/releases/download/v3.0.3/wxWidgets-3.0.3.tar.bz2

3. Extract it

tar -x -f wxWidgets-3.0.3.tar.bz2

3.Go into the extracted directory

 cd wxWidgets-3.0.3

4. Configure wxWidgets

 ./configure --enable-unicode --enable-monolithic --enable-debug --enable-shared

5. Build it

 make

6. Install it

 make install

7. Install svn and other needed libraries

 pacman -S svn hunspell boost

8. Go back to home

 cd ~

9. Download Codeblocks code

 svn checkout https://svn.code.sf.net/p/codeblocks/code/trunk codeblocks-code

10. Go into codeblocks folder

 cd codeblocks-code

11. Bootstrap

 ./bootstrap

12. configure. We can not use the FileManager plugin because of the missing gamin library (08.2019)

 ./configure  --with-contrib-plugins=all,-FileManager --prefix=/opt/codeblocks

13. make

 make

14. Now install codeblocks to /opt/codeblocks

 make install

15. Start codeblocks

 LD_LIBRARY_PATH=/usr/local/bin /opt/codeblocks/bin/codeblocks