Code Monkey home page Code Monkey logo

Comments (14)

jangxx avatar jangxx commented on July 20, 2024

I just pushed a fix to the test branch. Can you check out the branch and run npm install to test if it worked? I can't replicate your issue unfortunately, since the project builds fine with and without the fix for me.

from node-vigemclient.

FahrulID avatar FahrulID commented on July 20, 2024

Im not on the pc yet, but i've tried installed python, installed the driver, still gives an error when installing, it's probably something to do with the file of x360e and dualshock 4. Will try to install it later.

from node-vigemclient.

jangxx avatar jangxx commented on July 20, 2024

x360ce has nothing to do with this library. The error you are seeing is the compiler complaining about a missing type-cast, which I added in the test branch. You might want to try to install the windows build tools if you haven't already (npm install -g windows-build-tools), but I would still be happy if you would check if my fix worked so that I can put it into the next release.

from node-vigemclient.

FahrulID avatar FahrulID commented on July 20, 2024

image
I tried to npm install -g windows-build-tools
and then npm install vigemclient

still error

trying npm install git://github.com/jangxx/node-ViGEmClient.git#test --save still doesn't work

from node-vigemclient.

jangxx avatar jangxx commented on July 20, 2024

I tried to npm install -g windows-build-tools
and then npm install vigemclient

If you look in your screenshot, it clearly says Could not install Visual Studio Build Tools in red at the top there. I don't know why the installation fails of course, but maybe the reason is related to your problem with this library.

trying npm install git://github.com/jangxx/node-ViGEmClient.git#test --save still doesn't work

Could you please provide the error message? It has to be different from your original one, since I changed the specific things the compiler didn't like about it.

Also related to your screenshot: Are you on 32-bit windows? The log above indicates that node-gyp is copying the 32-bit version of the vigemclient.dll, which means it thinks you are using a 32-bit system. If you are actually on 64-bit you might want to find out why it's detecting that wrongly and if you are on 32-bit you might want to upgrade to 64-bit, since 32-bit operating systems and software are being phased out for years now. I only included the 32-bit DLLs for completeness sake anyway, and I might drop support for it altogether in the future, since no one uses 32-bit operating systems anymore.

from node-vigemclient.

FahrulID avatar FahrulID commented on July 20, 2024

image

I'm on Windows 10 64 Bit

from node-vigemclient.

FahrulID avatar FahrulID commented on July 20, 2024

And i have Visual Studio Community

from node-vigemclient.

FahrulID avatar FahrulID commented on July 20, 2024

Node JS v12.14.0

from node-vigemclient.

jangxx avatar jangxx commented on July 20, 2024

Apparently you don't have git installed, so you need to install it.

Also you might want to reinstall Node.js and install the 64-bit version. I'm guessing you have the 32-bit version installed and that's the reason for npm copying the 32-bit DLL instead of the 64-bit one. You can run node -p "process.arch" to test which version you have installed.

from node-vigemclient.

FahrulID avatar FahrulID commented on July 20, 2024

when i type node -p "process.arch" it responded ia32

from node-vigemclient.

jangxx avatar jangxx commented on July 20, 2024

That's what I thought. Please install the x64 version of Node and then try installing the windows-build-tools again. It might just work without any further changes.

from node-vigemclient.

FahrulID avatar FahrulID commented on July 20, 2024

yeah, i dunno why it used the 32bit, i remember i downloaded the recommended one. I will try to install it again with the new 64Bit

from node-vigemclient.

FahrulID avatar FahrulID commented on July 20, 2024

image

from node-vigemclient.

jangxx avatar jangxx commented on July 20, 2024

Looks great, It seems like we don't even need the other fixes.

from node-vigemclient.

Related Issues (10)

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.