Open nitrogene opened 2 years ago
Please try to use [imports]
.
https://docs.conan.io/en/latest/reference/conanfile_txt.html?highlight=imports#imports
[imports]
lib, *.so* -> ./lib # Copies all dll files from packages bin folder to my "bin" folder
bin, drogon_ctl* -> ./bin
When executing conan install
, conan print out following messages.
conanfile.txt imports(): Copied 2 '.5' files: libdrogon.so.1.7.5, libtrantor.so.1.5.5
conanfile.txt imports(): Copied 2 '.so' files: libdrogon.so, libtrantor.so
conanfile.txt imports(): Copied 2 '.1' files: libdrogon.so.1, libtrantor.so.1
conanfile.txt imports(): Copied 1 file: drogon_ctl
Now you can find drogon_ctl in build/bin
.
Please execute with LD_LIBRARY_PATH.
> LD_LIBRARY_PATH=build/lib build/bin/drogon_ctl
usage: drogon_ctl [-v | --version] [-h | --help] <command> [<args>]
commands list:
create create some source files(Use 'drogon_ctl help create' for more information)
press Do stress testing(Use 'drogon_ctl help press' for more information)
help display this message
version display version of this tool
The reported issue occurred with the legacy cmake
generator rather than CMakeDeps
and VirtualRunEnv
or VirtualBuildEnv
. Can probably be closed.
short story: Path to dg_ctl not updated
long story: I wanted to install drogon with drogon_ctl, by activating the option in the conanfile.txt file:
It does install, but the PATH environment variable does not seem to be updated despite the logs:
Here's what I get when trying to launch dg_ctl:
$PATH does not seem to be updated:
But, even if PATH were correctly updated, it would not survive a reboot? Am I missing something ? Wouldn't it be better to put a link into a drogon_tools folder that would sit into the current project build folder ?
Best regards,
Jean-Pierre