On 24 June 2012 20:49, Jeroen Janssen <[email protected]> wrote:

> Hi,
>
> I just send you a pull request solving the linker errors (basically a
> change to use MagickWand-config).
>
> One small issue remains, and that is the resolving of the path to the
> "magickwand.node" which now resides in ./build/Release/
> magickwand.node. I believe there might be a common practice for
> dealing with this, but I don't know it exactly.
>
> Best regards,
>
> Jeroen Janssen
>
> On Jun 24, 1:37 pm, Qasim Zaidi <[email protected]> wrote:
> > Hi,
> >
> > I have a native module (http://github.com/qzaidi/magickwand) that
> > builds just fine with node-waf. Now that node 0.8 is due to be
> > released, and also because node-waf isn't building correctly on
> > SmartOS, I am trying to switch to node-gyp. However, while it builds,
> > the resulting magickwand.node file is unusable. I am pretty sure this
> > is some issue with the binding.gyp file I am using, but not quite able
> > to figure it out.
> >
> > When I load the module in node, I get undefined symbols error, and
> > that is because ldd output for node-gyp built module fails to show the
> > correct dependencies.
> >
> > ldd magickwand.node (Built with node-waf)
> >         linux-gate.so.1 =>  (0xb7877000)
> >         libMagickWand.so.3 => /usr/lib/libMagickWand.so.3 (0xb7753000)
> >         libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6
> (0xb7668000)
> >         libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb764a000)
> >         libc.so.6 => /lib/i386-linux-gnu/tls/i686/nosegneg/libc.so.6
> (0xb74cd000)
> >         .... and others
> >
> > ldd magickwand.node (Built with node-gyp)       linux-gate.so.1 =>
>  (0xb7844000)
> >         libc.so.6 => /lib/i386-linux-gnu/tls/i686/nosegneg/libc.so.6
> (0xb76b7000)
> >         /lib/ld-linux.so.2 (0xb7845000)
> >
> > Here's the binding.gyp I am using.
> >
> > {
> >   "targets": [
> >     {
> >       "target_name": "libmagickwand",
> >        "sources": [ "src/magickwand.cpp" ],
> >        'libraries': [ '<!@(Magick-config --libs)' ],
> >        "conditions": [
> >         ['OS=="mac"', {
> >           'xcode_settings': {
> >             'OTHER_CFLAGS': [
> >               '<!@(Magick-config --cflags)'
> >             ],
> >           }
> >         }, {
> >           'cflags': [
> >             '<!@(Magick-config --cflags)'
> >           ]
> >         }]
> >       ]
> >     }
> >   ]
> >
> > }
> >
> > What do I fix here to get node-gyp use the correct linker flags? Any
> > clues will be much appreciated.
> >
> > Thanks
> > Qasim
>
> --
> 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
>

hi, jeroen:
I am the author of geoip module, and I am too stupid to figure the gyp out.
Could help me with the same thing you do for zaidi?

--thanks

-- 
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

Reply via email to