Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"fatal error: windows.h: No such file or directory" when running make (Ubuntu 20.04 LTS) #10

Open
Kodemannen opened this issue May 11, 2020 · 7 comments

Comments

@Kodemannen
Copy link

Hello there,

When I run make inside the repository I get the following error message

gcc -c -I. -I/usr/include -I/usr/include -I/usr/include/wine -I/usr/include/wine/windows    -g -O2 -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -o jackasio.o jackasio.c
jackasio.c:57:10: fatal error: windows.h: No such file or directory
   57 | #include <windows.h>
      |          ^~~~~~~~~~~
compilation terminated.
make: *** [Makefile:82: jackasio.o] Error 1

Do you know what to do?

Cheers :)

@Kodemannen Kodemannen changed the title "fatal error: windows.h: No such file or directory" when running make "fatal error: windows.h: No such file or directory" when running make (Ubuntu 20.04 LTS) May 11, 2020
@matstc
Copy link

matstc commented May 12, 2020

I fixed this problem by tweaking the Makefile and pointing it to /usr/include/wine/wine/windows.

I also had to apt install libwine-dev and libjack-dev for it to compile.

@Kodemannen
Copy link
Author

Thanks! I actually just decided to keep using Windows for audio production for now, but I will try this when I try again later at some point!

@SamuelAbade
Copy link

I fixed this problem by tweaking the Makefile and pointing it to /usr/include/wine/wine/windows.

I also had to apt install libwine-dev and libjack-dev for it to compile.

Where exactly did you change this value?

@matstc
Copy link

matstc commented May 21, 2020

@SamuelAbade Here's a diff of my Makefile:

diff --git a/Makefile b/Makefile
index f79cf9c..4772356 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ EXES                  =
 CEXTRA                = -g -O2 -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith
 CXXEXTRA              = -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith
 RCEXTRA               =
-INCLUDE_PATH          = -I. -I/usr/include -I$(PREFIX)/include -I$(PREFIX)/include/wine -I$(PREFIX)/include/wine/windows
+INCLUDE_PATH          = -I. -I/usr/include -I$(PREFIX)/include -I$(PREFIX)/include/wine -I$(PREFIX)/include/wine/wine/windows -I/usr/src/linux-headers-5.3.0-7648/include/sound
 DLL_PATH              =
 LIBRARY_PATH          =
 LIBRARIES             = -ljack

@SamuelAbade
Copy link

-I. -I/usr/include -I$(PREFIX)/include -I$(PREFIX)/include/wine -I$(PREFIX)/include/wine/wine/windows -I/usr/src/linux-headers-5.3.0-7648/include/sound

Thank's for the help!! The directory (/usr/include/wine) doesn't exist on my machine, I don't know what to do...

@matstc
Copy link

matstc commented May 24, 2020

On my system (Ubuntu), it came with the package libwine-dev. You can search for which installed package contains a certain path with the following command:

dpkg -S /usr/include/wine

If you want to search for filenames in packages you haven't installed yet, you can use apt-file.

@SamuelAbade
Copy link

@matstc Thanks mate! It helped me a lot!!! Now wineasio works on my computer!!

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

No branches or pull requests

3 participants