Closed matte86 closed 5 days ago
Hi @agn0stico
Have you tried with the latest recipe contributed in https://github.com/conan-io/conan-center-index/pull/3957? If you checkout the contributors branch and create the package from there, you could try their package, maybe it fixes the issue? If it does, commenting on that PR in ConanCenter will also be good.
Hi @memsharded
thanks for following up on this. I actually tried what you suggested but it seem I am having the same issue when building a shared library with that package as well.
I am running Mac OS 10.15.7, conan 1.34.0 and cmake 3.17.3.
Sorry this was not followed up.
I am closing this ticket as outdated, using legacy cmake_find_package
generator, already removed in Conan 2 time ago.
Please don't hesitate to open new tickets for any further question.
Hey guys,
Sorry if this was asked several times but I read all examples and conan documentation but still haven't figured out how to fix this.
I am running conan 1.34.0 on MacOSX and working on an application for which I would like to consume libftdi. In the conan center unfortunately the version is rather old (0.20).
I am trying to create a package using libftdi1. Following the recipe for the version 0.20 and the conan documentation on creating packages I managed to compile and create the package in my local cache. This is the package recipe.
The application also builds fine, this is my conanfile:
Unfortunately, when I try to run the binary I receive the following error:
I know I am probably messing up with rpaths and dynamic linkage. If I inspect the binary with otool I get:
From this I see that libpq, another library that my application depends on and that I do not build myself, points to the library in my local conan cache; libftdi1 on the other hand, that I build myself, does not contain the full path to the dylib.
Apparently the issue is already present when I build the conan package myself for libftdi1; if I build libftdi1 examples I get the same problem on the dynamic library linkage. The vanilla libftdi1 repo is not meant to be built with conan so I am perhaps missing something in the integration conan - cmake. I read all the documentation I could but I am running out of ideas. Could someone help?