Author Topic: Stop saying C::B is cross-platform. It's only Window's. Period.  (Read 4775 times)

Offline juanfal

  • Multiple posting newcomer
  • *
  • Posts: 10
Stop saying C::B is cross-platform. It's only Window's. Period.
« on: October 28, 2015, 02:40:28 pm »
You want users to participate in the development of C::B but, how, where are the guidelines… how to compile it, what does it depend on… Every new nightly build is always in binary for windows, no Linux nor Mac versions… no hints.

A cross-platform compiler?  :(

I'm now understanding why the logo of C::B is all the same colours as the window's
« Last Edit: October 28, 2015, 02:43:29 pm by juanfal »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Stop saying C::B is cross-platform. It's only Window's. Period.
« Reply #1 on: October 28, 2015, 03:11:42 pm »
You should start reading the development sections of the WiKi. If something is missing, ask in the forums or just add it yourself (it's a WiKi).

And nightlies are very often also for other platforms in the same forum thread, just not in the first post.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline yvesdm3000

  • Almost regular
  • **
  • Posts: 225
Re: Stop saying C::B is cross-platform. It's only Window's. Period.
« Reply #2 on: October 28, 2015, 07:45:04 pm »
I use it on Linux. I don't see a problem ?

Yves
Clang based code completion for Code::Blocks:   http://github.com/yvesdm3000/ClangLib

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Stop saying C::B is cross-platform. It's only Window's. Period.
« Reply #3 on: October 29, 2015, 12:42:31 am »
A cross-platform compiler?  :(
C::B is not a compiler. Why do you mention this?

For the record C::B works just fine on linux.
To compile it there are two ways:
1. use codeblocks and the supplied projects
2. use the autotools build system, this one is preferred on linux for making installable builds.
(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 thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Stop saying C::B is cross-platform. It's only Window's. Period.
« Reply #4 on: October 31, 2015, 01:55:43 pm »
Indeed, it works better under Linux than under Windows...

You have readily working 1-2 day old builds available by typing apt-get install codeblocks or its equivalent if you use a different packet manager. Building from source works just fine but is unnecessary unless you really want to do active development.

Being someone who actually wanted to do some active development again after a longer pause, I've been trying to get a working Windows SVN-trunk build together for months, without success (using both the most recent MinGW-builds and TDM compilers, using wx2.8 and 3.0, in 32 and 64 bit). When I say "working", I mean one that the build succeeds in the first place (that sounds like something that should be taken for granted, but I cannot even testify that) and one that doesn't have random, visual editor selection glitches and one that doesn't crash when you type a particular kill sequence.

So... no, Windows most definitively is not the only, or even preferred platform.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Stop saying C::B is cross-platform. It's only Window's. Period.
« Reply #5 on: October 31, 2015, 03:53:34 pm »
Interesting, I've been able to resurrect my win32 devs pretty easily. I'm using everything at their latest versions I think (tdm, wx3, etc). But I'm using a night build to develop:)
(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 thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Stop saying C::B is cross-platform. It's only Window's. Period.
« Reply #6 on: October 31, 2015, 09:15:43 pm »
Using rev. 10081 built with TDM 4.9.2 here as "production version" (this is the latest build, almost a year old, which works without any problem whatsoever).

What's funny is that I'm doing the exact same steps as before (I'm building wxWidgets with a batch file, so it's certain I'm using the same flags and all, and for building Code::Blocks I'm using the project file). Building Code::Blocks invariably gives me include errors (those are trivial to fix, but I'm surprised where they come from!) and sometimes missing vtables on TinyXML::Document (huh, wtf?), and sometimes other stuff. Which, frankly, makes no sense at all.

Now, if Code::Blocks wasn't the only software that doesn't build, I'd say my compiler is broken.

Then, if I manage to build, selecting something draws weird stuff (selecting two and a half lines instead of what I'm selecting) and the like. Or typing <return>-<return>-<tab> causes a silent crash, but not every time. Only when you haven't saved for 10 minutes and really don't feel like losing your work, it happens.

It's really odd, and I have no idea what to do about it.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Stop saying C::B is cross-platform. It's only Window's. Period.
« Reply #7 on: November 02, 2015, 03:44:52 pm »
So, I tried again. And got a version together that seems to work.

Building the wx28 version does not work with r10081 due to incorrect use of include paths. My theory: At some point in between 10081 and 10554, someone made a not-backwards-compatible change to the compiler and did not properly update the project file. Or something. Or actually, they probably did make a change to the project file, but older versions which work differently are unable to work with that.

Building the wx30 version works using r10081 with TDM-4.9.2, but is broken (selections are working "weird" to say the least, and occurrence highlighting is totally fucked up). However, building the wx28 version with the broken wx30 version works, and produces a binary that apparently works fine. At least, it passed a 5-minutes test without doing anything funny.

EDIT:
Using either of the working r10554 versions to build r10554 using TDM-5.1 works, but results in a totally-fucked-up editor.
« Last Edit: November 02, 2015, 06:41:20 pm by thomas »
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Stop saying C::B is cross-platform. It's only Window's. Period.
« Reply #8 on: November 03, 2015, 12:24:47 am »
Thomas: Have you tried a nightly? If not can you try. Just to rule out some problem with your setup.  :P
(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!]