User forums > General (but related to Code::Blocks)

[Solved] Can't build on Mint

<< < (3/4) > >>

Jenna:
I will install an actual mint-release and test it there also.

zeroth:
additional information about my system which may be helpful.

--- Code: ---# uname -a
Linux brandon-700GR 3.0.0-22-generic #36-Ubuntu SMP Tue Jun 12 17:13:04 UTC 2012 i686 i686 i386 GNU/Linux

# cat /etc/issue
Linux Mint 12 Lisa \n \l

# g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6.1/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

# wx-config --version
2.8.11

--- End code ---

Jenna:
I just installed Mint 1e3 with cinnamon desktop.

To be able to build C::B-core I neded libwxgtk2.8-dev, wx-common, build-essential, subversion, libtool, autoconf, libgtk2.0-dev and their respective dependencies.

Subversion is only needed to fetch the actual trunk from C::B's repo.

After checking out the sources, I called ./bootstrap, this gave me some warnings, that can safely be ignored.

I created a build-folder (build-trunk), so I do not litter the clean source tree with object- and makefiles.

I changed to the build-folder and called ../configure --prefix=/home/jens/codeblocks-tmp, so I do not need to run make install with root-privilges and can not conflict with system software (easier to remove, just wipe out the install-folders content).

Then make && make install.
And I am able to run C::B without contrib-plugins with a call to ~/codeblocks-tmp/bin/codeblocks .

No need to tweak anything in the sources, no need to deal with ldconfig.


For contrib-plugins additional dev-packages might be needed:

spellchecker -> libhunspell-dev
filemanager -> libgamin-dev
NassiShneiderman -> libboost-dev

If you don't want this, just run ../configure --help, to see how to include and exclude the contrib-plugins.

Edit:
corrected the build-essential package name (removed trailing "s")

Edit2:
On (some?) systems, at least on Mint 12, you need to explicitely install the wx-common packahge to fetch the needed automake-macros.
I would say, that this is a packaging error, because a -common package should always be installed with the packages it is created for.

stefanos_:
Thank you for testing it. My procedure is to cover plugins too, so I don't know if plugins is the reason that's causing all this fuss; what really matters is to be able to use it to do your job.

Jenna:
If the appropriate dev-packages are installed,it works for plugins also, without any changes to C::B's codebase, makefiles or whatever, just out of the box.

And it works on all my linux boxes with Fedora, CentOS, Mint, Debian and Ubuntu.
I also tested it on OpenSUSE, but this was one or two years ago, but I don't think it has changed.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version