walkco / stadia-vigem

ViGEm adapter for Stadia Controller
MIT License
234 stars 14 forks source link

I cant compile #1

Closed Sangito closed 2 years ago

Sangito commented 3 years ago

Hi community, I try to compile the code, but I'm unable to compile it trough vscode mostly because i'm missing the config file that link the include lib inside my computer.

Do you have any hint for me

Thanks #

Executing task: ./Build-Debug.cmd <

C:\Users\User\source\repos\stadia-vigem-master\stadia-vigem-master>mkdir bin
A subdirectory or file bin already exists.

C:\Users\User\source\repos\stadia-vigem-master\stadia-vigem-master>mkdir Foobj
A subdirectory or file Foobj already exists.

C:\Users\User\source\repos\stadia-vigem-master\stadia-vigem-master>mkdir obj
A subdirectory or file obj already exists.

C:\Users\User\source\repos\stadia-vigem-master\stadia-vigem-master>rc.exe /foobj/stadia-vigem.res res/res.rc 
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Copyright (C) Microsoft Corporation.  All rights reserved.

res/res.rc(1) : fatal error RC1015: cannot open include file 'winver.h'.

C:\Users\User\source\repos\stadia-vigem-master\stadia-vigem-master>cl.exe /Zi /Od /EHsc /DWIN32 /D_UNICODE /DUNICODE /Iinclude /Foobj/ /Febin/stadia-vigem.exe lib/ViGEmClient/*.cpp obj/stadia-vigem.res src/*.c 
Microsoft (R) C/C++ Optimizing Compiler Version 19.28.29335 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

ViGEmClient.cpp
lib/ViGEmClient/ViGEmClient.cpp(29): fatal error C1083: Cannot open include file: 'Windows.h': No such file or directory
Generating Code...
Compiling...
hid.c
src/hid.c(1): fatal error C1083: Cannot open include file: 'tchar.h': No such file or directory
main.c
src/main.c(1): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
stadia.c
src/stadia.c(1): fatal error C1083: Cannot open include file: 'tchar.h': No such file or directory
tray.c
src/tray.c(1): fatal error C1083: Cannot open include file: 'tchar.h': No such file or directory
utils.c
src/utils.c(1): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory
Generating Code...
The terminal process "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command ./Build-Debug.cmd" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.
walkco commented 3 years ago

Hi @Sangito

Sorry for the late reply.

I'm not too experienced with C++ so I might be missing something here. I've just pulled down the repository onto a fresh system and it compiled it fine. The only step I took was to make sure I ran VS Code from within the "Developer Command Prompt for VS 2019". If that's something you've not tried, it might help?