Old 12-14-2018, 01:25 PM   #1
mykrobinson
Human being with feelings
 
mykrobinson's Avatar
 
Join Date: Mar 2011
Location: West Tennessee
Posts: 1,146
Default Arch - Building LinVST

I hate to admit it, but I have been out of Linux for a few years and have lost a few skills.

I am running Reaper in Antergos but want to get LinVST running to use a few Windows based plugins. The LinVST in the AUR repository errors out because of a bad link to a Steinbgerg product, as noted here

https://aur.archlinux.org/packages/linvst/

Can someone help me with either correcting the PKGBUILD file to append the correct URL (i tried this but I get MD5 error), or building it from source? Here's what I get when I try to build from a tarball

Code:
[mykrobinson@SAMSUNG-ANTERGOS LinVst-2.3]$ make
g++ -fPIC -O2 -DLVRT -DEMBED -DEMBEDDRAG -DWAVES -DVESTIGE  -c linvst.cpp -o linvst.unix.o
g++ -fPIC -O2 -DLVRT -DEMBED -DEMBEDDRAG -DWAVES -DVESTIGE  -c remotevstclient.cpp -o remotevstclient.unix.o
remotevstclient.cpp: In function ‘const char* selfname()’:
remotevstclient.cpp:91:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
g++ -fPIC -O2 -DLVRT -DEMBED -DEMBEDDRAG -DWAVES -DVESTIGE  -c remotepluginclient.cpp -o remotepluginclient.unix.o
g++ -fPIC -O2 -DLVRT -DEMBED -DEMBEDDRAG -DWAVES -DVESTIGE  -c paths.cpp -o paths.unix.o
g++ linvst.unix.o remotevstclient.unix.o remotepluginclient.unix.o paths.unix.o -shared -lpthread -ldl -lX11 -lrt  -o linvst.so
wineg++ -m64 -O2 -DEMBED -DEMBEDDRAG -DWAVES -DWAVESLOOP -DVESTIGE -I/usr/include/wine-development/windows -I/usr/include/wine-development/wine/windows -I/usr/include/wine/wine/windows -c lin-vst-server.cpp -o lin-vst-server.wine.o
In file included from /usr/include/c++/8.2.1/ext/string_conversions.h:41,
                 from /usr/include/c++/8.2.1/bits/basic_string.h:6400,
                 from /usr/include/c++/8.2.1/string:52,
                 from /usr/include/c++/8.2.1/bits/locale_classes.h:40,
                 from /usr/include/c++/8.2.1/bits/ios_base.h:41,
                 from /usr/include/c++/8.2.1/ios:42,
                 from /usr/include/c++/8.2.1/ostream:38,
                 from /usr/include/c++/8.2.1/iostream:39,
                 from lin-vst-server.cpp:25:
/usr/include/c++/8.2.1/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
               ^~~~~~~~~~
compilation terminated.
winegcc: g++ failed
make: *** [Makefile:54: lin-vst-server.wine.o] Error 2
[mykrobinson@SAMSUNG-ANTERGOS LinVst-2.3]$
Thanks in advance...
mykrobinson is offline   Reply With Quote
Old 12-14-2018, 01:35 PM   #2
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

Code:
curl 'https://download.steinberg.net/sdk_downloads/vstsdk3611_22_10_2018_build_34.zip' | sha256sum
This will give you the SHA-256 checksum for the new URL.
cfillion is offline   Reply With Quote
Old 12-14-2018, 02:07 PM   #3
mykrobinson
Human being with feelings
 
mykrobinson's Avatar
 
Join Date: Mar 2011
Location: West Tennessee
Posts: 1,146
Default

Quote:
Originally Posted by cfillion View Post
Code:
curl 'https://download.steinberg.net/sdk_downloads/vstsdk3611_22_10_2018_build_34.zip' | sha256sum
This will give you the SHA-256 checksum for the new URL.
Thanks for that. I am having an issue still. I edit the PKGBUILD file located in ~/.cache/yay/linvst to have the correct URL and checksum, however, when I run

yay -S linvst



again, it seems to overwrite the file with the original information, despite me telling it No to the question of clean builds.

Any further advice? I am definitely not scared of the terminal, just not quite sure what to do yet.

Thanks
mykrobinson is offline   Reply With Quote
Old 12-14-2018, 02:20 PM   #4
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

I'm not familiar with the yay AUR helper, but it looks like it allows editing before building with --editmenu --save.

Otherwise you can always build the package manually with makepkg -si in the directory containing the PKGBUILD.

Last edited by cfillion; 12-14-2018 at 02:25 PM.
cfillion is offline   Reply With Quote
Old 12-14-2018, 02:29 PM   #5
mykrobinson
Human being with feelings
 
mykrobinson's Avatar
 
Join Date: Mar 2011
Location: West Tennessee
Posts: 1,146
Default

Quote:
Originally Posted by cfillion View Post
I'm not familiar with the yay AUR helper, but it looks like it allows editing before building with yay --editmenu --save.

Otherwise you can always build the package manually with makepkg -si in the directory containing the PKGBUILD.
First off, I greatly appreciate you helping this far, as this is kinda out of the scope of this forum, not being reaper-specific...

that said, I edited the PKGBUILD file and went to make a package myself, and ended up at the same roadblock I got when i tried to install from a tarball I downloaded. I think it may be dependency related. I will read through this more and try to figure it out, but I am quite appreciative of a second set of more experienced eyes.

Code:
[mykrobinson@SAMSUNG-ANTERGOS linvst]$ makepkg -si
==> Making package: linvst 2.3.r44.2a4b91e-1 (Fri 14 Dec 2018 03:25:03 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating LinVst git repo...
Fetching origin
  -> Downloading vstsdk3611_22_10_2018_build_34.zip...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 88.7M  100 88.7M    0     0  5566k      0  0:00:16  0:00:16 --:--:-- 9464k
==> Validating source files with sha256sums...
    LinVst ... Skipped
    vstsdk3611_22_10_2018_build_34.zip ... Passed
==> Extracting sources...
  -> Creating working copy of LinVst git repo...
Cloning into 'LinVst'...
done.
  -> Extracting vstsdk3611_22_10_2018_build_34.zip with bsdtar
==> Starting prepare()...
==> Starting pkgver()...
==> Updated version: linvst 2.3.r46.ab52472-1
==> Starting build()...
g++ -fPIC -O2 -DLVRT -DVST6432 -DEMBED -DEMBEDDRAG -DWAVES -DVESTIGE  -c linvst.cpp -o linvst.unix.o
g++ -fPIC -O2 -DLVRT -DVST6432 -DEMBED -DEMBEDDRAG -DWAVES -DVESTIGE  -c remotevstclient.cpp -o remotevstclient.unix.o
g++ -fPIC -O2 -DLVRT -DVST6432 -DEMBED -DEMBEDDRAG -DWAVES -DVESTIGE  -c remotepluginclient.cpp -o remotepluginclient.unix.o
g++ -fPIC -O2 -DLVRT -DVST6432 -DEMBED -DEMBEDDRAG -DWAVES -DVESTIGE  -c paths.cpp -o paths.unix.o
remotevstclient.cpp: In function ‘const char* selfname()’:
remotevstclient.cpp:91:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
wineg++ -m64 -O2 -DVST6432 -DEMBED -DEMBEDDRAG -DWAVES -DWAVESLOOP -DVESTIGE -I/usr/include/wine-development/windows -I/usr/include/wine-development/wine/windows -I/usr/include/wine/wine/windows -c lin-vst-server.cpp -o lin-vst-server.wine.o
In file included from /usr/include/c++/8.2.1/ext/string_conversions.h:41,
                 from /usr/include/c++/8.2.1/bits/basic_string.h:6400,
                 from /usr/include/c++/8.2.1/string:52,
                 from /usr/include/c++/8.2.1/bits/locale_classes.h:40,
                 from /usr/include/c++/8.2.1/bits/ios_base.h:41,
                 from /usr/include/c++/8.2.1/ios:42,
                 from /usr/include/c++/8.2.1/ostream:38,
                 from /usr/include/c++/8.2.1/iostream:39,
                 from lin-vst-server.cpp:25:
/usr/include/c++/8.2.1/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
 #include_next <stdlib.h>
               ^~~~~~~~~~
compilation terminated.
winegcc: g++ failed
make: *** [Makefile-embed-6432:60: lin-vst-server.wine.o] Error 2
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
    Aborting...
[mykrobinson@SAMSUNG-ANTERGOS linvst]$
mykrobinson is offline   Reply With Quote
Old 12-14-2018, 04:54 PM   #6
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

Looks like it broke in Wine 3.21. Even a C++ source file containing only #include <cstdlib> fails to build with wineg++ because -isystem /usr/include was added to GCC's command line. Not sure what's up with that... (As a quick workaround you could downgrade Wine to 3.20 or temporarily symlink /usr/include/stdlib.h to /usr/local/include.)

EDIT: Sent a bug report. https://bugs.winehq.org/show_bug.cgi?id=46293
EDIT2: Fixed in wine 4.0rc3!

Last edited by cfillion; 12-21-2018 at 04:27 PM.
cfillion is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 12:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.