-
Notifications
You must be signed in to change notification settings - Fork 43
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
does not build under osx #7
Comments
Same issue on xubuntu 11.10 |
Is this from npm or from git? I thought these issues were already fixed. |
from npm |
Try it now, I pushed a new version that works on node v0.6.14 using node-gyp. |
Yes, that solved it, thanks :-) |
|
I can make it build, but then: dyld: lazy symbol binding failed: Symbol not found: _SDL_Init dyld: Symbol not found: _SDL_Init Trace/BPT trap: 5 |
Same here. OSX 10.8.1. node v0.8.6
CXX(target) Release/obj.target/libnode-sdl/src/helpers.o I installed sdl through homebrew: /usr/local/Cellar/sdl/1.2.15/include/SDL/SDL.h Looks like this is the issue: http://forums.libsdl.org/viewtopic.php?t=5997&sid=73840727929628eced1704a39bdc7fba Changing the includes to SDL/SDL.h seems to make it happy. |
These bindings can be built on OS X right now. (my main development machine is OS X) However, the library paths are currently hardcoded to use /usr/local/lib/. I am going to be working on making it easier to build the bindings without having those paths hardcoded :) If the problem persists with the major overhaul, please feel free to open a new issue. I am currently cleaning out old issues so that new ones with the overhaul can be brought front and center. |
@Freezerburn I'm trying to use cylon to talk to a joystick on my macbook with 10.9.5. The hybridgroup repo has issues disabled. Do you have instructions for correctly installing sdl and this addon. Just installing via npm fails. I have both SDL from brew and the framework downloaded from the website. |
@creationix If you still need help with this: You should pull down the repo (and not use NPM, which needs to be updated) and build from that. You might need to modify the locations that the build looks for the SDL dylibs to where brew put them, as they're hardcoded to /usr/local/lib. |
Thanks. I ended up giving up entirely on SDL and using another library for gamepad support. The new bindings work great and are super easy to build. https://github.com/creationix/node-gamepad |
@Freezerburn I'm still in need of doing this. Could you please elaborate on the install instructions plse! It would help me out a lot. I'm currently lost. I cloned this repo into my node_modules directory of the project i'm working on that needs sdl. i renamed the folder from "node-sdl" to "sdl" as the node-code inlcuded a 'var SDL = require('sdl');' statement. Could you please help me with the installation, i'm running OS X10.11, node v.4.4.7, npm 2.15.8. Thank you |
node 0.6.14
sdl 1.2.15
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local
Checking for program sdl-config : /usr/local/bin/sdl-config
'configure' finished successfully (0.067s)
Waf: Entering directory
/Users/seb/gitrepos/astro/ceilingled/node_modules/sdl/build' [1/3] cxx: src/sdl.cc -> build/Release/src/sdl_1.o [2/3] cxx: src/helpers.cc -> build/Release/src/helpers_1.o ../src/sdl.cc: In function 'v8::Handle<v8::Value> sdl::WaitEvent(const v8::Arguments&)': ../src/sdl.cc:284: error: invalid conversion from 'int (*)(eio_req*)' to 'void (*)(eio_req*)' ../src/sdl.cc:284: error: initializing argument 1 of 'eio_req* eio_custom(void (*)(eio_req*), int, int (*)(eio_req*), void*)' Waf: Leaving directory
/Users/seb/gitrepos/astro/ceilingled/node_modules/sdl/build'Build failed: -> task failed (err #1):
{task: cxx sdl.cc -> sdl_1.o}
The text was updated successfully, but these errors were encountered: