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

compiling issue on ubuntu 16.04 #20

Closed Kidlike closed 6 years ago

Kidlike commented 7 years ago

First of all, I had to install the following dependencies:

apt install libsdl2-dev libc6-dev-i386 gcc-multilib g++-multilib

Also build and install cmake from sources since the repository version is older than required (3.5).

I'm now hitting a compile error, which I can't find how to fix:

Building CXX object CMakeFiles/koku-xinput-wine.dir/xinput.cpp.o
/home/xbmc/install/koku-xinput-wine/xinput.cpp:10:22: fatal error: winerror.h: No such file or directory
compilation terminated.
CMakeFiles/koku-xinput-wine.dir/build.make:86: recipe for target 'CMakeFiles/koku-xinput-wine.dir/xinput.cpp.o' failed
make[2]: *** [CMakeFiles/koku-xinput-wine.dir/xinput.cpp.o] 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

Any ideas?

Kidlike commented 7 years ago

I figured it out... I added /opt/wine-devel/include/wine/windows under target_include_directories of the CMakeLists.txt file, in line 39.

I guess this could be added in master, because this is the path that comes by default from the wine-devel-dev package in the https://dl.winehq.org/wine-builds/ubuntu repository.

After this, the build still fails with the following: koku-xinput-wine.make.log.txt

Kidlike commented 7 years ago

I just realized that I could install wine-staging-dev instead of wine-devel-dev, which saves me the trouble of the previous 2 posts.

But I still get the same (looks the same to me), error: koku-xinput-wine.make.log.txt

Kidlike commented 6 years ago

I managed to make it work... The problem was the cpp version. Need to upgrade to 6, where Ubuntu 16.04 has a default of 5.

I followed this guide and worked properly: https://gist.github.com/application2000/73fd6f4bf1be6600a2cf9f56315a2d91