User forums > Help

trunk/SVN7712 Build Problem

<< < (2/2)

Jenna:

--- Quote from: oBFusCATed on January 24, 2012, 12:29:55 pm ---Jens:
Thank you.
Does this mean that we can build C::B out of the source tree?
If yes, what are the needed commands?

--- End quote ---
I'm not sure, if I understood correctly what you mean.
Building from C::B's source-root works like always:

--- Quote ---cd /path/to/codeblocks-source
./bootstrap (if any of the *.am-files or configure.in have changed)
./configure --prefix=/path/to/installation/dir/if/not/usr/local --<any_other_parameters_like_with-contrib-plugins=all>
make && make install
--- End quote ---

If you don't want to build from inside C::B's root-folder, what is a good idea in general (because you keep the source-tree clean of object and other build-files), you have to do some additional steps:

--- Quote ---cd /path/to/codeblocks-source
./bootstrap (if any of the *.am-files or configure.in have changed)
mkdir -p /path/to/build-directory ( -p also creates missing parent-folders)
cd /path/to/build-directory
/path/to/codeblocks-source/configure --prefix=/path/to/installation/dir/if/not/usr/local --<any_other_parameters_like_with-contrib-plugins=all>
make && make install
--- End quote ---

The makefiles and all the intermediate build-files (object-files, *.la etc.) will be created below /path/to/build-directory and do not litter the sources tree and can easily be removed with rm -rf /path/to/build-directory/* .

In most cases the build-directory is created inside the root-folder of the sources, but this is not necessary.
After running the configure-script, neither the sources-tree, nor the build-folder should be moved to another place.
In most cases this is possible for the build-folder, but this is not guaranteed, because the absolute path to it is also stored inside the makefiles.

By the way:
the use of wildcards inside the Makefile.am's might break the build, if other make-executables than gnu-make are used (but this only affects make dist in our build-system as far as I know).

oBFusCATed:
Thanks for the explanation, this was what I was asking for.

mmccarty12:
jens and oBFusCATed,

Whatever you did worked for me.  Thanks for taking the time to help.

Navigation

[0] Message Index

[*] Previous page

Go to full version