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

Not able to run libxmljs on node-webkit #237

Closed
piyushdevani opened this issue Jun 23, 2014 · 5 comments
Closed

Not able to run libxmljs on node-webkit #237

piyushdevani opened this issue Jun 23, 2014 · 5 comments

Comments

@piyushdevani
Copy link

Hi,
When I use node on my x64bit Windows machine , I can use libxmljs properly,
but if I try to do the same thing in node-webkit console, I am getting this error.

%1 is not a valid Win32 application.
D:\projrepo\nwtest\node_modules\libxmljs\build\Release\xmljs.node

Please help.
Thanks,
Piyush

@peterchylewski
Copy link

Same here on Mac OS X (10.9.3).

@polotek
Copy link
Collaborator

polotek commented Jun 30, 2014

I doubt we will have much time to look into this. You should ask on stack overflow to get someone to help you debug. If you find that it's something we can fix in libxmljs, come back with details and we'll look into it.

@jacobq
Copy link

jacobq commented Jul 1, 2014

I ran into this too. I tried using the 32-bit version of node and then got stuck trying to debug this error:

Uncaught Error: Invalid access to memory location.
<snip>\node_modules\libxmljs\build\Release\xmljs.node 

My plan at this point is to try using this older port of libxml to JavaScript using Emscripten.

UPDATE: In case anyone else is going down this road, I ran into (what seems to me to be) a bizarre issue where it would silently fail and return a blank string. Now I'm looking at bundling portable/pre-compiled binaries for libxml2/xmllint.

@piyushdevani
Copy link
Author

I tried running this on 32 bit console, but didn't work. I finally gave up and found something else altogether to fulfill my requirements. :)

@watheuer
Copy link

I was able to get it running using nw-gyp.

$ cd node_modules/libxmljs
$ npm install -g nw-gyp
$ nw-gyp configure --target=0.12.2
$ nw-gyp build

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

6 participants