KoKuToru / koku-xinput-wine

Adds xinput support to wine, without changing the source of wine.
BSD 2-Clause "Simplified" License
69 stars 21 forks source link

couldn't find wine headers #34

Open abdo96 opened 6 years ago

abdo96 commented 6 years ago

after write the command (cmake .)

CMake Error at CMakeLists.txt:36 (message): Couldn't find wine headers!

-- Configuring incomplete, errors occurred! See also "/home/abdo96/Downloads/koku-xinput-wine/CMakeFiles/CMakeOutput.log". I install wine-staging and loaction /opt/wine-staging/include has two directories bin and lib64 so what is the solution of this problem ? thanks .. cmake.log: https://drive.google.com/open?id=1skvgMkTZiQ9PUr9osxGlD9reWFME33Rc cmake_Lists: https://drive.google.com/open?id=1oaAxt7DGHdO3ii_FKHgS4X4R6dOMJ0Hw

dreaddymck commented 6 years ago

Install wine-staging-dev. The '-dev' package contains required headers.

abdo96 commented 6 years ago

Thank you very much

abdo96 commented 6 years ago

after write command make

[12%] Linking CXX shared library koku-xinput-wine.so /usr/bin/ld: skipping incompatible //usr/lib/x86_64-linux-gnu/libSDL2.so when searching for -lSDL2 /usr/bin/ld: skipping incompatible //usr/lib/x86_64-linux-gnu/libSDL2.a when searching for -lSDL2 /usr/bin/ld: cannot find -lSDL2 collect2: error: ld returned 1 exit status CMakeFiles/koku-xinput-wine.dir/build.make:146: recipe for target 'koku-xinput-wine.so' failed make[2]: [koku-xinput-wine.so] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/koku-xinput-wine.dir/all' failed make[1]: [CMakeFiles/koku-xinput-wine.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

dreaddymck commented 6 years ago

This is where I am stuck right now. https://github.com/KoKuToru/koku-xinput-wine/issues/33

I will close my issue and follow this as it includes a solution for the missing headers.

dreaddymck commented 6 years ago

Is possible to compile 64bit version.

make koku-xinput-wine64

Edit: OMG...and it works with DS2: Scholars Of the First Sin.

abdo96 commented 6 years ago

Thank you very much

abdo96 commented 6 years ago

@dreaddymck but There is problem when I loaded koku-xinput-wine64.so

ERROR: ld.so: object '/usr/lib/i386-linux-gnu/wine/koku-xinput-wine64.so' from LD_PRELOAD cannot >be preloaded (wrong ELF class: ELFCLASS64): ignored. I tried to choose right path but the problem still existing

dreaddymck commented 6 years ago

Not having this problem. Not an expert on all things Wine.

That said: can only assume the target wine application is running the 32bit wine prefix.

The following is an example bash script used to load a Steam game on Wine:

#!/bin/bash
export LD_PRELOAD=/home/dreaddymck/Projects/git/koku-xinput-wine/koku-xinput-wine64.so
env WINEPREFIX="/home/dreaddymck/.wine" 
nice -10 wine C:\\\\windows\\\\command\\\\start.exe steam://rungameid/335300
  1. export the preloader.
  2. set the correct environment
  3. call the application.
  4. Profit