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

Can not init a window in MacOS #19

Closed
Ahzed11 opened this issue Jan 22, 2019 · 2 comments
Closed

Can not init a window in MacOS #19

Ahzed11 opened this issue Jan 22, 2019 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Ahzed11
Copy link

Ahzed11 commented Jan 22, 2019

Describe the bug
Can't Init a Window on MacOS. (System.DllNotFoundException)

To Reproduce
Install the Raylib-cs Nuget Package through Visual Studio Mac and write this piece of code.

using System;
using static Raylib.Raylib;

namespace myGame
{
    class MainClass
    {
        const string GAME_NAME = "My game";
        public static void Main()
        {
            int width = 800;
            int height = 400;
            InitWindow(width, height, GAME_NAME);
            SetTargetFPS(60);
        }
    }
}

Expected behavior
A window should be Initialized with the chosen size and title.

Details
System.DllNotFoundException: raylib
at at (wrapper managed-to-native) Raylib.Raylib.InitWindow(int,int,string)
at myGame.MainClass.Main () [0x0000d] in /Users/myname/Documents/Programmation/C#/myGame/myGame/Program.cs:13

Desktop

  • OS: MacOS Mojave 10.14.1
@chrisdill
Copy link
Owner

I have only tested on windows so I am not sure. I think raylib needs to be built as a .dylib to work on mac.
https://stackoverflow.com/questions/40878149/is-it-possible-to-use-dlls-with-visual-studio-mac
I cannot do it myself so thats why its not yet supported.

@chrisdill chrisdill added enhancement New feature or request help wanted Extra attention is needed labels Feb 26, 2019
@chrisdill chrisdill mentioned this issue Feb 26, 2019
5 tasks
@chrisdill chrisdill added the 2.5 label Mar 17, 2019
@angusbarnes
Copy link

Yeah @chrisdill @Ahzed11, It needs to be built as a .dylib to be compatible, this would require you to build it yourself, using the Xcode GCC implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants