Git Product home page Git Product logo

Comments (12)

ajayyy avatar ajayyy commented on June 26, 2024

First, I'd like to see what you come up with when your done because it sounds interesting. Second, do you have the code in visual studio now? You also need Open VR SDK 1.0.0

from driver_leap.

FDanner avatar FDanner commented on June 26, 2024

Thank you for your input. OpenVR missing was part of the problem and also LeapSDK. I got both and found out that I have to set the paths in the "Paths.props"-file. After having tried the newest OpenVR version I got version 1.0.0.
Unfortunatly I still get errors when trying to build the project in visual studio 15. (I translate from german):
"rapidjson/document.h" no such file or directory
unexpected end of file while searching for precompiled header, maybe you forgot to add "#include pch.h" to the source", any idea how to solve this?

from driver_leap.

FDanner avatar FDanner commented on June 26, 2024

I got rapidjson from https://github.com/miloyip/rapidjson and copied the folder "rapidjson/include/rapidjson" to "driver_leap\tools\config_tool\rapidjson" and the error about rapidjson went away.
Then second error about "pch.h" remained. I found "leap_driver > properties > C/C++ > precompiled Headers > disabled" makes this error go away, I dont know what this is and get other errors now about mkdir and copying files fails with "code 4" ...I'll try again another day.

from driver_leap.

ajayyy avatar ajayyy commented on June 26, 2024

My computer is currently broken, but when I get it working I can try to see how I got it working

from driver_leap.

ajayyy avatar ajayyy commented on June 26, 2024

@FDanner Did you get it working? M computer is now working so I could check how I got it working for you.

from driver_leap.

FDanner avatar FDanner commented on June 26, 2024

Hi ajayyy,

I got it partly working. The postbuild still fails. There is the following line in "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets" that makes the build fail:

When I comment the line out the build works. I could manually overwrite the leap.dll with my selfcompiled leap.dll and append "hello world" to a logfile with my source modification :)

Without commenting the line out it's failing, seams like it's trying to copy files and create directories but fails with "Code 4" whatever that means... any idea?

PS: One more feature I would like to add is to disable the driver for SteamVR Apps that have native leapmotion support like Bigscreen Beta or Altspace. Having virtual steam controllers and virtual hands at the same time in too much :)

from driver_leap.

FDanner avatar FDanner commented on June 26, 2024

found the postbuild commands in driver_leap.vcxproj

mkdir "$(InstallDir)\bin\Win64"
makes it fail because the directory already exists

xcopy /s /i /y "$(SolutionDir)\resources" "$(InstallDir)\resources"
makes it fail because the source directory does not exist, what is this, am I missing something?

It compiles successfully with both commented out.

from driver_leap.

ajayyy avatar ajayyy commented on June 26, 2024

@FDanner That's weird, didn't have that error. So, you got it working?

from driver_leap.

FDanner avatar FDanner commented on June 26, 2024

it's working now. Just managed to use the shift key for the system menu instead of the timeout gesture.

from driver_leap.

ajayyy avatar ajayyy commented on June 26, 2024

@FDanner Awesome.

from driver_leap.

zivzv avatar zivzv commented on June 26, 2024

@FDanner
Hi

encountered the same errors as you.

i fix the:
#include pch.h by disable precompiled header

the Code 4 by change the settings in driver_leap - preprocessor definitions - to all yes

and SDKDDKVer.h/windows.h by add their location u=in - additional include dirctories

but now i get the
“Only Win32 target is supported!” error

Were you able to fix it?

from driver_leap.

Hawat3000 avatar Hawat3000 commented on June 26, 2024

Edit: Fixed: Ok, I was fetching OpenVR v1. not 0.9.19

I am trying to make Alpha 0.3 works from source code but the driver_leap.cpp give me 70 errors.
I think I have not taken any steps step... Basic errors like:

  • object of abstract class type "CServerDriver_Leap" is not allowed
  • namespace "vr" has no member "IClientTrackedDeviceProvider_Version"
    (..)
    My C++ is a little rusty, (I have a long time C# programmer)
    Any idea please?

from driver_leap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.