Skip to content

Some changes to make things work on Linux#13

Open
jfinkhaeuser wants to merge 4 commits intopixeljetstream:mainfrom
jfinkhaeuser:posix
Open

Some changes to make things work on Linux#13
jfinkhaeuser wants to merge 4 commits intopixeljetstream:mainfrom
jfinkhaeuser:posix

Conversation

@jfinkhaeuser
Copy link

@jfinkhaeuser jfinkhaeuser commented Feb 2, 2026

I like this project! Unfortunately, it didn't build on Linux, but the changes necessary are relatively small.

I don't know if you like those particular choices (e.g. using C++ <c*> headers instead of C <*.h> ones, with the std:: implications). Happy to adjust if necessary.

This is tested with:

  • gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
  • Ubuntu clang version 22.0.0 (++20260105081943+212527c00ba6-1~exp1~20260105082109.1379)

So far only on x86_64; I don't really need more at this point.

- Add <cfloat> for FLT_* constants

It could've been <string.h> and <float.h>, but if this is C++, it might
as well be the C++ headers.
- A few headers were missing, or the C headers were used.
- Add a few std:: prefixes to functions from C++/C compatibility headers
- When trying to resolve parts, ensure / directory separators are used
  when necessary.

Without that last change, loading a model won't find sub-parts in the
"s" subdirectory of the library. This does nothing on Windows, and on
POSIX somewhat simplistically assumes that whenever a backslash is found in a
"file name", it should really be a slash.
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.

1 participant