Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

couldn't find wine headers #34

Open
abdo96 opened this issue Jan 25, 2018 · 8 comments
Open

couldn't find wine headers #34

abdo96 opened this issue Jan 25, 2018 · 8 comments

Comments

@abdo96
Copy link

abdo96 commented Jan 25, 2018

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
Copy link

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

@abdo96
Copy link
Author

abdo96 commented Jan 27, 2018

Thank you very much

@abdo96
Copy link
Author

abdo96 commented Jan 27, 2018

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
Copy link

This is where I am stuck right now.
#33

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

@dreaddymck
Copy link

dreaddymck commented Feb 14, 2018

Is possible to compile 64bit version.

make koku-xinput-wine64

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

@abdo96
Copy link
Author

abdo96 commented Feb 15, 2018

Thank you very much

@abdo96
Copy link
Author

abdo96 commented Feb 17, 2018

@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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants