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

Support for macOS #5

Closed
andraghetti opened this issue May 27, 2023 · 5 comments
Closed

Support for macOS #5

andraghetti opened this issue May 27, 2023 · 5 comments

Comments

@andraghetti
Copy link

Hi!

Thank you for this plugin! Really useful!

I would like to expand it adding support for macOS. Can you tell me briefly how to achieve that?

Thank you!

@DoubleDeez
Copy link
Owner

Hey, I don't have a mac to test on but my post on how to (maybe) get it working for Android should apply to Mac as well: #4 (comment)

Let me know how it goes

@andraghetti
Copy link
Author

andraghetti commented May 28, 2023

Oh yes, thanks, sorry I'm not used to cmake. This is how to make it work:

  • cmake -S . -B build -D FASTNOISE2_NOISETOOL=OFF -D FASTNOISE2_TESTS=OFF -D BUILD_SHARED_LIBS=ON
  • cmake --build build --config release

But the problem now is that I get files that are not ddls.

~> ls build/lib
libCorradeUtility.a          libMagnumImGuiIntegration.a
libFastNoise.a               libMagnumSceneGraph.a
libFastNoise.dylib*          libMagnumShaders.a
libMagnum.a                  libglfw3.a
libMagnumGL.a                libimnodes.a
libMagnumGlfwApplication.a

So I think you need to support that name as well:

macOS: Dynamic libraries on macOS typically have the file extension ".dylib" (e.g., "libFastNoise.dylib").
Windows: Dynamic libraries on Windows have the file extension ".dll" (e.g., "FastNoise.dll").

@DoubleDeez
Copy link
Owner

Okay I made a new branch (https://github.com/DoubleDeez/UnrealFastNoise2/tree/multi-platform-support) with some changes to FastNoise2.build.cs that will hopefully support Mac (and iOS and Android).

I've added the binaries for Mac (and linux) so you should only need to pull the branch and try building. Let me know how that goes @andraghetti

@andraghetti
Copy link
Author

Thanks for your effort and sorry for the late response! I ended up using this plugin so I could build the original FastNoise2 and link it automatically without having the binaries saved in a usually gitignored folder (Binaries).

Anyway, your branch works so I think we can close this.

@DoubleDeez
Copy link
Owner

Thanks for verifying!

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

2 participants