Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows failed to run #1

Open
leielyq opened this issue May 23, 2022 · 5 comments
Open

Windows failed to run #1

leielyq opened this issue May 23, 2022 · 5 comments

Comments

@leielyq
Copy link

leielyq commented May 23, 2022

It is easy to get started by looking at the description api, do you still maintain it?

@kyr0
Copy link
Owner

kyr0 commented Jun 8, 2022

Hey @leielyq :)

I'd be happy to fix the Windows build. I'm just lacking a Windows machine atm. Could you provide me with some information about the errors and your build environment please?

@leielyq
Copy link
Author

leielyq commented Jun 9, 2022

@funatsufumiya
Copy link
Contributor

funatsufumiya commented Sep 24, 2024

I researched reasons.

  • size_ undefined
    • => should be replaced to _size
  • unistd.h not found
    • => should be replaced to io.h on WIN32
    •  #if defined(_WIN32)
       #include <io.h>
       #else
       #include <unistd.h>
       #endif
  • cannot link because Memory definition is separated into header and body
    • => this can be fixed separate body into .cpp, but this is not ideal as header-only library.

Mainly because of 3rd reason, I cannot prepare well defined header-only PR, but I can create PR with .cpp. (You may achieve header-only as redifining whole Memory class in each OS specific macros.)

@funatsufumiya
Copy link
Contributor

funatsufumiya commented Sep 24, 2024

You can refer below, as a real working PR on Win/Mac/Linux, but I totally rewritten as Godot specific code, so some fixes are needed as for the original code.
https://github.com/funatsufumiya/godot_sharedmemory/tree/main/libsharedmemory

@funatsufumiya
Copy link
Contributor

I also ported to OpenFrameworks. Tested working well on Win/Mac/Linux.
https://github.com/funatsufumiya/ofxSharedMemory

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

No branches or pull requests

3 participants