GithubHelp home page GithubHelp logo

Comments (5)

tomaka avatar tomaka commented on August 17, 2024

cc @DavidPartouche

from glutin.

 avatar commented on August 17, 2024

@bvssvni I've committed the fix in DavidPartouche/rust-cocoa, could you try to compile again and confirm that it works on your machine?

from glutin.

bvssvni avatar bvssvni commented on August 17, 2024

I get this:

Build failed, waiting for other jobs to finish...
Failed to run custom build command for `cocoa v0.1.0 (https://github.com/DavidPartouche/rust-cocoa#aa8982be)`
Process didn't exit successfully: `make -f makefile.msgsend` (status=2)
--- stdout
cc -Wall src/msgsend.m -o /Users/sven/rust/glutin/target/native/cocoa-ebcc268ffcd672e2/msgsend.o -c

--- stderr
src/msgsend.m:105:1: error: unknown type name 'NSEventSubtype'; did you mean 'NSEventType'?
NSEventSubtype invoke_msg_NSEventSubtype(id theReceiver, SEL theSelector) {
^~~~~~~~~~~~~~
NSEventType
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:56:20: note: 'NSEventType' declared here
typedef NSUInteger NSEventType;
                   ^
src/msgsend.m:106:13: error: use of undeclared identifier 'NSEventSubtype'; did you mean 'NSEventType'?
    return (NSEventSubtype)objc_msgSend(theReceiver, theSelector);
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSEvent.h:56:20: note: 'NSEventType' declared here
typedef NSUInteger NSEventType;
                   ^
2 errors generated.
make: *** [/Users/sven/rust/glutin/target/native/cocoa-ebcc268ffcd672e2/msgsend.o] Error 1

from glutin.

 avatar commented on August 17, 2024

I didn't see this error, NSEventSubtype is only available from 10.10
I've removed it from the code so now it should work.

from glutin.

bvssvni avatar bvssvni commented on August 17, 2024

It works :)

from glutin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.