Skip to content

build: fix INCLUDE path for non-uspace builds (fixes #3873)#3892

Closed
grandixximo wants to merge 1 commit intoLinuxCNC:masterfrom
grandixximo:fix/3873
Closed

build: fix INCLUDE path for non-uspace builds (fixes #3873)#3892
grandixximo wants to merge 1 commit intoLinuxCNC:masterfrom
grandixximo:fix/3873

Conversation

@grandixximo
Copy link
Copy Markdown

RTDIR points to the realtime prefix (e.g. /usr/realtime-5.4.280-rtai-amd64 for RTAI), so -I$(RTDIR)/../include resolved to /usr/include instead of the project's include/ directory, breaking all <rtapi.h> and similar angle-bracket includes for userspace objects in RTAI builds.

Use $(EMC2_HOME)/include which always resolves to the project's include/ directory regardless of build system.

RTDIR points to the realtime prefix (e.g. /usr/realtime-5.4.280-rtai-amd64
for RTAI), so -I$(RTDIR)/../include resolved to /usr/include instead of
the project's include/ directory, breaking all <rtapi.h> and similar
angle-bracket includes for userspace objects in RTAI builds.

Use $(EMC2_HOME)/include which always resolves to the project's include/
directory regardless of build system.
@grandixximo
Copy link
Copy Markdown
Author

@BsAtHome not sure if this fixes everything, but at least it builds

@BsAtHome
Copy link
Copy Markdown
Contributor

I already have a PR in the pipeline. This one is afaics incomplete.

@grandixximo
Copy link
Copy Markdown
Author

ok, nevermind then

@grandixximo grandixximo deleted the fix/3873 branch March 31, 2026 13:49
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.

2 participants