It seems I was a bit quick to declare this a success, I am having some issues with installing built *.deb packages built from source on Kubuntu 13.04. I hope you can help point out where I went wrong
Some things I did
- downloaded source from http://svn.code.sf.net/p/codeblocks/code/trunk/
- tried to build C::B using dpkg-buildpackage, it failed. This was probably due to me having a static build of wxWidgets 2.8 installed
- re-built wxWidgets 2.8 to shared objects and tried dpkg-buildpackage again overnight
I now got the deb files below. I am puzzled as to why they are "10.05" and a much lower svn build than expected (8324)? The trunk includes changes until may 17 2013.
total 172548
-rwxrwx--- 1 ca plugdev 1770 May 19 02:32 codeblocks_10.05svn8324.dsc
-rwxrwx--- 1 ca plugdev 172167115 May 19 02:32 codeblocks_10.05svn8324.tar.gz
-rwxrwx--- 1 ca plugdev 2889928 May 19 03:59 codeblocks-common_10.05svn8324_all.deb
-rwxrwx--- 1 ca plugdev 458928 May 19 03:59 codeblocks-contrib-common_10.05svn8324_all.deb
-rwxrwx--- 1 ca plugdev 556194 May 19 04:00 codeblocks-headers_10.05svn8324_all.deb
-rwxrwx--- 1 ca plugdev 290132 May 19 04:00 codeblocks-wxcontrib-headers_10.05svn8324_all.deb
drwxrwx--- 1 ca plugdev 176 May 19 09:51 trunk
-rwxrwx--- 1 ca plugdev 314118 May 19 04:00 wxsmith-headers_10.05svn8324_all.deb
If I try
sudo dpkg -i *.deb, I get dependency problems as shown below, and I don't seem to be able to resolve them
(Reading database ... 339367 files and directories currently installed.)
Preparing to replace codeblocks-common 10.05svn8324 (using codeblocks-common_10.05svn8324_all.deb) ...
Unpacking replacement codeblocks-common ...
Preparing to replace codeblocks-contrib-common 10.05svn8324 (using codeblocks-contrib-common_10.05svn8324_all.deb) ...
Unpacking replacement codeblocks-contrib-common ...
Preparing to replace codeblocks-headers 10.05svn8324 (using codeblocks-headers_10.05svn8324_all.deb) ...
Unpacking replacement codeblocks-headers ...
Preparing to replace codeblocks-wxcontrib-headers 10.05svn8324 (using codeblocks-wxcontrib-headers_10.05svn8324_all.deb) ...
Unpacking replacement codeblocks-wxcontrib-headers ...
Preparing to replace wxsmith-headers 10.05svn8324 (using wxsmith-headers_10.05svn8324_all.deb) ...
Unpacking replacement wxsmith-headers ...
Setting up codeblocks-common (10.05svn8324) ...
Setting up codeblocks-contrib-common (10.05svn8324) ...
dpkg: dependency problems prevent configuration of codeblocks-headers:
codeblocks-headers depends on codeblocks-dev (>= 10.05svn8324); however:
Package codeblocks-dev is not installed.
codeblocks-headers depends on codeblocks-dev (<< 10.05svn8324.1~); however:
Package codeblocks-dev is not installed.
dpkg: error processing codeblocks-headers (--install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of codeblocks-wxcontrib-headers:
codeblocks-wxcontrib-headers depends on codeblocks-wxcontrib-dev (<< 10.05svn8324.1~); however:
Version of codeblocks-wxcontrib-dev on system is 12.11svn8832-1.
dpkg: error processing codeblocks-wxcontrib-headers (--install):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of wxsmith-headers:
wxsmith-headers depends on wxsmith-dev (>= 10.05svn8324); however:
Package wxsmith-dev is not installed.
wxsmith-headers depends on wxsmith-dev (<< 10.05svn8324.1~); however:
Package wxsmith-dev is not installed.
dpkg: error processing wxsmith-headers (--install):
dependency problems - leaving unconfigured
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
Processing triggers for shared-mime-info ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Errors were encountered while processing:
codeblocks-headers
codeblocks-wxcontrib-headers
wxsmith-headers
So what have I done wrong? I may need wxWidgets 2.9? Also, I am stuck as it seems the file dpkg-buildpackage is no longer in my source directory after tonights build. Does that make sense?
Your help appreciated. Sorry for making a mess.
Where are the latest updates?
Here: http://svn.code.sf.net/p/codeblocks/code/trunk/ probably something is broken in the debian files.
Do you get a proper archive using the following commands:
./bootstrap
./configure
make dist
You should get codeblocks-12.11*.tar.bz file.
Thanks again, I managed to build it properly from svn trunk, code fetched with bzr-svn with ./bootstrap + the manual steps you described in reply#19. The only issue I had was my local static wxWidgets build got in the way, causing the C::B dpkg-buildpackage to fail after some time. I solved that by "hiding" my local wx-config and "unhiding" after the dpkg-buildpackage, not sure if there is any smarter way but it worked
sudo mv /usr/local/bin/wx-config /usr/local/bin/wx-config-hide
sudo dpkg-buildpackage
sudo mv /usr/local/bin/wx-config-hide /usr/local/bin/wx-config
svn 9099 looks quite nice!
Run ./configure--help and you see the option --with-wx-config=CONFIG .
Add it (with path to correct wx-config) to DEB_CONFIGURE_EXTRA_FLAGS in debian/rules and it should work.
Thanks yet again. I have tried this on another Kubuntu 13.04 (32bit this time) and successfully built the C::B debs from the tarball on your site. The way to configure which wx-config to use reminds me of a similar problem when using C::B and trying to tell C::B/compiler to find the correct wx-config during compilation. I have a compiler setting (other options) like this
`/usr/local/bin/wx-config --version=2.8 --toolkit=gtk2 --cxxflags`
As far as I know, hardcoding this way is the only way to select the correct wx-config within C::B. I would have liked to use a global variable, but at least in the past such variables didn't expand within backticks. Is there a smarter way now? Something similar to --with-wx-config=CONFIG with global variables would be nice to have. Or simply expand global variables also within backtick strings.
Finally, once the C::B debs have been built, they must be installed in the correct order. By trial and error I found that this worked (32bit version)
sudo dpkg -i codeblocks-common_12.11svn9099_all.deb
sudo dpkg -i libcodeblocks0_12.11svn9099_i386.deb
sudo dpkg -i libwxsmithlib0_12.11svn9099_i386.deb
sudo dpkg -i codeblocks_12.11svn9099_i386.deb
sudo dpkg -i codeblocks-contrib-common_12.11svn9099_all.deb
sudo dpkg -i codeblocks-libwxcontrib0_12.11svn9099_i386.deb
sudo dpkg -i codeblocks-contrib_12.11svn9099_i386.deb
Is there some easier way to simply say "install all and resolve dependencies between them" (without using a repository)?