Comments (5)
Hi, @spease!
error: Can not put/generate foreign lang helpers: update of c++\rust_interface\rust_str.h failed: the system cannot find the path specified. (os error 3)
I'm not sure what the proper way is to get past this error. It looks like I might be able to just copy the file over, but that seems rather inelegant and undesirable as my local copy would eventually fall out of sync with the library copy...
You don't need copy rust_str.h
over, it is part of rust_swig binary (bundled as resource to rust_swig.rlib) so rust_swig
always has it. The problem is in the path that you specify as output (c++\rust_interface\rust_str.h
), rust_swig
doesn't create directories for you, so you have to create them by hands or add to build.rs
appropriate code.
from flapigen-rs.
Sorry, I don’t think I understand. You say they’re bundled with it, but I have to specify a path in build.rs. How do I specify a path to the resources? Is there an example somewhere?
from flapigen-rs.
You say they’re bundled with it, but I have to specify a path in build.rs.
How do I specify a path to the resources? Is there an example somewhere?
You don't need to specify a path to the resource.
You actually should not care about rust_str.h
at all.
I mean something wrong with output, not with input.
I mean that message:
error: Can not put/generate foreign lang helpers: update of c++\rust_interface\rust_str.h failed: the system cannot find the path specified. (os error 3)
tells you that something is wrong with "c++\rust_interface" directory,
it doesn't exist, or you use the wrong slash character (\
instead of /
),
or this path is not relative to the root of the crate.
I attached a minimal example of a crate that works for me (cargo build
).
Does it work for you?
from flapigen-rs.
There is now detailed documentation: https://dushistov.github.io/rust_swig/ ,
plus error message about not created directory I made more clear.
from flapigen-rs.
from flapigen-rs.
Related Issues (20)
- Question : how to use debug!(); ? HOT 4
- C/C++ : Buggy conversion of ::std::os::raw::c_uint
- Question : bindings conditional generation HOT 2
- Question: Is `typedef xxxOpaque` needed, when there is no `selftype xxx` ? HOT 2
- Bug when Vec<T> is used as parameter type and as return type. HOT 5
- Is there a way to pass a byte array (byte[]) into a function? Vec<u8> and Vec<i8> produces errors. HOT 2
- How to customize the generated JNI_OnLoad content HOT 4
- Java bindings do not handle Java's "Modified UTF-8" HOT 4
- note: --version-script=C:\Users\user\AppData\Local\Temp\rustcU0caRt\list"" was unexpected at this time. HOT 1
- Heads up for planned jni-sys updates HOT 4
- Add support for recursive types in struct HOT 4
- Add support for Java's new FFI api HOT 1
- FFI Compatible structs HOT 2
- Project produces only compile errors HOT 4
- Is there a way to use references in callbacks? HOT 1
- Support AndroidX (and generally update to latest Android) HOT 1
- Missing release tags
- cpython crate deprecated, not compatible with python 3.12
- Access JNIEnv HOT 2
- cant pass std::ffi::c_void to function arguments in foreign_class! HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flapigen-rs.