Git Product home page Git Product logo

Comments (5)

JCMais avatar JCMais commented on May 18, 2024

Hi, I'm really busy this week, so I cannot work on this issue right now. I compiled the addon to nw some time ago, and probably some stuff changed that is causing this issue.

from node-libcurl.

bozzzi avatar bozzzi commented on May 18, 2024

Hi,

Thanks for prompt response.

I didn't dig into deep but I think it's something with openSSL and it's linkage with curl library.

I'll try to do some debuging, and let you know. If you can help with superficial explanation of "some stuff changed" maybe I can find the origin of the error.

Thank you

from node-libcurl.

bozzzi avatar bozzzi commented on May 18, 2024

Found temporary workaround.

  1. npm install node-libcurl
  2. node-gyp rebuild --target=0.12.3
  3. Open project in Visual Studio 2015 (I think it is going to work with 2013 the same)
  4. In VS project solution replace dependency lib .node.gyp/Release/node.lib with .nw.gyp/Release/nw.lib and build solution
  5. Replace node-libcurl\lib\binding\node_libcurl.node with newly built file

WORKING with nwjs 0.12.3

Now testing for unexpected behaviour, but seems that all the tests are working fine.

from node-libcurl.

JCMais avatar JCMais commented on May 18, 2024

Hi, I finally had time to look into this, and I found the issue.

nw-gyp bundles an outdated version of gyp which doesn't support the if-else conditions syntax being used in the openssl.gyp here https://github.com/JCMais/curl-for-windows/blob/master/openssl/openssl.gyp#L69.

The way to fix that is to update the gyp version manually, you can do that downloading it from this repo: https://github.com/bnoordhuis/gyp and placing it in the gyp folder inside the nw-gyp folder. (nw-gyp is probably installed globally, so you need to look up where it's).

Them there is still one more thing to do, you need to disable the compiler WarnAsError flag for this addon, do so in the node-libcurl/bindings.gyp file.

After that rebuild the addon, run this from the addon folder: node_modules\.bin\node-pre-gyp rebuild --runtime=node-webkit --target=0.15.0-rc2 --arch=x64

from node-libcurl.

bozzzi avatar bozzzi commented on May 18, 2024

Great,

Thx

from node-libcurl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.