Debian Codegraph @

BUILD

raw
1 These notes are for developers wishing to build Code::Blocks from source.
2
3 The only external library needed to build Code::Blocks is wxWidgets.
4 You must compile wxWidgets as a monolithic DLL. Refer to the build documentation in the wxWidgets
5 sources on how to do it.
6
7 Win32 build instructions:
8 -------------------------
9 To build these sources, you must have a recent Code::Blocks nightly build installed
10 (http://www.codeblocks.org/nightly). Open the src/CodeBlocks.cbp and hit "Build". This should build
11 the IDE and the core plugins. Close the project now and open src/ContribPlugins.workspace. Hit
12 "Build". This builds all the contributed plugins.
13
14 When you 're done with the above, close Code::Blocks and run src/update.bat. This creates a working
15 environment for Code::Blocks, by copying needed files under folders "devel" and "output".
16
17 Unix build instructions:
18 ------------------------
19 You need a working autotools environment (autoconf, automake, libtool, make, etc).
20 In a terminal, go to the top level folder.
21 If you fetched the sources from SVN, you need to bootstrap the program first. So type:
22
23 ./bootstrap
24
25 This will adapt the project's configuration file to your environment. This only needs to be done
26 once: the first time you checkout the SVN version.
27
28 After this, type the following:
29
30 ./configure --with-contrib-plugins=all
31 make
32 make install
33
34 For the last step you must be root.
35 That's it.
36
37 or:
38
39 ./configure --prefix=/usr --with-contrib-plugins=all,-help
40 make
41 make install
42
43 "all" compiles all contrib plugins
44 "all,-help" compiles all contrib plugins except the help plugin
45 By default, no contrib plugins are compiled
46 Plugin names are:
47 AutoVersioning, BrowseTracker, byogames, Cccc, CppCheck, cbkoders, clangd_client, codesnippets,
48 codestat, copystrings, Cscope, DoxyBlocks, dragscroll, EditorConfig, EditorTweaks, envvars,
49 FileManager, headerfixup, help, hexeditor, incsearch, keybinder, libfinder, MouseSap,
50 NassiShneiderman, ProjectOptionsManipulator, profiler, regex, ReopenEditor, rndgen, exporter,
51 symtab, ThreadSearch, ToolsPlus, Valgrind, wxsmith, wxsmithcontrib, wxsmithaui
52
53 If the NassiShneiderman-plugin should be build, you might see this error, when you run configure:
54
55 checking whether the Boost::System library is available... yes
56 configure: error: Could not find a version of the library!
57
58 If this happens, you have to explicitly set the boost-libdir.
59 You should try to add "--with-boost-libdir=LIB_DIR" to the configure-line.
60 Depending on your system, LIB_DIR might be "/usr/lib" or "/usr/lib64".
61
62 Working on Code::Blocks sources from within Code::Blocks!
63 ---------------------------------------------------------
64 The following apply for all platforms where you have Code::Blocks installed and working.
65
66 These two folders will contain the same files and directory structure and you can use the IDE from
67 either of these two directories. This structure has been created so that you can work in
68 Code::Blocks while editing Code::Blocks' sources ;). Basically, you 'll be using the
69 "output/CodeBlocks.exe" executable. Code::Blocks' project settings are such that all output goes
70 under "devel". So you can edit Code::Blocks' sources inside Code::Blocks and, when pressing "Run",
71 it will run the "devel/CodeBlocks.exe" executable ;). This way, you can't ruin the main executable
72 you 're using (under "output"). When your changes satisfy you and all works well, quit Code::Blocks,
73 run "make update" from command line and re-launch "output/CodeBlocks.exe". You 'll be working on
74 your brand new IDE!