News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

codeblocks-16.01-1 Instalation Problem

Started by feff, March 11, 2016, 12:13:17 AM

Previous topic - Next topic

feff

Hello guys,

I'm running Scientific Linux 6.7 and downloaded codeblocks-16.01-1.el7.src.rpm.

I'm following installation instructions from here http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_RPM_based_distributions.

I downloaded compiled and installed wxWidgets 3.1.0. Installation seems to be ok because wx-config --version returns 3.1.0 and I'm able to compile and run the samples provided with wxWidgets 3.1.0.

The problem is that when I try to run rpmbuild --rebuild codeblocks*.src.rpm I get:

Installing codeblocks-16.01-1.el7.src.rpm
warning: user jens does not exist - using root
warning: group jens does not exist - using root
warning: user jens does not exist - using root
warning: group jens does not exist - using root
error: Failed build dependencies:
   wxGTK >= 2.8.0 is needed by codeblocks-16.01-1.el6.i686
   wxGTK-devel >= 2.8.0 is needed by codeblocks-16.01-1.el6.i686

Can anyone help me please?

Regards,
Fadel

stahta01

#1
I suggest using wxWidgets 3.0.2 instead of 3.1.0.
NOTE: You need to enable wxWidgets 2.8 compatible mode if you use wxWidgets 3.1.0.
(Edit2: Code::Blocks still needed wxWidgets 2.8 compatible mode the last time I tried it without I got build errors.)
Edit3: "--enable-compat28" is the wx configure option that enables wxWidgets 2.8 compatible mode

Never built Code::Blocks on an RPM machine; so, I have no other help to give you.

Quote from: feff on March 11, 2016, 12:13:17 AM
I'm following installation instructions from here http://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_RPM_based_distributions.

I downloaded compiled and installed wxWidgets 3.1.0. Installation seems to be ok because wx-config --version returns 3.1.0 and I'm able to compile and run the samples provided with wxWidgets 3.1.0.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Jenna

The release-packages are build against 2.8 on most systems, so the rpm-packages for Fedora and RedHat/CentOS depend on it.
You can unpack the src.rpm manually and use the included tar-ball as usually to compile from source.
Or download the Debian source package, which is asimple tar-ball.

oBFusCATed

1. Disregard everything said by stahta01, it is not related to your case.
2. Why are you using el7 packages, when you're running el6.
3. Why aren't you using packages for wxgtk? This is what the error tells you - you don't have the wxgtk package installed (the rpm system doesn't care if you've built the lib yourself and it is available on the system). For building the source rpm you need to install wxgtk-devel(dev) package.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]