Giter Club home page Giter Club logo

conan-gyp-generator's Introduction

conan-gyp-generator's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

conan-gyp-generator's Issues

Library/dependency name mismatch (`-lz` versus `-lzlib`)

When I use the zlib/1.2.11 dependency, my Node-Gyp build fails because library -lzlib could not be found.

When I look into the file conanbuildinfo.txt, the library for the zlib dependency is called z. However, it is specified as -lzlib in conanbuildinfo.gyp.

Indeed, manually changing -lzlib into -lz inside conanbuildinfo.gyp fixes the Node-Gyp build.

Could it be that the library name is currently assumed to be identical to the dependency name? If so, would it be possible to use the actual library name instead?

Linker is unable to find Conan-installed library

Thanks for working on this Conan + Node-Gyp combination! I have not found such support anywhere else :-(

When U use this, the conanbuildinfo.gyp file is created correctly, but the linker is not yet able to find Conan-installed libraries for some reason:

$ node-gyp build --verbose
[...]
g++ -shared -pthread -rdynamic -m64 -Wl,-rpath=\$ORIGIN/lib.target/ -Wl,-rpath-link=\./Release/lib.target/  -Wl,-soname=test.node -o Release/obj.target/test.node -Wl,--start-group Release/obj.target/test/lib/test.o Release/obj.target/test/lib/Test.o Release/obj.target/conan_build/nlohmann_json.so -Wl,--end-group -lnlohmann_json -Wl,-rpath,/home/wouter/triply/test/node/test-node/build/Release/
/usr/bin/ld: cannot find -lnlohmann_json

The shared library seems to be in the correct (rpath) place:

$ ls build/Release/obj.target/conan_build/
nlohmann_json.so

Is there anything obvious that I could be doing wrong here?

Undefined symbols when using liburiparser dependency

I have used this library successfully for a while now, but I am running into issues when using liburiparser. When I add this C library as a dependency:

"<(module_root_dir)/conan_build/conanbuildinfo.gyp:uriparser"

the node-gyp build command succeeds; the linker line contains -luriparser and -L/home/wouter/.conan/data/uriparser/0.9.4/_/_/package/de554df6c6dedf975bd1053c40dc7126b0faabbd/lib, so all looks ok at first glance.

But when I then run Mocha tests using the just compiled Node program, I observe the following error:

$ mocha
node: symbol lookup error: build/Release/example.node: undefined symbol: uriParseSingleUriA

I'm not sure how to debug this... maybe the following command gives relevant information?

$ nm build/Release/example.node | grep uri
                 U uriFreeUriMembersA
                 U uriParseSingleUriA
                 U uriToStringA
                 U uriToStringCharsRequiredA
                 U uriUnixFilenameToUriStringA

Any ideas on how to fix or further debug this?

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.