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

OSX with simple display #83

Closed
joelcnz opened this issue Apr 7, 2016 · 3 comments
Closed

OSX with simple display #83

joelcnz opened this issue Apr 7, 2016 · 3 comments

Comments

@joelcnz
Copy link

joelcnz commented Apr 7, 2016

Joels-MacBook-Pro:arsd joelcnz$ dmd simpled.d simpledisplay.d color.d
ld: library not found for -lGL
clang: error: linker command failed with exit code 1 (use -v to see invocation)
--- errorlevel 1

The simpled.d is just a copy of the example in simpledisplay.d module.

@adamdruppe
Copy link
Owner

On Wed, Apr 06, 2016 at 08:46:17PM -0700, Joel Christensen wrote:

Joels-MacBook-Pro:arsd joelcnz$ dmd simpled.d simpledisplay.d color.d
ld: library not found for -lGL

try adding -version=without_opengl but I don't think it will work
anyway because Apple removed the X server from Mac (you can install
it separately anyway though, it is called XQuartz I believe)

Once the X server is installed it should work completely, but without
it I don't think it will work at all, you just can try without_opengl.

@joelcnz
Copy link
Author

joelcnz commented Apr 7, 2016

With -version=without_opengl I get:

Joels-MacBook-Pro:arsd joelcnz$ dmd simpled simpledisplay.d color.d -version=without_opengl
simpledisplay.d(5086): Error: no property 'mtLock' for type 'simpledisplay.SimpleWindow'
simpledisplay.d(5087): Error: no property 'mtUnlock' for type 'simpledisplay.SimpleWindow'
simpled.d(29): Error: template instance simpledisplay.SimpleWindow.eventLoop!(void delegate() @System, void delegate(KeyEvent event) @System, void delegate(MouseEvent event) @System, void delegate(dchar ch) @System) error instantiating
simpledisplay.d(5250): Error: no property 'redrawOpenGlSceneNow' for type 'SimpleWindow*'
Joels-MacBook-Pro:arsd joelcnz$

@adamdruppe
Copy link
Owner

Update on what's going on here: dmd is getting better objective C support, looks like in about two releases. Once that comes in, I will start porting sdpy to Cocoa. So probably a end of 2019 goal. (sorry about the 3 year wait)

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