Code::Blocks Forums
User forums => Help => Topic started by: feff on March 11, 2016, 12:13:17 am
-
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
-
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.
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 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.
-
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.