VR compilation error

Post Reply
jokerGX
Posts: 3
Joined: Thu Jul 07, 2022 7:23 pm

VR compilation error

Post by jokerGX »

When I try to build the app_physicalserver_sharedmemory_vr, i get such mistake:
Error C2660: 'b3PhysicsParamSetGravity': function does not take 4 arguments
Does anyone how to fix this?
User avatar
drleviathan
Posts: 849
Joined: Tue Sep 30, 2014 6:03 pm
Location: San Francisco

Re: VR compilation error

Post by drleviathan »

AFAICT it does indeed expect four arguments:

Code: Select all

B3_SHARED_API int b3PhysicsParamSetGravity(b3SharedMemoryCommandHandle commandHandle, double gravx, double gravy, double gravz);
Check its declaration in the header to make sure: examples/SharedMemory/PhysicsClientC_API.h

What version of the repository is in your sandbox? I cloned it at:

Code: Select all

commit a1d96646c8ca28b99b2581dcfc4d74cc3b4de018 (HEAD -> master, origin/master, origin/HEAD)
Merge: 466b76680 66012fe21
Author: erwincoumans <erwin.coumans@gmail.com>
Date:   Thu May 26 23:12:33 2022 -0400

    Merge pull request #4118 from dbartolini/fix-warning
    
    Fix indentation
jokerGX
Posts: 3
Joined: Thu Jul 07, 2022 7:23 pm

Re: VR compilation error

Post by jokerGX »

The problem is solved when I git cloned openVR into the repo
I am not sure what is the problem, but somehow it is solved after I cloned the openVR
Post Reply