Skip to content

d/configure: Prepare for execution on other OS#3780

Open
smoe wants to merge 2 commits intoLinuxCNC:masterfrom
smoe:other_os
Open

d/configure: Prepare for execution on other OS#3780
smoe wants to merge 2 commits intoLinuxCNC:masterfrom
smoe:other_os

Conversation

@smoe
Copy link
Collaborator

@smoe smoe commented Feb 2, 2026

Somehow I feel like it may possibly not be completely pointless to consider a compilation of LinuxCNC or parts of it on non-Linux Operating Systems. At least we should prepare debian/configure for the event that someone is trying it. Here is what I came up with. My personal immediate motivation is to support writers of the documentation who are likely to have a the source tree on whatever OS their machine may be.

My attempt on MacOS did not complete a configure run. But that is just because of missing packages in brew - nothing technical. Conda may also be worthwhile to have a look, but the libgpiod-dev equivalent for either I fail to find. It may be of interest to come up with a configure option that prepared for the documentation only.

Committer: Steffen Moeller <moeller@debian.org>
@rene-dev
Copy link
Member

rene-dev commented Feb 2, 2026

Afaik it does build and run on freebsd, and on macos I got stuck getting the linker to create hal modules.

@andypugh
Copy link
Collaborator

andypugh commented Feb 4, 2026

I did look into this and MacOS does have some form of RT API. But I think that Rene said is wasn't useful for us.
https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/KernelProgramming/scheduler/scheduler.html

@smoe
Copy link
Collaborator Author

smoe commented Feb 7, 2026

At the very moment, starting of with what brew provides, LinuxCNC does not configure on MacOS. I do not know where any sort of direction for users of other platforms should be gatherning, so I must admit. And d/configure should eventually be removed in favour of a distribution-independent setup, I guess. So this PR is a bit of an experimental nature. I happily change it any way you want, am just uncertain if that URL should be in the d/configure sources or rather in some new section of our documentation - or maybe there should be a forum section for porting LinuxCNC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants