Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] wineasio will not compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
statikregimen
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2011
Posts: 138
Location: USA/Michigan

PostPosted: Fri Jun 15, 2018 2:53 pm    Post subject: [SOLVED] wineasio will not compile Reply with quote

Hello and happy Friday \o/

I'm hoping this will turn out to be simple. Posting here because I can't help but think that I"m having a multilib issue more likely than wineasio is broken (otoh, wineasio doesn't appear to have been updated since Q4 2013 so who knows...hopefully someone can help me narrow it down either way). But I have no idea, so just gotta start somewhere. I'm trying to build wineasio and seem to be getting an error that only apparently a couple other people on the internet have encountered and of course, no solution was ever posted.

The included readme seems pretty straight forward. However, when I get to the make step:

Following 64-bit instructions (ideal for my use case), this happens:
Code:
# make -f Makefile64
winegcc -shared wineasio.dll.spec -mnocygwin -L/usr/lib/wine -L/usr/lib -o wineasio.dll.so asio.o main.o regsvr.o     -ljack  -lodbc32 -lole32 -lwinmm -luuid
main.o: In function `DllGetClassObject':
/home/statik/Downloads/asio_tmp/wineasio/main.c:134: undefined reference to `IID_IClassFactory'
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: main.o: relocation R_X86_64_PC32 against undefined hidden symbol `IID_IClassFactory' can not be used when making a shared object
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
winegcc: x86_64-pc-linux-gnu-gcc failed
make: *** [Makefile64:113: wineasio.dll.so] Error 2


When trying 32-bit, this happens:
Code:
# make
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
x86_64-pc-linux-gnu-ld: Relocatable linking with relocations from format elf64-x86-64 (asio.o) to format elf32-i386 (wineasio.WMT0yp.o) is not supported
winebuild: x86_64-pc-linux-gnu-ld failed with status 1
winegcc: winebuild failed
make: *** [Makefile:114: wineasio.dll.so] Error 2


I've installed wine via virtual/wine which nets:
Code:
# wine --version
wine-2.0.3


Code:
# emerge --info virtual/wine
...
virtual/wine-0-r5::gentoo was built with the following:
USE="(-d3d9) (-staging)" ABI_X86="32 64"


If more from emerge --info is required I can oblige...It's just long and not sure how to scroll while selecting in xterm (or otherwise how to copy long command outputs easily).

That's all the pertinent information I can think of to provide for now. I'm sure I've forgotten something obvious though so be gentle <3

My ultimate goal is to run 64-bit Reaper (DAW) for my home studio. So basically any solution to getting low latency is acceptable, should there be some other approach to this that I just haven't discovered yet.

Cheers and as always, thanks in advance for any help!

EDIT: I have found this http://gamesplusone.com/alsa_to_jack.html but I don't think it will solve my latency woes.
_________________
Links of me:
https://bitbucket.org/experimentfailed/
https://experimentfailed.bandcamp.com/


Last edited by statikregimen on Sat Jul 14, 2018 12:23 am; edited 2 times in total
Back to top
View user's profile Send private message
bobbymcgee
n00b
n00b


Joined: 12 Apr 2018
Posts: 55

PostPosted: Sat Jun 16, 2018 5:07 am    Post subject: Reply with quote

looks like a recompile with -fPIC error to me
Back to top
View user's profile Send private message
statikregimen
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2011
Posts: 138
Location: USA/Michigan

PostPosted: Sat Jun 16, 2018 2:25 pm    Post subject: Reply with quote

Thanks for the reply. My lack of experience will now shine brightly. I'm not 100% sure what to do with that information, but to try not to be a complete dolt, I googled for a minute and then examined the makefile.

Makefile64 had:

Code:
CEXTRA                = -g -O2 -D__WINESRC__ -DNATIVE_INT64 -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-ar$
CXXEXTRA              = -D__WINESRC__ -DNATIVE_INT64 -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wpointer-arith


So for giggles, I removed -fPIC from both lines, but the error persists. Let me know if I'm doing it wrong!

As a hail Mary, I also posted in the Reaper forums, and may have struck gold. The author of the current wineasio version replied, so I will be hopping on IRC with him at some point.

https://forum.cockos.com/showthread.php?p=2001401#post2001401
Back to top
View user's profile Send private message
bobbymcgee
n00b
n00b


Joined: 12 Apr 2018
Posts: 55

PostPosted: Sat Jun 16, 2018 7:24 pm    Post subject: Reply with quote

you want it to be used and from what you posted above it looked like it was not being used. try to use this overlay to install it. portage is more predictable than your own config.
https://github.com/internethering/hering-overlay
Back to top
View user's profile Send private message
statikregimen
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2011
Posts: 138
Location: USA/Michigan

PostPosted: Sat Jun 16, 2018 7:28 pm    Post subject: Reply with quote

bobbymcgee wrote:
you want it to be used and from what you posted above it looked like it was not being used. try to use this overlay to install it. portage is more predictable than your own config.
https://github.com/internethering/hering-overlay


Thanks for the reply... I tried that first. It appears to be broken. It gives instructions for obtaining asiosdk2.3.zip and where to put it (which doesn't exist, so i create it), but it fails. In the error message, gives the instructions again, but lists a different location to put it - I put it there and it still fails. I chased my tail for a few hours trying to figure out what it wanted :(
Back to top
View user's profile Send private message
bobbymcgee
n00b
n00b


Joined: 12 Apr 2018
Posts: 55

PostPosted: Sat Jun 16, 2018 7:38 pm    Post subject: Reply with quote

it just needs asio.h from the non-free package, I assume you have it anyways? This is where it looks for it in ebuild.
Code:
/opt/asiosdk2.3/ASIOSDK2.3/common/asio.h
Back to top
View user's profile Send private message
statikregimen
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2011
Posts: 138
Location: USA/Michigan

PostPosted: Sat Jun 16, 2018 7:45 pm    Post subject: Reply with quote

Tried putting asio.h in /opt/asiosdk2.3/ASIOSDK2.3/common and get the same thing I always get:

Code:
# emerge --ask wineasio

 * IMPORTANT: 10 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N F  ~] media-libs/asio-sdk-2.3
[ebuild  N    ~] app-emulation/wineasio-0.9.2  ABI_X86="(64) -32 (-x32)"

Fetch instructions for media-libs/asio-sdk-2.3:
 * 1. Go to http://www.steinberg.net/en/company/developer.html
 * 2. Create a developer login if you do not have one (this is required)
 * 3. When you are logged in, click on the link for ASIO SDK
 * 4. Agree to license terms and click on 'proceed to download'
 * 5. move asiosdk2.3.zip to /var/tmp/tmpatpc8r7j/portage/media-libs/asio-sdk-2.3/distdir
 *

Would you like to merge these packages? [Yes/No]

>>> Verifying ebuild manifests

>>> Emerging (1 of 2) media-libs/asio-sdk-2.3::hering-overlay
 * Fetching files in the background.
 * To view fetch progress, run in another terminal:
 * tail -f /var/log/emerge-fetch.log

!!! media-libs/asio-sdk-2.3 has fetch restriction turned on.
!!! This probably means that this ebuild's files must be downloaded
!!! manually.  See the comments in the ebuild for more information.

 * Fetch failed for 'media-libs/asio-sdk-2.3', Log file:
 *  '/var/tmp/portage/media-libs/asio-sdk-2.3/temp/build.log'
 * 1. Go to http://www.steinberg.net/en/company/developer.html
 * 2. Create a developer login if you do not have one (this is required)
 * 3. When you are logged in, click on the link for ASIO SDK
 * 4. Agree to license terms and click on 'proceed to download'
 * 5. move asiosdk2.3.zip to /var/tmp/portage/media-libs/asio-sdk-2.3/distdir
 *

>>> Failed to emerge media-libs/asio-sdk-2.3, Log file:

>>>  '/var/tmp/portage/media-libs/asio-sdk-2.3/temp/build.log'

 * Messages for package media-libs/asio-sdk-2.3:

 * Fetch failed for 'media-libs/asio-sdk-2.3', Log file:
 *  '/var/tmp/portage/media-libs/asio-sdk-2.3/temp/build.log'
Back to top
View user's profile Send private message
bobbymcgee
n00b
n00b


Joined: 12 Apr 2018
Posts: 55

PostPosted: Sat Jun 16, 2018 8:07 pm    Post subject: Reply with quote

oh i overlooked that dpeendency. add media-libs/asio-sdk to package.provided

/etc/portage/package.provided
Code:
media-libs/asio-sdk-2.3


EDIT: heres the link, just wget that in your distfiles, cuz we may fail elsewhere with the above.
http://www.steinberg.net/sdk_downloads/asiosdk2.3.zip
Back to top
View user's profile Send private message
statikregimen
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2011
Posts: 138
Location: USA/Michigan

PostPosted: Sat Jun 16, 2018 8:17 pm    Post subject: Reply with quote

bobbymcgee wrote:
oh i overlooked that dpeendency. add media-libs/asio-sdk to package.provided

/etc/portage/package.provided
Code:
media-libs/asio-sdk-2.3


EDIT: heres the link, just wget that in your distfiles, cuz we may fail elsewhere with the above.
http://www.steinberg.net/sdk_downloads/asiosdk2.3.zip


Unfortunately, this seems to have had no effect :(
Back to top
View user's profile Send private message
bobbymcgee
n00b
n00b


Joined: 12 Apr 2018
Posts: 55

PostPosted: Sat Jun 16, 2018 8:18 pm    Post subject: Reply with quote

i never use package.provided. maybe im doing it wrong? try the edit.
Back to top
View user's profile Send private message
statikregimen
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2011
Posts: 138
Location: USA/Michigan

PostPosted: Sat Jun 16, 2018 8:37 pm    Post subject: Reply with quote

I replied before I saw the edit.

I didn't know what you meant by "distfiles" so i ran find and came up with /usr/portage/distfiles/

Copied asiosdk2.3.zip to there and now it seems to have worked.

Thank you very much! I suppose somebody should alert the overlay maintainer that the instructions he provides are incorrect.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum