Author Topic: Code::Blocks 20.03 for CentOS 8  (Read 5147 times)

Offline camilocc

  • Multiple posting newcomer
  • *
  • Posts: 23
    • ca2 Software Development
Code::Blocks 20.03 for CentOS 8
« on: April 12, 2020, 09:34:18 pm »
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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Code::Blocks 20.03 for CentOS 8
« Reply #1 on: April 12, 2020, 09:39:09 pm »
If you mean official CentOS ask the CentOS folks.

Tim S.


C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline camilocc

  • Multiple posting newcomer
  • *
  • Posts: 23
    • ca2 Software Development
Re: Code::Blocks 20.03 for CentOS 8
« Reply #2 on: April 12, 2020, 09:42:00 pm »
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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Code::Blocks 20.03 for CentOS 8
« Reply #3 on: April 12, 2020, 10:04:55 pm »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline camilocc

  • Multiple posting newcomer
  • *
  • Posts: 23
    • ca2 Software Development
Re: Code::Blocks 20.03 for CentOS 8
« Reply #4 on: April 12, 2020, 10:21:41 pm »
I am gonna try to start build it...

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code::Blocks 20.03 for CentOS 8
« Reply #5 on: April 12, 2020, 10:25:33 pm »
Is the wxGTK3 built using gtk2 or gtk3?
There are multiple versions... both gtk2 and gtk3 are available. Default is gtk3.

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

Offline camilocc

  • Multiple posting newcomer
  • *
  • Posts: 23
    • ca2 Software Development
Re: Code::Blocks 20.03 for CentOS 8
« Reply #6 on: April 12, 2020, 10:36:56 pm »
Hi oBFusCATed,

You wrote:

Quote
you 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code::Blocks 20.03 for CentOS 8
« Reply #7 on: April 12, 2020, 11:40:59 pm »
One of these two should work http://codeblocks.org/downloads/25 (I'll use the .tar.bz)
(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!]

Offline camilocc

  • Multiple posting newcomer
  • *
  • Posts: 23
    • ca2 Software Development
Re: Code::Blocks 20.03 for CentOS 8
« Reply #8 on: April 12, 2020, 11:54:06 pm »
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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code::Blocks 20.03 for CentOS 8
« Reply #9 on: April 12, 2020, 11:56:45 pm »
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!]

Offline camilocc

  • Multiple posting newcomer
  • *
  • Posts: 23
    • ca2 Software Development
Re: Code::Blocks 20.03 for CentOS 8
« Reply #10 on: April 13, 2020, 12:16:44 am »
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

Offline camilocc

  • Multiple posting newcomer
  • *
  • Posts: 23
    • ca2 Software Development
Re: Code::Blocks 20.03 for CentOS 8
« Reply #11 on: April 13, 2020, 12:40:22 am »
I realize that the command...

Code
rpmbuild -bs codeblocks.spec

... seems to update the *.src.rpm file.

Offline camilocc

  • Multiple posting newcomer
  • *
  • Posts: 23
    • ca2 Software Development
Re: Code::Blocks 20.03 for CentOS 8
« Reply #12 on: April 13, 2020, 12:44:20 am »
... 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)

Offline camilocc

  • Multiple posting newcomer
  • *
  • Posts: 23
    • ca2 Software Development
Re: Code::Blocks 20.03 for CentOS 8
« Reply #13 on: April 13, 2020, 01:02:02 am »
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