wineasio / wineasio-old-docs

An updated WINE library/driver allowing Windows music apps to use ASIO fast audio routed thru JACK or JACK2 on Linux
GNU Lesser General Public License v2.1
63 stars 4 forks source link

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

Open Kodemannen opened 4 years ago

Kodemannen commented 4 years ago

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 :)

matstc commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

@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 commented 4 years ago
-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 commented 4 years ago

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 commented 4 years ago

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