deanmao / node-chimera

A new kind of headless webkit integration for nodejs; a great alternative to phantomjs.
http://www.deanmao.com/2012/08/13/enter-chimera/
MIT License
847 stars 45 forks source link

Compiling path is set wrong on OSX #45

Open bugs181 opened 10 years ago

bugs181 commented 10 years ago

Can node-gyp configure and node-gyp make fine however when trying to node example for any of the examples, the following error happens.

module.js:356
  Module._extensions[extension](this, filename);
                               ^
Error: dlopen(/Users/levi/.../node-chimera/build/Release/chimera.node, 1): 
Library not loaded: /Volumes/thumb/node-chimera/qt/lib/libQt5Gui.5.dylib
  Referenced from: /Users/levi/.../node-chimera/build/Release/chimera.node
  Reason: image not found

It should be noted that I do NOT have the path /Volumes/thumb/node-chimera/qt/lib/

In fact I do not even have the volume thumb.

I have a reason to believe this has something to do with XCode setting the wrong path however could not find any way to change it. I also browsed through the source a little bit but haven't come across anything yet except for the following.

In biinding.gyp line 32 has:

'xcode_settings': {
    'OTHER_LDFLAGS': [
        '-Wl,-rpath <(module_root_dir)/qt/lib'
    ]
}