News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Code::Blocks 20.03 for CentOS 8

Started by camilocc, April 12, 2020, 09:34:18 PM

Previous topic - Next topic

camilocc

Hi Dear Code::Blocks Team,

Will be there a Code::Blocks 20.03 binary release for CentOS 8?

I was thinking about building it by following the build instructions but I didn't find build instructions specifically for this build as it seems to be quite different and using wxGTK3.

It seems El8 (Enterprise Linux 8 / CentOS 8 ) had already built. wxGTK3.

I don't know though if the build procedure and dependencies for 20.03 are too much different from the previous instructions as it seems to be a big update.

Best regards,

Camilo
[url="https://ca2.software/"]https://ca2.software/[/url]

[url="https://twitch.tv/ca2software"]https://twitch.tv/ca2software[/url]
[url="https://mixer.com/ca2software"]https://mixer.com/ca2software[/url]
[url="https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw"]https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw[/url]

stahta01

If you mean official CentOS ask the CentOS folks.

Tim S.


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]

camilocc

#2
Hi Tim,

I ask that, because there seems to be there a "tradition" to offer the CentOS builds in the readily available binary packages at Code::Blocks site.

I modified a bit the original post, because I think I could post some more possibly relevant information.

Best regards,

Camilo
[url="https://ca2.software/"]https://ca2.software/[/url]

[url="https://twitch.tv/ca2software"]https://twitch.tv/ca2software[/url]
[url="https://mixer.com/ca2software"]https://mixer.com/ca2software[/url]
[url="https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw"]https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw[/url]

stahta01

Is the wxGTK3 built using gtk2 or gtk3?
If gtk2, that is normal wxGTK3 for Code::Blocks, and it should work without any problems.
if gtk3, that is not normal, and it will at least look different.

If you want a CB user built version look for links in the Nightly builds for people who do that.

Tim S.
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]

camilocc

I am gonna try to start build it...
[url="https://ca2.software/"]https://ca2.software/[/url]

[url="https://twitch.tv/ca2software"]https://twitch.tv/ca2software[/url]
[url="https://mixer.com/ca2software"]https://mixer.com/ca2software[/url]
[url="https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw"]https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw[/url]

oBFusCATed

Quote from: stahta01 on April 12, 2020, 10:04:55 PM
Is the wxGTK3 built using gtk2 or gtk3?
There are multiple versions... both gtk2 and gtk3 are available. Default is gtk3.

Quote from: stahta01 on April 12, 2020, 10:04:55 PM
If gtk2, that is normal wxGTK3 for Code::Blocks, and it should work without any problems.
This is what I thought, too... but this isn't the case..

@camilocc: I don't want to provide wxgtk3 + gtk3 builds, because I know they are pretty broken. I've tried to prepare wxgtk3 + gtk2 builds but they didn't work in my vm, no idea why. If you want to prepare packages you can get the source code archive and do rpmbuild -ta <path-to-source-code-archive>. Install all the deps adjust the spec file and after some iterations you'll have a set of rpm. Then you can come back and leave some feedback how have it worked. :)
(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!]

camilocc

Hi oBFusCATed,

You wrote:

Quoteyou can get the source code archive and do rpmbuild

I run this rpmbuild -ta on the .tar.xz file?

Sorry, for my ignorance.

This seems to be quite a shortcut for the build process.

Or is it another special archive?

If so, would post a link or tell which "source code archive" I should use as argument for rpmbuild -ta ?

Best regards,

Camilo
[url="https://ca2.software/"]https://ca2.software/[/url]

[url="https://twitch.tv/ca2software"]https://twitch.tv/ca2software[/url]
[url="https://mixer.com/ca2software"]https://mixer.com/ca2software[/url]
[url="https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw"]https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw[/url]

oBFusCATed

(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!]

camilocc

#8
Hi obfuscated,

I get these dependencies I cannot solve...

wxGTK >= 2.8.0 is needed by codeblocks-20.03-1.el8.x86_64
wxGTK-devel >= 2.8.0 is needed by codeblocks-20.03-1.el8.x86_64

Do you have any hint?

Best regards,

Camilo
[url="https://ca2.software/"]https://ca2.software/[/url]

[url="https://twitch.tv/ca2software"]https://twitch.tv/ca2software[/url]
[url="https://mixer.com/ca2software"]https://mixer.com/ca2software[/url]
[url="https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw"]https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw[/url]

oBFusCATed

rpmbuild -ta command has created a codeblocks.spec file in your SPEC folder.
Inspect and edit it to match the packages you have available and you can use.

If you use a non-default wxgtk you'll have to pass a --with-wxconfig option to our configure script.

pkgs.org is a great resource for finding packages.
(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!]

camilocc

#10
Hi obfuscated,

I am not familiar with rpmbuild.

If I edit codeblocks.spec at SPECS folder, what step/command I should run next.

I try to edit it but it seems to become overridden by the command rpmbuild -ta *.src.rpm.

Can you help me with this, please? Which command or commands I should run next after editing codeblocks.spec?

And if I were to edit --with-wxconfig what I should put next to it? Do you have any resource or hint about it?

Best regards,

Camilo
[url="https://ca2.software/"]https://ca2.software/[/url]

[url="https://twitch.tv/ca2software"]https://twitch.tv/ca2software[/url]
[url="https://mixer.com/ca2software"]https://mixer.com/ca2software[/url]
[url="https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw"]https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw[/url]

camilocc

I realize that the command...

rpmbuild -bs codeblocks.spec

... seems to update the *.src.rpm file.
[url="https://ca2.software/"]https://ca2.software/[/url]

[url="https://twitch.tv/ca2software"]https://twitch.tv/ca2software[/url]
[url="https://mixer.com/ca2software"]https://mixer.com/ca2software[/url]
[url="https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw"]https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw[/url]

camilocc

... it is building....

(I hope I don't find errors I don't know how to fix... or maybe I post the error message for the specialists on board!!)  :) ;D 8)
[url="https://ca2.software/"]https://ca2.software/[/url]

[url="https://twitch.tv/ca2software"]https://twitch.tv/ca2software[/url]
[url="https://mixer.com/ca2software"]https://mixer.com/ca2software[/url]
[url="https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw"]https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw[/url]

camilocc

It created the package!!

And I could install it at the CentOS 8.1 box I used to build it!!

Gonna test drive at other machine (with existing source I usually compiled with CodeBlock 17.12.)

Thank you very much for the help.

The only changes I made to the codeblocks.spec file were:

wxGTK -> wxGTK3
wxGTK-devel -> wxGTK3-devel


Best regards,

Camilo
[url="https://ca2.software/"]https://ca2.software/[/url]

[url="https://twitch.tv/ca2software"]https://twitch.tv/ca2software[/url]
[url="https://mixer.com/ca2software"]https://mixer.com/ca2software[/url]
[url="https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw"]https://www.youtube.com/channel/UCOb_bZgtRx3kJ_uXaEUSDzw[/url]