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

process.dlopen(filename, module.exports); #22

Closed
peterbarretto opened this issue Oct 23, 2013 · 18 comments
Closed

process.dlopen(filename, module.exports); #22

peterbarretto opened this issue Oct 23, 2013 · 18 comments

Comments

@peterbarretto
Copy link

module.js:485
process.dlopen(filename, module.exports);
^
Error: The specified module could not be found.

How do i fix this??

@soldair
Copy link
Owner

soldair commented Oct 23, 2013

interesting can you give me a bit more info?
in your terminal cd to the project that you have qrcode installed in and run

node -e 'console.log(process.versions)'
node -e 'console.log(require("qrcode/package.json").version);'
node -e 'console.log(require("qrcode/node_modules/canvas"));'

perhaps a gist with example code? i haven't run into this before but i would expect it has to do with node canvas.

does npm install complete successfully? can you rm -fr the node_modules directory and try to npm install again? just thoughts

@peterbarretto
Copy link
Author

$ node -e 'console.log(process.versions)'
{ http_parser: '1.0',
node: '0.8.22',
v8: '3.11.10.25',
ares: '1.7.5-DEV',
uv: '0.8',
zlib: '1.2.3',
openssl: '1.0.0f' }

$ node -e 'console.log(require("qrcode/package.json").version);'
0.2.8

$ node -e 'console.log(require("qrcode/node_modules/canvas"));'

module.js:485
process.dlopen(filename, module.exports);
^
Error: The specified module could not be found.
G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\Release\canvas.node
at Object.Module._extensions..node (module.js:485:11)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object. (G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas
\lib\bindings.js:2:18)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)

I am using windows 7 and i followed the steps the provided at https://github.com/LearnBoost/node-canvas/wiki/Installation---Windows to install canvas, Npm install was successful. tried installing again and it installs fine

I am using the below code to test:-
var QRCode = require('qrcode');

QRCode.toDataURL('i am a pony!',function(err,url){
console.log(url);
});

@soldair
Copy link
Owner

soldair commented Oct 28, 2013

im guessing cairo is missing. http://cairographics.org/ its a dependency of node canvas which is the component that failed to build based on the output you gave me

@peterbarretto
Copy link
Author

i followed the steps to install cairo from https://github.com/LearnBoost/node-canvas/wiki/Installation---Windows and it looked like it installed fine. how can i build canvas again?

@soldair
Copy link
Owner

soldair commented Oct 29, 2013

you should be able to run

npm rebuild

in your modules directory but you should probably just delete the
node_modules directory and

npm install

again.

if you get any error output from install let me know.
On Oct 29, 2013 4:25 AM, "peterbarretto" notifications@github.com wrote:

i followed the steps to install cairo from
https://github.com/LearnBoost/node-canvas/wiki/Installation---Windows and
it looked like it installed fine. how can i build canvas again?


Reply to this email directly or view it on GitHubhttps://github.com//issues/22#issuecomment-27295151
.

@peterbarretto
Copy link
Author

the output when i say npm install

G:\nodejs\qr2>npm install
npm http GET https://registry.npmjs.org/qrcode
npm http 304 https://registry.npmjs.org/qrcode
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/bops/0.0.6
npm http GET https://registry.npmjs.org/canvas
npm http 304 https://registry.npmjs.org/bops/0.0.6
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/canvas
npm http GET https://registry.npmjs.org/to-utf8/0.0.1
npm http GET https://registry.npmjs.org/base64-js/0.0.2

canvas@1.0.4 install G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas
node-gyp rebuild

G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas>node "C:\Program Files\nod
ejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.
js" rebuild
Warning: unrecognized setting VCCLCompilerTool/ImageHasSafeExceptionHandlers whi
le converting to MSBuild.
Warning: unrecognized setting VCCLCompilerTool/ImageHasSafeExceptionHandlers whi
le converting to MSBuild.
npm http 304 https://registry.npmjs.org/to-utf8/0.0.1
npm http 304 https://registry.npmjs.org/base64-js/0.0.2
CanvasRenderingContext2d.cc
CanvasPattern.cc
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506: no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)' [G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::Object
]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506: no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)' [G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::FunctionTemplate
]
color.cc
..\src\color.cc(353): warning C4305: 'initializing' : truncation from 'double'
to 'float' [G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.
vcxproj]
..\src\color.cc(356): warning C4305: '*=' : truncation from 'double' to 'float'
[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcxproj]
PixelArray.cc
..\src\CanvasRenderingContext2d.cc(636): warning C4244: '=' : conversion from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\node
_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(637): warning C4244: '=' : conversion from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\node
_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(638): warning C4244: '=' : conversion from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\node
_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(639): warning C4244: '=' : conversion from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\node
_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(640): warning C4244: '=' : conversion from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\node
_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(641): warning C4244: '=' : conversion from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\node
_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(642): warning C4244: '=' : conversion from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\node
_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(643): warning C4244: '=' : conversion from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\node
_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(647): warning C4244: '=' : conversion from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\node
_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(648): warning C4244: '=' : conversion from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\node
_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(649): warning C4244: '=' : conversion from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\node
_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(650): warning C4244: '=' : conversion from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\node
_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(654): warning C4244: '=' : conversion from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\node
_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(655): warning C4244: '=' : conversion from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\node
_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(676): warning C4244: '/=' : conversion from
'float' to 'int', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\node
_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(677): warning C4244: '/=' : conversion from
'float' to 'int', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\node
_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(708): warning C4244: '=' : conversion from '
double' to 'float', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\no
de_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(927): warning C4244: 'initializing' : conver
sion from 'double' to 'int', possible loss of data [G:\nodejs\qr2\node_modules
qrcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2154): warning C4244: 'argument' : conversio
n from 'double' to 'float', possible loss of data [G:\nodejs\qr2\node_modules\q
rcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2154): warning C4244: 'argument' : conversio
n from 'double' to 'float', possible loss of data [G:\nodejs\qr2\node_modules\q
rcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2157): warning C4244: 'argument' : conversio
n from 'double' to 'float', possible loss of data [G:\nodejs\qr2\node_modules\q
rcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2157): warning C4244: 'argument' : conversio
n from 'double' to 'float', possible loss of data [G:\nodejs\qr2\node_modules\q
rcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2160): warning C4244: 'argument' : conversio
n from 'double' to 'float', possible loss of data [G:\nodejs\qr2\node_modules\q
rcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2160): warning C4244: 'argument' : conversio
n from 'double' to 'float', possible loss of data [G:\nodejs\qr2\node_modules\q
rcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2162): warning C4244: 'initializing' : conve
rsion from 'double' to 'float', possible loss of data [G:\nodejs\qr2\node_modul
es\qrcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2187): warning C4244: 'argument' : conversio
n from 'double' to 'float', possible loss of data [G:\nodejs\qr2\node_modules\q
rcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2187): warning C4244: 'argument' : conversio
n from 'double' to 'float', possible loss of data [G:\nodejs\qr2\node_modules\q
rcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2192): warning C4244: 'initializing' : conve
rsion from 'double' to 'float', possible loss of data [G:\nodejs\qr2\node_modul
es\qrcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2209): warning C4244: '=' : conversion from
'double' to 'float', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\n
ode_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2219): warning C4244: '=' : conversion from
'double' to 'float', possible loss of data [G:\nodejs\qr2\node_modules\qrcode\n
ode_modules\canvas\build\canvas.vcxproj]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(217): warning C4506: no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)' [G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::Object
]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(217): warning C4506: no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)' [G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::FunctionTemplate
]
ImageData.cc
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506: no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)' [G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::Object
]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506: no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)' [G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::FunctionTemplate
]
Canvas.cc
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506: no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)' [G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::Object
]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506: no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)' [G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::FunctionTemplate
]
init.cc
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(217): warning C4506: no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)' [G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::Object
]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(217): warning C4506: no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)' [G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::FunctionTemplate
]
Image.cc
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506: no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)' [G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::Object
]
CanvasGradient.cc
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506: no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)' [G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::Object
]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506: no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)' [G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::FunctionTemplate
]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(217): warning C4506: no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)' [G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::Object
]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(217): warning C4506: no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)' [G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::FunctionTemplate
]
Creating library G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\bui
ld\Release\canvas.lib and object G:\nodejs\qr2\node_modules\qrcode\node_modul
es\canvas\build\Release\canvas.exp
Generating code
Finished generating code
canvas.vcxproj -> G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build
\Release\canvas.node
qrcode@0.2.8 node_modules\qrcode
├── colors@0.6.2
├── bops@0.0.6 (to-utf8@0.0.1, base64-js@0.0.2)
└── canvas@1.0.4

@soldair
Copy link
Owner

soldair commented Oct 30, 2013

does it work?
On Oct 30, 2013 2:35 AM, "peterbarretto" notifications@github.com wrote:

the output when i say npm install

G:\nodejs\qr2>npm install
npm http GET https://registry.npmjs.org/qrcode
npm http 304 https://registry.npmjs.org/qrcode
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/bops/0.0.6
npm http GET https://registry.npmjs.org/canvas
npm http 304 https://registry.npmjs.org/bops/0.0.6
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/canvas
npm http GET https://registry.npmjs.org/to-utf8/0.0.1
npm http GET https://registry.npmjs.org/base64-js/0.0.2

canvas@1.0.4 install G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas
node-gyp rebuild

G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas>node "C:\Program
Files\nod

ejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.
js" rebuild
Warning: unrecognized setting
VCCLCompilerTool/ImageHasSafeExceptionHandlers whi
le converting to MSBuild.
Warning: unrecognized setting
VCCLCompilerTool/ImageHasSafeExceptionHandlers whi
le converting to MSBuild.
npm http 304 https://registry.npmjs.org/to-utf8/0.0.1
npm http 304 https://registry.npmjs.org/base64-js/0.0.2
CanvasRenderingContext2d.cc
CanvasPattern.cc
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506:
no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)'
[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::Object
]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506:
no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)'
[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::FunctionTemplate
]
color.cc
..\src\color.cc(353): warning C4305: 'initializing' : truncation from
'double'
to 'float'
[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.
vcxproj]
..\src\color.cc(356): warning C4305: '*=' : truncation from 'double' to
'float'

[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcxproj]
PixelArray.cc
..\src\CanvasRenderingContext2d.cc(636): warning C4244: '=' : conversion
from '
double' to 'int', possible loss of data
[G:\nodejs\qr2\node_modules\qrcode\node
modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(637): warning C4244: '=' : conversion
from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node

modules\qrcode\node
modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(638): warning C4244: '=' : conversion
from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node

modules\qrcode\node
modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(639): warning C4244: '=' : conversion
from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node

modules\qrcode\node
modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(640): warning C4244: '=' : conversion
from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node

modules\qrcode\node
modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(641): warning C4244: '=' : conversion
from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node

modules\qrcode\node
modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(642): warning C4244: '=' : conversion
from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node

modules\qrcode\node
modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(643): warning C4244: '=' : conversion
from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node

modules\qrcode\node
modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(647): warning C4244: '=' : conversion
from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node

modules\qrcode\node
modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(648): warning C4244: '=' : conversion
from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node

modules\qrcode\node
modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(649): warning C4244: '=' : conversion
from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node

modules\qrcode\node
modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(650): warning C4244: '=' : conversion
from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node

modules\qrcode\node
modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(654): warning C4244: '=' : conversion
from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node

modules\qrcode\node
modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(655): warning C4244: '=' : conversion
from '
double' to 'int', possible loss of data [G:\nodejs\qr2\node

modules\qrcode\node
modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(676): warning C4244: '/=' : conversion
from
'float' to 'int', possible loss of data [G:\nodejs\qr2\node

modules\qrcode\node
modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(677): warning C4244: '/=' : conversion
from
'float' to 'int', possible loss of data [G:\nodejs\qr2\node

modules\qrcode\node
modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(708): warning C4244: '=' : conversion
from '
double' to 'float', possible loss of data [G:\nodejs\qr2\node

modules\qrcode\no
de_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(927): warning C4244: 'initializing' :
conver
sion from 'double' to 'int', possible loss of data
[G:\nodejs\qr2\node_modules
qrcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2154): warning C4244: 'argument' :
conversio
n from 'double' to 'float', possible loss of data
[G:\nodejs\qr2\node_modules\q
rcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2154): warning C4244: 'argument' :
conversio
n from 'double' to 'float', possible loss of data
[G:\nodejs\qr2\node_modules\q
rcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2157): warning C4244: 'argument' :
conversio
n from 'double' to 'float', possible loss of data
[G:\nodejs\qr2\node_modules\q
rcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2157): warning C4244: 'argument' :
conversio
n from 'double' to 'float', possible loss of data
[G:\nodejs\qr2\node_modules\q
rcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2160): warning C4244: 'argument' :
conversio
n from 'double' to 'float', possible loss of data
[G:\nodejs\qr2\node_modules\q
rcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2160): warning C4244: 'argument' :
conversio
n from 'double' to 'float', possible loss of data
[G:\nodejs\qr2\node_modules\q
rcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2162): warning C4244: 'initializing' :
conve
rsion from 'double' to 'float', possible loss of data
[G:\nodejs\qr2\node_modul
es\qrcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2187): warning C4244: 'argument' :
conversio
n from 'double' to 'float', possible loss of data
[G:\nodejs\qr2\node_modules\q
rcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2187): warning C4244: 'argument' :
conversio
n from 'double' to 'float', possible loss of data
[G:\nodejs\qr2\node_modules\q
rcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2192): warning C4244: 'initializing' :
conve
rsion from 'double' to 'float', possible loss of data
[G:\nodejs\qr2\node_modul
es\qrcode\node_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2209): warning C4244: '=' : conversion
from
'double' to 'float', possible loss of data
[G:\nodejs\qr2\node_modules\qrcode\n
ode_modules\canvas\build\canvas.vcxproj]
..\src\CanvasRenderingContext2d.cc(2219): warning C4244: '=' : conversion
from
'double' to 'float', possible loss of data
[G:\nodejs\qr2\node_modules\qrcode\n
ode_modules\canvas\build\canvas.vcxproj]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(217): warning C4506:
no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)'
[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::Object
]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(217): warning C4506:
no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)'
[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::FunctionTemplate
]
ImageData.cc
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506:
no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)'
[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::Object
]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506:
no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)'
[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::FunctionTemplate
]
Canvas.cc
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506:
no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)'
[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::Object
]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506:
no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)'
[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::FunctionTemplate
]
init.cc
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(217): warning C4506:
no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)'
[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::Object
]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(217): warning C4506:
no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)'
[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::FunctionTemplate
]
Image.cc
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506:
no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)'
[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::Object
]
CanvasGradient.cc
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506:
no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)'
[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::Object
]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(178): warning C4506:
no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)'
[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::FunctionTemplate
]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(217): warning C4506:
no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)'
[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::Object
]
C:\Users\Peter.node-gyp\0.8.22\deps\v8\include\v8.h(217): warning C4506:
no de
finition for inline function 'v8::Persistent v8::Persistent::New(v8::Hand
le)'
[G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\canvas.vcx
proj]
with
[
T=v8::FunctionTemplate
]
Creating library G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\bui
ld\Release\canvas.lib and object
G:\nodejs\qr2\node_modules\qrcode\node_modul
es\canvas\build\Release\canvas.exp
Generating code
Finished generating code
canvas.vcxproj ->
G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build
\Release\canvas.node
qrcode@0.2.8 node_modules\qrcode
├── colors@0.6.2
├── bops@0.0.6 (to-utf8@0.0.1, base64-js@0.0.2)
└── canvas@1.0.4


Reply to this email directly or view it on GitHubhttps://github.com//issues/22#issuecomment-27375331
.

@peterbarretto
Copy link
Author

nope, same error pops up again.

@soldair
Copy link
Owner

soldair commented Oct 30, 2013

could you upgrade node to the most recent version 0.10.21 http://nodejs.org/download/ would be awesome.

0.8.20 is not even the most recent 0.8 http://nodejs.org/dist/v0.8.26/ is needed at least if you want to stay on 0.8.

i dont use windows so i would start searching the node canvas issues to proceed https://github.com/LearnBoost/node-canvas/issues

in the magical future i don't want to depend on node canvas at all and then we wont have any native module issues.

@peterbarretto
Copy link
Author

upgraded node to 0.10.21 but still get another error now

module.js:356
Module._extensions[extension](this, filename);
^
Error: The specified module could not be found.
G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas\build\Release\canvas.node
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (G:\nodejs\qr2\node_modules\qrcode\node_modules\canvas
\lib\bindings.js:2:18)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

@DeoLeung
Copy link

DeoLeung commented Dec 8, 2015

I ran into the same problem using node v4.2.2, same as I installed it globally.

$ npm install -save qrcode
npm http GET https://registry.npmjs.org/qrcode
npm http 304 https://registry.npmjs.org/qrcode
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/canvas
npm http GET https://registry.npmjs.org/bops/0.0.6
npm http 304 https://registry.npmjs.org/canvas
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/bops/0.0.6
npm http GET https://registry.npmjs.org/base64-js/0.0.2
npm http GET https://registry.npmjs.org/to-utf8/0.0.1
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/nan

canvas@1.3.5 install /somewhere/canvas
node-gyp rebuild

npm http 304 https://registry.npmjs.org/base64-js/0.0.2
make: Entering directory /somewhere/node_modules/canvas/build' SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node: Finished COPY Release/canvas-postbuild.node CXX(target) Release/obj.target/canvas/src/Canvas.o npm http 304 https://registry.npmjs.org/to-utf8/0.0.1 CXX(target) Release/obj.target/canvas/src/CanvasGradient.o CXX(target) Release/obj.target/canvas/src/CanvasPattern.o CXX(target) Release/obj.target/canvas/src/CanvasRenderingContext2d.o CXX(target) Release/obj.target/canvas/src/color.o CXX(target) Release/obj.target/canvas/src/Image.o CXX(target) Release/obj.target/canvas/src/ImageData.o CXX(target) Release/obj.target/canvas/src/init.o CXX(target) Release/obj.target/canvas/src/FontFace.o SOLINK_MODULE(target) Release/obj.target/canvas.node SOLINK_MODULE(target) Release/obj.target/canvas.node: Finished COPY Release/canvas.node make: Leaving directory/somewhere/node_modules/qrcode/node_modules/canvas/build'
qrcode@0.4.2 node_modules/qrcode
├── colors@1.1.2
├── bops@0.0.6 (to-utf8@0.0.1, base64-js@0.0.2)
└── canvas@1.3.5 (nan@2.1.0)

$ qrcode hi
module.js:460
return process.dlopen(module, path._makeLong(filename));
^

Error: Module did not self-register.
at Error (native)
at Object.Module._extensions..node (module.js:460:18)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/usr/local/lib/node_modules/qrcode/node_modules/canvas/lib/bindings.js:2:18)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)

@subomi
Copy link

subomi commented Feb 21, 2016

This is still an issue yet unsolved?

@soldair
Copy link
Owner

soldair commented Feb 21, 2016

This is an error folks can get if they have an issue with native modules. This is not really a qrcode issue unless i need to bump the version of canvas. if you are having the problem let me know :)

@laggingreflex
Copy link

laggingreflex commented Apr 29, 2016

As per this comment could you guys try running the dependencywalker on whatever .node file that's causing the error, like node_modules\canvas\build\Release\canvas.node

I was having the same error (process.dlopen) and it turned out I was missing LIBEAY32.DLL in scrypt.node (a different module than node-qrcode altogether)

the missing DLL, which was causing the error actually comes from OpenSSL, installing which solved the issue for me.

@soldair
Copy link
Owner

soldair commented Apr 29, 2016

very helpful thanks @laggingreflex !

@Akiiki
Copy link

Akiiki commented May 25, 2016

I had the same Issue so I did npm rebuild then sudo npm install -g ethereumjs-testrpc

This solved it

@yug95
Copy link

yug95 commented Apr 2, 2018

I have deleted node_modules and again installed node_modules its working fine.
it is due to version mismatch

@ogbiyoyosky
Copy link

Just had the same problem.
solution: I deleted the node_modules,and run npm install.
Note: Make sure the package.json is intact.

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

8 participants