Closed IonicaBizau closed 8 years ago
/cc @davidmarkclements :bell: :grinning: I know you are busy, but I need this to be fixed.
@davidmarkclements Can you please take a look here?
@ionicabizau Dude you're awesome - so sorry for inattention I'm going to have to split up my firehose of github notifications to get better visibility - I will check this out in the next 30mins merge and publish as long as no conflicts
Just started reviewing :)
:octocat: Sent from GH.
@davidmarkclements Oh, nice! :star:
this is what I'm getting in 0.12.17 when attempting to get or set
dyld: lazy symbol binding failed: Symbol not found: _CGMainDisplayID
Referenced from: /Users/davidclements/z/nearForm/screenres/build/Release/screenres.node
Expected in: dynamic lookup
dyld: Symbol not found: _CGMainDisplayID
Referenced from: /Users/davidclements/z/nearForm/screenres/build/Release/screenres.node
Expected in: dynamic lookup
Trace/BPT trap: 5
and when attempting to build on 4.1.2 I get
CXX(target) Release/obj.target/screenres/linux.o
CXX(target) Release/obj.target/screenres/osx.o
../osx.cc:29:16: error: type 'CGFloat' (aka 'double') cannot be narrowed to
'int' in initializer list [-Wc++11-narrowing]
.width = screenSize.width,
^~~~~~~~~~~~~~~~
../osx.cc:29:16: note: override this message by inserting an explicit cast
.width = screenSize.width,
^~~~~~~~~~~~~~~~
static_cast<int>( )
../osx.cc:30:17: error: type 'CGFloat' (aka 'double') cannot be narrowed to
'int' in initializer list [-Wc++11-narrowing]
.height = screenSize.height
^~~~~~~~~~~~~~~~~
../osx.cc:30:17: note: override this message by inserting an explicit cast
.height = screenSize.height
^~~~~~~~~~~~~~~~~
static_cast<int>()
what version of OS X are you running?
@davidmarkclements Hmm, it compiles successfully on these versions for me (I'm using nvm
). I am using Ubuntu 15.10.
oh I see you're using the linux bindings
ok so it's broken on OS X but for other reasons.
ok.. best thing to do here I think is to make this a branch for now till we have OS X covered
then we can publish with next dist tag
npm i screenres@next
So I don't keep blocking you I've made you a collab on both gh and npm
done
npm i screenres@next
for node 0.12.x and node 4.x.x support on Linux - OS X todo
@davidmarkclements Thanks for adding me collaborator here! :smile: I was using my fork, so it's not really a blocking thing:
{
"screenres": "IonicaBizauKitchen/screenres#updated-dependencies"
}
But having this next
tag is handy too.
A first try to fix #4–not a real fix, but this upgrades the dependencies versions and it's still working on v0.12.6. :grin:Actually it's fixing #4. I ported the C++ file too. :smile: