Here's what I see in Terminal.
The error is thrown when I try and require the module which I just
successfully built using node-waf....
scronin-imac1:node-XYZ scronin$ node ABCModule_Test.js
Start: Tue Mar 27 2012 10:28:29 GMT-0500 (CDT)
Node Version: v0.6.13
File :/Users/scronin/Documents/HSD/Node/node-XYZ/ABCModule_Test.js
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Unable to load shared library
/Users/scronin/Documents/HSD/Node/node-XYZ/build/Release/node-XYZ.node
at Object..node (module.js:472:11)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Object.<anonymous>
(/Users/scronin/Documents/HSD/Node/node-XYZ/lib/node-XYZ.js:2:23)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
scronin-imac1:node-XYZ scronin$
On Monday, March 26, 2012 5:18:41 PM UTC-5, Ben Noordhuis wrote:
>
> On Mon, Mar 26, 2012 at 23:30, SteveCronin <[email protected]>
> wrote:
> > I'm getting an error when I 'require' a module I have built.
> >
> > Is this a 32/64bit issue? If so how do I best correct for future node
> > compatibility?
> >
> > node 0.6.13 on Mac OS X 10.7.3
> >
> > I'm still using node-waf to manually compile modules -- is that the
> problem?
> > Here's the wscript:
> > srcdir = '.'
> > blddir = 'build'
> > VERSION = '1.0.0'
> > APPNAME = 'XYZ-ABC-utils'
> >
> > def set_options(opt):
> > opt.tool_options('compiler_cxx')
> >
> > def configure(conf):
> > conf.check_tool('compiler_cxx')
> > conf.check_tool('node_addon')
> >
> > def build(bld):
> > obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
> > obj.source = 'node-ABC-support.cc', 'ABC1-support.cc',
> > 'ABC2-support.cc', 'ABC3-support.cc'
> > obj.libpath = [ bld.path.abspath() ]
> > obj.lib = 'GHJ.o'
> > bld.env.append_value('LINKFLAGS', '-lcrypto -lssl -lz'.split())
> > obj.target = 'XYZ-ABC-utils'
> >
> > Even if I add this line to the script I still get the same errors:
> >
> > obj.cxxflags = ["-g", "-D_FILE_OFFSET_BITS=64",
> "-D_LARGEFILE_SOURCE"]
>
> So... what errors do you get?
>
On Monday, March 26, 2012 5:18:41 PM UTC-5, Ben Noordhuis wrote:
>
> On Mon, Mar 26, 2012 at 23:30, SteveCronin <[email protected]>
> wrote:
> > I'm getting an error when I 'require' a module I have built.
> >
> > Is this a 32/64bit issue? If so how do I best correct for future node
> > compatibility?
> >
> > node 0.6.13 on Mac OS X 10.7.3
> >
> > I'm still using node-waf to manually compile modules -- is that the
> problem?
> > Here's the wscript:
> > srcdir = '.'
> > blddir = 'build'
> > VERSION = '1.0.0'
> > APPNAME = 'XYZ-ABC-utils'
> >
> > def set_options(opt):
> > opt.tool_options('compiler_cxx')
> >
> > def configure(conf):
> > conf.check_tool('compiler_cxx')
> > conf.check_tool('node_addon')
> >
> > def build(bld):
> > obj = bld.new_task_gen('cxx', 'shlib', 'node_addon')
> > obj.source = 'node-ABC-support.cc', 'ABC1-support.cc',
> > 'ABC2-support.cc', 'ABC3-support.cc'
> > obj.libpath = [ bld.path.abspath() ]
> > obj.lib = 'GHJ.o'
> > bld.env.append_value('LINKFLAGS', '-lcrypto -lssl -lz'.split())
> > obj.target = 'XYZ-ABC-utils'
> >
> > Even if I add this line to the script I still get the same errors:
> >
> > obj.cxxflags = ["-g", "-D_FILE_OFFSET_BITS=64",
> "-D_LARGEFILE_SOURCE"]
>
> So... what errors do you get?
>
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en