-
Notifications
You must be signed in to change notification settings - Fork 50
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
creates a not loadable module for node-serialport #7
Comments
Thanks for reporting. Could you please upload your binary somewhere so I can try it from here? |
which binary ? serialport.node ? I think it would be better if you try this on a windows machine
then rebuild it with nw-gyp by hand
and then try to load it from any node-webkit application using node-webkit 0.5.0
you will see import error in the inspector (the same errors you would see requiring it directly from a normal node shell) This procedure works as expected on macosx. |
sorry, closed by accident |
On Windows7, it works well. |
Please check whether |
let's see, I am using windows XP + visual studio 2010 (there is also vs2008 installed)
So far it works then
As you can see the file exists. It is not loaded by the standard node which
But the file is there
Sorry I have been verbose but it might be useful. What could I try ? |
This is my built serialport.node |
I use your file, it still works. This is my code: https://s3.amazonaws.com/node-webkit/owen-cloud/app.zip |
1 similar comment
I use your file, it still works. This is my code: https://s3.amazonaws.com/node-webkit/owen-cloud/app.zip |
oh my.. I changed the name from nw.exe to myAppName.exe and if I do that it does not find the module anymore (even if the path where it says it's looking for is right). If i rename it back to nw.exe it works. Also it works if I copy the exe and have both myAppName.exe and nw.exe in the application folder. So.. it's "solved". It's not a bug of nw-gyp it's just strange behaviour of nw. Sorry to have bothered you. |
Yeah, it's this issue nwjs/nw.js#199 . It should be added to the document to remind the users. |
Hi Roger. I found another issue i am not sharing on github because it's very This 'focus problem' holy happens in node-webkit every other browser works I tried to open youtube website from node-webkit to see if their flash I am using last version 0.5.1 on the most recent mascosx. I am sending you a small zip with the application i'm talking about so you Thanks. On Fri, Apr 19, 2013 at 12:14 AM, Roger Wang notifications@github.comwrote:
|
@davibe I met this problem too. |
我的天啊,我在这个问题上卡了几个月,今天终于解决了,原来是不能重命名nw.exe文件名称,可是为什么呢,有没有办法可以替换 v0.12.3 |
I am using nw-gyp on windows with configure --target=0.5.0 to build the module "node-serialport" and use it with node-webkit 0.5.0.
The procedure does work on my mac but since I also need to distribute the application on Windows i have to build it on windows too. My Windows XP virtual machine has Vistual Studio 2010 installed. The build works fine with no errors generating serialport.node but then node-webkit is unable to open serialbox.node to load the module.
Uncaught Error: The specified module could not be found.
C:\Documents and Settings\Administrator\Desktop\baseflight-configurator\win\baseflight-configurator\node_modules\serialport\build\Release\serialport.node
even if the file is there.
Building with standard node-gyp and loading it with standard node works fine so.. what to do ?
The text was updated successfully, but these errors were encountered: