You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need help to understand how to properly compile the bindings setting the target paths.
current situation
I'm building a rust library let's call it lib_a.
For this library I created the bindings for c++ and they are compiled as the library cpp-bindings.
To be able to compile a c++ library correctly I have to link also the library libcxxbridge1.a.
I would like to be able to have all the libraries that are needed for c++ in one single directory under the target/<PROFILE> directory.
something like:
project
|--> target
|--> <PROFILE>
[...]
|--> cxxbridge
|--> bindings-headers
[... identical to above ... ]
|--> libcxxbridge1.a (could be a link)
|--> libcpp-bindings.a (could be a link)
|--> lib_a.so
The perfect solution would be to be able to also join together the library libcxxbridge1.a and libcpp-bindings.a but that's just a plus the important part would be to be able to access to them in an easy way.
The text was updated successfully, but these errors were encountered:
Hi all,
I need help to understand how to properly compile the bindings setting the target paths.
current situation
I'm building a rust library let's call it
lib_a
.For this library I created the bindings for c++ and they are compiled as the library
cpp-bindings
.To be able to compile a c++ library correctly I have to link also the library
libcxxbridge1.a
.this is my
build.rs
file:Like that, when I'm building in rust I get a filesystem's structure that is similar to:
Desired situation
I would like to be able to have all the libraries that are needed for c++ in one single directory under the
target/<PROFILE>
directory.something like:
The perfect solution would be to be able to also join together the library
libcxxbridge1.a
andlibcpp-bindings.a
but that's just a plus the important part would be to be able to access to them in an easy way.The text was updated successfully, but these errors were encountered: