wineasio installation problems

Questions about Wine on Linux
Locked
zimbodel
Level 2
Level 2
Posts: 29
Joined: Sat Feb 02, 2019 1:03 pm

wineasio installation problems

Post by zimbodel »

on
make clean
make
I get the following error

Any idea how to fix this as wineasio is not installed in wine.

# make
gcc -c -I. -I/usr/include -I/usr/include -I/usr/include/wine -I/usr/include/wine/windows -m32 -g -O2 -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -o asio.o asio.c
asio.c:33:24: fatal error: wine/debug.h: No such file or directory
#include "wine/debug.h"
^
compilation terminated.
Makefile:81: recipe for target 'asio.o' failed
make: *** [asio.o] Error 1

I have asio.h in the sources directory.
Here is what is in my source directory for compilation
wineasio# ls
asio.c COPYING.LIB Makefile prepare_64bit_asio regsvr.c
asio.h main.c Makefile64 README wineasio.dll.spec

-------------------For Reference. Here is everything listed in wineasio directory I use to compile
# find * wineasio
ASIOSDK2.3
ASIOSDK2.3/changes.txt
ASIOSDK2.3/common
ASIOSDK2.3/common/dllentry.cpp
ASIOSDK2.3/common/asiodrvr.h
ASIOSDK2.3/common/asiodrvr.cpp
ASIOSDK2.3/common/asio.h
ASIOSDK2.3/common/asiosys.h
ASIOSDK2.3/common/debugmessage.cpp
ASIOSDK2.3/common/iasiodrv.h
ASIOSDK2.3/common/combase.cpp
ASIOSDK2.3/common/combase.h
ASIOSDK2.3/common/register.cpp
ASIOSDK2.3/common/asio.cpp
ASIOSDK2.3/common/wxdebug.h
ASIOSDK2.3/driver
ASIOSDK2.3/driver/asiosample
ASIOSDK2.3/driver/asiosample/wintimer.cpp
ASIOSDK2.3/driver/asiosample/asiosample.txt
ASIOSDK2.3/driver/asiosample/asiosample
ASIOSDK2.3/driver/asiosample/asiosample/asiosample.dsp
ASIOSDK2.3/driver/asiosample/asiosample/asiosample.vcproj
ASIOSDK2.3/driver/asiosample/macnanosecs.cpp
ASIOSDK2.3/driver/asiosample/asiosample.def
ASIOSDK2.3/driver/asiosample/mactimer.cpp
ASIOSDK2.3/driver/asiosample/makesamp.cpp
ASIOSDK2.3/driver/asiosample/asiosmpl.cpp
ASIOSDK2.3/driver/asiosample/asiosmpl.h
ASIOSDK2.3/Steinberg ASIO Licensing Agreement.pdf
ASIOSDK2.3/host
ASIOSDK2.3/host/asiodrivers.h
ASIOSDK2.3/host/sample
ASIOSDK2.3/host/sample/hostsample.dsp
ASIOSDK2.3/host/sample/hostsample.cpp
ASIOSDK2.3/host/sample/hostsample.vcproj
ASIOSDK2.3/host/ASIOConvertSamples.cpp
ASIOSDK2.3/host/ASIOConvertSamples.h
ASIOSDK2.3/host/ginclude.h
ASIOSDK2.3/host/mac
ASIOSDK2.3/host/mac/codefragments.hpp
ASIOSDK2.3/host/mac/codefragments.cpp
ASIOSDK2.3/host/mac/asioshlib.cpp
ASIOSDK2.3/host/pc
ASIOSDK2.3/host/pc/asiolist.cpp
ASIOSDK2.3/host/pc/asiolist.h
ASIOSDK2.3/host/asiodrivers.cpp
ASIOSDK2.3/ASIO SDK 2.3.pdf
ASIOSDK2.3/readme.txt
ASIOSDK2.3/asio
ASIOSDK2.3/asio/asio.dsw
ASIOSDK2.3/asio/asio.opt
wineasio
wineasio/prepare_64bit_asio
wineasio/regsvr.c
wineasio/asio.h
wineasio/asio.c
wineasio/main.c
wineasio/Makefile64
wineasio/wineasio.dll.spec
wineasio/COPYING.LIB
wineasio/Makefile
wineasio/README
wineasio
wineasio/prepare_64bit_asio
wineasio/regsvr.c
wineasio/asio.h
wineasio/asio.c
wineasio/main.c
wineasio/Makefile64
wineasio/wineasio.dll.spec
wineasio/COPYING.LIB
wineasio/Makefile
wineasio/README
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: wineasio installation problems

Post by Bob Wya »

@zimbodel

The stock winehq Wine Ubuntu packages are installed to:

Code: Select all

/opt/wine-{stable,staging,vanilla}/
However the Wine headers files are not installed by this package alone.

So you'll want to:

Code: Select all

apt install wine-staging-dev # OR
apt install wine-devel-dev # OR
apt install wine-stable-dev
to install the Wine header files.

Then you'll want to change the default header file location that wineasio searches:

Code: Select all

make PREFIX='/opt/wine-staging'  # OR
make PREFIX='/opt/wine-devel'  # OR
make PREFIX='/opt/wine-stable'
If posting again, please ensure that you:
  • state what OS your are using
  • what Wine version you are testing
  • use forum Code tags for blocks of terminal output+commands:

    Code: Select all

    ...
Thanks
Bob
zimbodel
Level 2
Level 2
Posts: 29
Joined: Sat Feb 02, 2019 1:03 pm

Re: wineasio installation problems

Post by zimbodel »

All previous was installed,
Both options of the following threw an error.
# make PREFIX='/opt/wine-stable'
make: *** No targets specified and no makefile found. Stop.

Ok, sorry I misunderstood you.
This is just the usual install directory from sources.

I thought you meant to go to opt as root and do a make there which will never worlk obviously.

BTW there seems to be huge confusion on the web about where the latest wineasio sources are.
I use wineasio-0.9.2.tar.gz
Do you know where?

Anyway, continuing with what I have as sources, creates an erro. I am sure i selected the correct option for make as

apt install wine-staging-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
wine-staging-dev is already the newest version (2.21-1mx17+1).

means I should use wine-staging


# make PREFIX='/opt/wine-staging'
gcc -c -I. -I/usr/include -I/opt/wine-staging/include -I/opt/wine-staging/include/wine -I/opt/wine-staging/include/wine/windows -m32 -g -O2 -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -o asio.o asio.c
In file included from asio.c:36:0:
asio.c: In function ‘CreateBuffers’:
asio.c:956:11: warning: format ‘%i’ expects argument of type ‘int’, but argument 5 has type ‘long int’ [-Wformat=]
TRACE("The ASIO host supports ASIO v%i: ", This->asio_callbacks->asioMessage(kAsioEngineVersion, 0, 0, 0));
^
/opt/wine-staging/include/wine/debug.h:91:49: note: in definition of macro ‘__WINE_DBG_LOG’
wine_dbg_log( __dbcl, __dbch, __FUNCTION__, args); } } while(0)
^~~~
/opt/wine-staging/include/wine/debug.h:341:36: note: in expansion of macro ‘__WINE_DPRINTF’
#define WINE_TRACE __WINE_DPRINTF(_TRACE,__wine_dbch___default)
^~~~~~~~~~~~~~
/opt/wine-staging/include/wine/debug.h:385:36: note: in expansion of macro ‘WINE_TRACE’
#define TRACE WINE_TRACE
^~~~~~~~~~
asio.c:956:5: note: in expansion of macro ‘TRACE’
TRACE("The ASIO host supports ASIO v%i: ", This->asio_callbacks->asioMessage(kAsioEngineVersion, 0, 0, 0));
^~~~~
gcc -c -I. -I/usr/include -I/opt/wine-staging/include -I/opt/wine-staging/include/wine -I/opt/wine-staging/include/wine/windows -m32 -g -O2 -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -o main.o main.c
gcc -c -I. -I/usr/include -I/opt/wine-staging/include -I/opt/wine-staging/include/wine -I/opt/wine-staging/include/wine/windows -m32 -g -O2 -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith -o regsvr.o regsvr.c
winegcc -shared -m32 wineasio.dll.spec -mnocygwin -L/usr/lib32/wine -L/usr/lib32 -o wineasio.dll.so asio.o main.o regsvr.o -ljack -lodbc32 -lole32 -lwinmm -luuid
make: winegcc: Command not found
Makefile:114: recipe for target 'wineasio.dll.so' failed
make: *** [wineasio.dll.so] Error 127
zimbodel
Level 2
Level 2
Posts: 29
Joined: Sat Feb 02, 2019 1:03 pm

Re: wineasio installation problems

Post by zimbodel »

So where do I get winegcc
The WIKI just mentons it as if it is already installed
https://wiki.debian.org/Wine
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: wineasio installation problems

Post by Bob Wya »

zimbodel wrote:...
BTW there seems to be huge confusion on the web about where the latest wineasio sources are.
I use wineasio-0.9.2.tar.gz
Do you know where?
No, I don't use this software...
I just test with wineasio 0.9.2 - to make sure I know how to build it.
Since this question comes up on these forums, every year or so...
zimbodel wrote: wine-staging-dev is already the newest version (2.21-1mx17+1).
That Wine version is very obsolete. The current Wine Staging release is 4.1
zimbodel wrote:

Code: Select all

make PREFIX='/opt/wine-staging' 
...
make: winegcc: Command not found
Makefile:114: recipe for target 'wineasio.dll.so' failed
make: *** [wineasio.dll.so] Error 127
winegcc is installed in:

Code: Select all

/opt/wine-staging/bin/winegcc
for the Wine Staging package.

If you use the WineHQ Wine Staging packages, e.g.:

Code: Select all

apt install winehq-staging
this will install Wine compatibility symbolic links in your global PATH:

Code: Select all

/usr/bin

Please use the forum Code tags for blocks of terminal commands+output, as I've already asked you to do...

Code: Select all

...
Currently, your posts are super unreadable...
Due to the interspersed blocks of code and regular text.[/size] :roll:

Thanks
Bob
zimbodel
Level 2
Level 2
Posts: 29
Joined: Sat Feb 02, 2019 1:03 pm

Re: wineasio installation problems

Post by zimbodel »

Strange the green stuff is more difficult for me to read.
First of all the text in the green boxes are such a light green I cannot make it out.
I have to mouseover to read it. Very uncomfortable and highly laborious.

It might be because I am slightly green colorblind and therefore I cannot see the purpose of converting readable text into unreadable text.

Therefore black is always a great color to use to make it easy for everyone to read.

# cat /etc/*release*
NAME="MX"
VERSION="18 (Continuum)"
ID="mx"
VERSION_ID="18"
PRETTY_NAME="MX 18 (Continuum)"
ANSI_COLOR="0;34"
HOME_URL="https://mxlinux.org"
BUG_REPORT_URL="https://mxlinux.org"
PRETTY_NAME="MX 18 Continuum"
DISTRIB_ID=MX
DISTRIB_RELEASE=18
DISTRIB_CODENAME=Continuum
DISTRIB_DESCRIPTION="MX 18 Continuum"
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
zimbodel
Level 2
Level 2
Posts: 29
Joined: Sat Feb 02, 2019 1:03 pm

Re: wineasio installation problems

Post by zimbodel »

So my problem at this stage is.

# make PREFIX='/opt/wine-staging'
winegcc -shared -m32 wineasio.dll.spec -mnocygwin -L/usr/lib32/wine -L/usr/lib32 -o wineasio.dll.so asio.o main.o regsvr.o -ljack -lodbc32 -lole32 -lwinmm -luuid
make: winegcc: Command not found
Makefile:114: recipe for target 'wineasio.dll.so' failed
make: *** [wineasio.dll.so] Error 127

By trying to let make find it I do
ln -s /opt/wine-staging/bin/winegcc winegcc

but make still doesnt find it.

I then did
ln /opt/wine-staging/bin/winegcc /usr/bin/winegcc

but make seemingly doesnt execute winegcc at all just report failure as I linked it to the /usr/bin directory and it is now globally executable
zimbodel
Level 2
Level 2
Posts: 29
Joined: Sat Feb 02, 2019 1:03 pm

Re: wineasio installation problems

Post by zimbodel »

Ok globally linking winegcc now made it work .. why not do it during wine installer ?

The new problem is now

# make PREFIX='/opt/wine-staging'
winegcc -shared -m32 wineasio.dll.spec -mnocygwin -L/usr/lib32/wine -L/usr/lib32 -o wineasio.dll.so asio.o main.o regsvr.o -ljack -lodbc32 -lole32 -lwinmm -luuid
winegcc: winebuild failed
Makefile:114: recipe for target 'wineasio.dll.so' failed
make: *** [wineasio.dll.so] Error 2

Tried to fix this by installing all development libraries did not help.
zimbodel
Level 2
Level 2
Posts: 29
Joined: Sat Feb 02, 2019 1:03 pm

Re: wineasio installation problems

Post by zimbodel »

OK I solved it:

for readers who have the same problem trying to install wineasio, just forget the sources. There is seemingly a misconfiguration .. actually multiples in the makefiles.

see e.g. this post
============================================
Juliano - 2015-06-25

After some struggle I solved the problem. I installed wine-dev like you said, but it still didn't work. Turns out that the wineasio Makefile was trying to compile with the command winegcc, while in wine-dev package the command was winegcc32. I just changed this into the makefile and I was able to compile :)

Thanks for the help.
from https://sourceforge.net/p/wineasio/disc ... /5ded2fdc/
=================================================

So I had to give up on the buggy source.
If you using Debian based Linux then do the following

======================================
#THE ONLY WAY I could find to TO INSTALL WINEASIO on Debian / Ubuntu

# Install required dependencies if needed
sudo apt-get install apt-transport-https software-properties-common wget

# Download package file
wget https://launchpad.net/~kxstudio-debian/ ... o3_all.deb

# Install it
sudo dpkg -i kxstudio-repos_9.5.1~kxstudio3_all.deb

#update
apt update

#install wineasio
apt install wineasio

==================================================

Afterer which wineasio is finally installed.
If it will actually work is another crapshoot.
With wine things go dormant fast
Locked