User forums > Using Code::Blocks
RPM Spec file is ready
baboo:
>Don't even try to use binary RPM's compiled for other distribution Even RPM's of Suse 9.2 doesn't work in Suse 9.3 in many cases.
>The file are linked to different lib's with different versions and features.
>So it's better using the source RPM from the download page and build it yourself.
Well, i tried to build it from sources... i got lost in a makefile.unix thing...
please give me a clue what is happening.
thank you.
TheTuxKeeper:
@baboo: Take the source RPM from the Download section and compile it with:
--- Code: ---rpmbuild --rebuild codeblocks-1.0-rc2.src.rpm
--- End code ---
To compile it, on your fedora has to be installed wxGTK2-devel, wxGTK2-xrc-devel + non devel packages (should be installed automatically because of the dependencies). I think these are the right package names, but it can also be wxGTK without the "2" instead.
It's also described in the wiki: Compiling Code::Blocks in RPM based distributions
Daniel
baboo:
Hello,
I tried to
rpmbuild --rebuild codeblocks-1.0-rc2.src.rpm
and this is the error:
cbthreadpool.cpp:253: error: 'wxUSleep' was not declared in this scope
make[4]: *** [cbthreadpool.lo] Error 1
make[4]: Leaving directory `/usr/src/redhat/BUILD/codeblocks-1.0rc2/src/sdk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/redhat/BUILD/codeblocks-1.0rc2/src/sdk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/src/redhat/BUILD/codeblocks-1.0rc2/src/sdk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/codeblocks-1.0rc2/src'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.86085 (%build)
RPM build errors:
user daniel does not exist - using root
user daniel does not exist - using root
Bad exit status from /var/tmp/rpm-tmp.86085 (%build)
Please tell me why and how can I fix it.
Thank you a lot.
TheTuxKeeper:
It the same error like here: http://forums.codeblocks.org/index.php/topic,1146.0.html
To fix it do these steps as root:
1. Extract the sources and the specfile
--- Code: ---rpm -i codeblocks-1.0-rc2.src.rpm
--- End code ---
2. move (not only copy) the sources ( /usr/src/packages/SOURCES/codeblocks-1.0rc2.tgz ) to another place, perhaps to the home directory
3. go to the home directory and extract the sources with
--- Code: ---tar -xzf codeblocks-1.0rc2.tgz
--- End code ---
4. go in the directory codeblocks-1.0rc2/src/sdk of the extracted sources
5. edit in the lines 253 and 268 of cbthreadpool.cpp "wxUSleep" to "wxUsleep" ( uppercase 'S' to lowercase 's')
6. go back to the home directory
7. create a new archive in the directory where the old ones were with
--- Code: ---tar -czf /usr/src/packages/SOURCES/codeblocks-1.0rc2.tgz codeblocks-1.0rc2
--- End code ---
8. build the rpm by using the specfile:
--- Code: ---rpmbuild -bb /usr/src/packages/SPECS/codeblocks-rc2.spec
--- End code ---
9. when everything goes right the binary RPM should be in one of the subdirectories of /usr/src/packages/RPMS (normally i586 or i686)
Puh, I hope that works and I've no typo ;)
Daniel
killerbot:
I got the same problem (suse 10) as baboo, then tried out your new method Daniel, but I get errors :
configure.in:61: error: possibly undefined macro: AM_OPTIONS_WXCONFIG
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.in:62: error: possibly undefined macro: AM_PATH_WXCONFIG
error: Bad exit status from /var/tmp/rpm-tmp.933 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.933 (%build)
Lieven
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version