Closed EMCP closed 1 year ago
also for reference
$ conan --version
Conan version 1.51.2
$ cargo --version
cargo 1.65.0 (4bc8f24d3 2022-10-20)
EDIT:
Ah, I think I get it.. these instructions didn't mention to conan install
but I found an old blog post which had that part.. and once I did that.. it seemed to start springing to life (albeit with an error)
https://blog.conan.io/2016/06/23/Rust-cargo-and-Conan-C_and_C++-package-manager-integration.html
Would it be appropriate I do a PR on the Doc just to add that step somewhere?
Hum... can you run cargo clean + "cargo -vv build" again now that it appears to be doing something more? That first log looks like it did absolutely nothing, and I wonder if it even called your build.rs script. cargo -vv build should reveal a few lines of output that begin with "cargo:" emitted by conan-rs
it turned out the issue was indeed lacking the conan install .
step.. I will close this but again.. if you're open to it I am happy to add it in the README.md
it turned out the issue was indeed lacking the
conan install .
step.. I will close this but again.. if you're open to it I am happy to add it in the README.md
Something is off, because conan-rs builds the "conan install" command already, you shouldn't have to call it yourself. Maybe it's not getting called correctly for you? https://github.com/Devolutions/conan-rs/blob/master/src/lib.rs
ahah.. well in that case..
I am running in Kubuntu 22.04 ... unsure how to proceed to debug it but yeah nothing worked or showed up until after the install manually was triggered
Was this a fresh environment in which conan was never called before? I wonder if calling conan install didn't end up initializing your conan default settings
I cannot recall.. it's pretty fresh within the last couples months and I cannot recall if I used this env explicitly with conan beyond simply installing.. but I can see I already had my package in the repo listings so I would guess no it was already run before
EDIT: im pretty sure at a minimum I'd installed conan AND built some local packages on this machine .. so I don't think it's brand-brand new
I just took a look on a brand new install of conan.. on a different machine.. added conanrs .. have a existing conanfile.txt .. and again.. nothing is being triggered as far as the conan install .
is concerned..
Consistently seeing this issue..
if I cargo build -vv
before conan install .
.. you will not see the C++
I updated https://github.com/Devolutions/conan-rs/issues/11#issuecomment-1305738518 , with some information about what I am seeing.. it seems conan gets into the mix but I am having trouble reaching my Headers I had installed via conan install .
.. so perhaps there's a deeper issue.
I think, based on the response in #11 , there may be an issue with my conans profile .. when I do a manual conan install .
I am not seeing conanbuildinfo.json
but instead conanbuildinfo.txt
could that be a source of the problem?
closing.. all is working now.. turns out the files do not get installed in the CWD but in some .conan
area... then you wire those into CXX
Hi first time getting into Rust.. pivoting away from C++.. and I have a custom Conan recipe that is not public.. but have been using it fairly easily for a year or so..
when I went to try the step-by-step instructions for integrating that conan recipe with my test project.. it failed to show any connection or loading had occurred.. is this because the library is private? or did I miss a step possibly?
Cargo.toml
conanfile.txt
build.rs
Result