Comments (14)
from physx-rs.
Figured it out! Fix is on it's way rust-lang/cc-rs#572 :)
from physx-rs.
The latest version of cc
fixes this issue!
from physx-rs.
@Jasper-Bekkers you were looking into this right?
from physx-rs.
Reduced to roughly 8257
chars when using -no-everything
. So close yet so far...
from physx-rs.
@Jasper-Bekkers any further progress on this?
from physx-rs.
rust-lang/cc-rs#547 solves this.
from physx-rs.
Awesome!
from physx-rs.
Alright, I've been looking into this issue quite a bit this week and am majorly confused.
The error @repi shows above shouldn't actually error at all. The reason being, yes the command is 10k+ lines of code but cc
spawns the command as a new process, whose command limit is 32767 characters according to this blog. I've compared the command length of that same command on a msvc -> msvc cl.exe invocation and it was also over 10k+ characters long but doesn't error.
Linking would actually fail on msvc -> Android as cc
tried to link every .o file in one go, which would result in a command over 32k+ characters. When targeting msvc this was solved by using a response file but not when targeting Android. This issue I fixed by progressive linking, which has been merged in cc
.
TLDR: no clue why we get this error :(
from physx-rs.
@maxded ouch. you are able to reproduce the error locally on Windows right though?
from physx-rs.
Yes
from physx-rs.
Would it be possible to reduce the number of include directories when compiling physx-sys
itself instead of relying on a fix in cc-rs
? My fix mentioned above reintroduces response files to cc-rs
when they just recently got completely removed and the maintainer would prefer if they stayed removed.
from physx-rs.
You can try, but the way the physx code works means a lot of includes are needed.
from physx-rs.
Awesome!
from physx-rs.
Related Issues (20)
- Port PxCooking
- Emit default values in FFI bindings
- Reevaluate structgen HOT 1
- Cleanup C++ source files
- Flow support? HOT 2
- Generate `physx-safe` on top of `physx-sys`
- run error in msvs target HOT 4
- Build error after updating ubuntu HOT 7
- Spring/damper has no effect in driving articulation joint HOT 10
- ActorMap is missing read-only API HOT 2
- How to create a TriangleMeshGeometry in Rust? HOT 6
- Unable to get collision callbacks in bouncing ball example. HOT 6
- Misaligned pointer dereference HOT 24
- How can i remove a Rigid Dynamic actor from scene when it collide with a specific object ? HOT 2
- `pxbind` needs update HOT 1
- Please add PxCreateCudaContextManager method to enable Gpu acceleration HOT 1
- iOS support HOT 1
- How to create completion task for passing in scene.step function ?
- Add support for `eDEFAULT` for bitflags (and maybe enums)
- Change MacOS CI to aarch64
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 physx-rs.