Currently only SDL based Ghost available.
Details
Diff Detail
Event Timeline
| source/blender/blenlib/intern/fileops.c | ||
|---|---|---|
| 630–632 | On second thoughts. Best to use BLI_is_dir | |
| source/blender/blenlib/intern/fileops.c | ||
|---|---|---|
| 632 | Does defining _BSD_SOURCE or _DEFAULT_SOURCE in the CMAKE_C_FLAGS resolve this? see: https://stackoverflow.com/questions/9241538 & http://man7.org/linux/man-pages/man3/readdir.3.html | |
@Zoltán Mizsei (miqlas) are there other changes needed/planned after initial support is added?
If we accept the patch, then need many more changes for good support - I'd rather know this in advance.
Yes, native Ghost support. SDL isn't ideal. Here is the earlier patches: https://github.com/haikuports/haikuports/blob/master/media-gfx/blender/patches/blender-2.49b.patch
Lot of things changed, it doesn1t applies cleanly anymore, so i'm plan to try to resurect this.
| source/blender/blenlib/intern/fileops.c | ||
|---|---|---|
| 632 | I suppose : yes. | |
Regarding Ghost - its already quite a bit of overhead to support 4x different backends when updating ghost.
I would really prefer to have Haiku use & improve SDL (or maintain Ghost changes in a branch).
Currently Haiku is a very niche system, so I'd rather not add avoidable maintenance overhead.
Especially when its not clear if there are many/any active users on the platform.
If it becomes more popular with users we can always re-evaluate this.
| source/blender/blenlib/intern/fileops.c | ||
|---|---|---|
| 632 | This can be added to CMAKE_C_FLAGS, CMAKE_CXX_FLAGS then. | |
Bah, the test-build just failed.
As you told, i tried to add -D_BSD_SOURCE to the CFLAGS, but the problem was actually with d_type:
"error: const struct dirent has no member named 'd_type'"
It is just not available on Haiku.
So the current patchset is broken on Haiku. Should i revert it to the earlier version?
Reverted BSD_SOURCE, as dirent still not ok with it.
Sadly it seems this dirent patch actually needed.
| CMakeLists.txt | ||
|---|---|---|
| 787 | Why is this needed here? (Good to add a comment since Blender isn't doing networking.) Shouldn't this be added to platform_unix.cmake ? | |
| CMakeLists.txt | ||
|---|---|---|
| 787 | There is no -lsocket on Haiku, so the socket functionality resides in -lnetwork. | |
Generally LGTM
| source/blender/blenlib/intern/fileops.c | ||
|---|---|---|
| 632 | Still have a slight preference for BLI_is_dir. | |
