Errors building ArdourVST from SVN, Advice Please?

Hello

Building ArdourVST SVN 4668 on Debian Sid, Wine-dev 1.1.5 is installed

Following Errors during compile:

libs/fst/vstwin.c:219: error: (Each undeclared identifier is reported only once
libs/fst/vstwin.c:219: error: for each function it appears in.)
libs/fst/vstwin.c:219: error: expected ‘;’ before ‘wclass’
libs/fst/vstwin.c:220: error: ‘HMODULE’ undeclared (first use in this function)
libs/fst/vstwin.c:220: error: expected ‘;’ before ‘hInst’
libs/fst/vstwin.c:223: error: ‘hInst’ undeclared (first use in this function)
libs/fst/vstwin.c:223: error: expected ‘;’ before ‘possible_hmodule’
libs/fst/vstwin.c:224: warning: implicit declaration of function ‘GetModuleHandleA’
libs/fst/vstwin.c:228: error: ‘wclass’ undeclared (first use in this function)
libs/fst/vstwin.c:230: error: ‘my_window_proc’ undeclared (first use in this function)
libs/fst/vstwin.c:234: warning: implicit declaration of function ‘LoadIcon’
libs/fst/vstwin.c:235: warning: implicit declaration of function ‘LoadCursor’
libs/fst/vstwin.c:235: error: ‘IDI_APPLICATION’ undeclared (first use in this function)
libs/fst/vstwin.c:255: warning: implicit declaration of function ‘RegisterClassExA’
libs/fst/vstwin.c:262: warning: implicit declaration of function ‘CreateThread’
libs/fst/vstwin.c:262: error: ‘gui_event_loop’ undeclared (first use in this function)
libs/fst/vstwin.c:262: warning: comparison between pointer and integer
libs/fst/vstwin.c: In function ‘fst_create_editor’:
libs/fst/vstwin.c:321: error: ‘HMODULE’ undeclared (first use in this function)
libs/fst/vstwin.c:321: error: expected ‘;’ before ‘hInst’
libs/fst/vstwin.c:323: error: ‘HWND’ undeclared (first use in this function)
libs/fst/vstwin.c:323: error: expected ‘;’ before ‘window’
libs/fst/vstwin.c:335: error: ‘hInst’ undeclared (first use in this function)
libs/fst/vstwin.c:341: error: ‘window’ undeclared (first use in this function)
libs/fst/vstwin.c:341: warning: implicit declaration of function ‘CreateWindowExA’
libs/fst/vstwin.c:342: error: ‘WS_OVERLAPPEDWINDOW’ undeclared (first use in this function)
libs/fst/vstwin.c:342: error: ‘WS_THICKFRAME’ undeclared (first use in this function)
libs/fst/vstwin.c:342: error: ‘WS_MAXIMIZEBOX’ undeclared (first use in this function)
libs/fst/vstwin.c:353: warning: implicit declaration of function ‘SetPropA’
libs/fst/vstwin.c:370: warning: implicit declaration of function ‘SetWindowPos’
libs/fst/vstwin.c:371: warning: implicit declaration of function ‘ShowWindow’
libs/fst/vstwin.c:371: error: ‘SW_SHOWNA’ undeclared (first use in this function)
libs/fst/vstwin.c:374: warning: implicit declaration of function ‘GetPropA’
libs/fst/vstwin.c:322: warning: unused variable ‘class’
libs/fst/vstwin.c: In function ‘fst_move_window_into_view’:
libs/fst/vstwin.c:389: error: ‘SW_SHOWNA’ undeclared (first use in this function)
libs/fst/vstwin.c: In function ‘fst_destroy_editor’:
libs/fst/vstwin.c:397: warning: unused variable ‘prev’
libs/fst/vstwin.c:396: warning: unused variable ‘p’
libs/fst/vstwin.c: At top level:
libs/fst/vstwin.c:433: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘fst_load_vst_library’
libs/fst/vstwin.c: In function ‘fst_load’:
libs/fst/vstwin.c:493: warning: implicit declaration of function ‘strstr’
libs/fst/vstwin.c:493: warning: incompatible implicit declaration of built-in function ‘strstr’
libs/fst/vstwin.c:495: warning: implicit declaration of function ‘malloc’
libs/fst/vstwin.c:495: warning: incompatible implicit declaration of built-in function ‘malloc’
libs/fst/vstwin.c:495: warning: implicit declaration of function ‘strlen’
libs/fst/vstwin.c:495: warning: incompatible implicit declaration of built-in function ‘strlen’
libs/fst/vstwin.c:503: warning: implicit declaration of function ‘strdup’
libs/fst/vstwin.c:503: warning: incompatible implicit declaration of built-in function ‘strdup’
libs/fst/vstwin.c:507: warning: incompatible implicit declaration of built-in function ‘malloc’
libs/fst/vstwin.c:507: warning: incompatible implicit declaration of built-in function ‘strlen’
libs/fst/vstwin.c:515: warning: incompatible implicit declaration of built-in function ‘strdup’
libs/fst/vstwin.c:522: warning: implicit declaration of function ‘strrchr’
libs/fst/vstwin.c:522: warning: incompatible implicit declaration of built-in function ‘strrchr’
libs/fst/vstwin.c:526: warning: implicit declaration of function ‘fst_load_vst_library’
libs/fst/vstwin.c:526: warning: assignment makes pointer from integer without a cast
libs/fst/vstwin.c:531: warning: implicit declaration of function ‘GetProcAddress’
libs/fst/vstwin.c:484: warning: unused variable ‘buf2’
libs/fst/vstwin.c: In function ‘fst_unload’:
libs/fst/vstwin.c:547: warning: implicit declaration of function ‘FreeLibrary’
libs/fst/vstwin.c:552: warning: implicit declaration of function ‘free’
libs/fst/vstwin.c:552: warning: incompatible implicit declaration of built-in function ‘free’
libs/fst/vstwin.c:556: warning: incompatible implicit declaration of built-in function ‘free’
libs/fst/vstwin.c: In function ‘fst_instantiate’:
libs/fst/vstwin.c:572: warning: incompatible implicit declaration of built-in function ‘free’
libs/fst/vstwin.c:581: warning: incompatible implicit declaration of built-in function ‘free’
libs/fst/vstwin.c: In function ‘fst_save_state’:
libs/fst/vstwin.c:745: warning: unused variable ‘length’
winegcc: gcc failed
scons: *** [libs/fst/vstwin.o] Error 2
scons: building terminated because of errors.
pcuser@debian:~/build/2.0-ongoing$

That seems like a weird error. I’m compiling it now on Ubuntu 8.10 and it seems OK.
What does your vstwin.c look like around those lines? Here’s mine at line 219:

        fprintf (stderr, "VST GUI EVENT LOOP THREAD EXIT\n");
        return 0;
}

int
fst_init (void* possible_hmodule)
{
        WNDCLASSEX wclass;
        HMODULE hInst;

        if (possible_hmodule) {
          hInst = (HMODULE) possible_hmodule;
        } else if ((hInst = GetModuleHandleA (NULL)) == NULL) {
          fst_error ("can't get module handle");
          return -1;
        }
    wclass.cbSize = sizeof(WNDCLASSEX);
    wclass.style = 0;
    wclass.lpfnWndProc = my_window_proc;

Perhaps something went wrong with your svn, like you had problems with jack, so perhaps trying a ‘svn up’ first might fix things.

peder

Thanks yet again for your assistance!

My vstwin.c is the same as what you posted, I downloaded SVN 4677 to be sure and things are no better

Perhaps latest Wine is an issue? Perhaps I will try a build with an older version.

Terminal Output:

libs/fst/vstwin.c:219: error: expected ‘;’ before ‘wclass’
libs/fst/vstwin.c:220: error: ‘HMODULE’ undeclared (first use in this function)
libs/fst/vstwin.c:220: error: expected ‘;’ before ‘hInst’
libs/fst/vstwin.c:223: error: ‘hInst’ undeclared (first use in this function)
libs/fst/vstwin.c:223: error: expected ‘;’ before ‘possible_hmodule’
libs/fst/vstwin.c:224: warning: implicit declaration of function ‘GetModuleHandleA’
libs/fst/vstwin.c:228: error: ‘wclass’ undeclared (first use in this function)
libs/fst/vstwin.c:230: error: ‘my_window_proc’ undeclared (first use in this function)
libs/fst/vstwin.c:234: warning: implicit declaration of function ‘LoadIcon’
libs/fst/vstwin.c:235: warning: implicit declaration of function ‘LoadCursor’
libs/fst/vstwin.c:235: error: ‘IDI_APPLICATION’ undeclared (first use in this function)
libs/fst/vstwin.c:255: warning: implicit declaration of function ‘RegisterClassExA’
libs/fst/vstwin.c:262: warning: implicit declaration of function ‘CreateThread’
libs/fst/vstwin.c:262: error: ‘gui_event_loop’ undeclared (first use in this function)
libs/fst/vstwin.c:262: warning: comparison between pointer and integer
libs/fst/vstwin.c: In function ‘fst_create_editor’:
libs/fst/vstwin.c:321: error: ‘HMODULE’ undeclared (first use in this function)
libs/fst/vstwin.c:321: error: expected ‘;’ before ‘hInst’
libs/fst/vstwin.c:323: error: ‘HWND’ undeclared (first use in this function)
libs/fst/vstwin.c:323: error: expected ‘;’ before ‘window’
libs/fst/vstwin.c:335: error: ‘hInst’ undeclared (first use in this function)
libs/fst/vstwin.c:341: error: ‘window’ undeclared (first use in this function)
libs/fst/vstwin.c:341: warning: implicit declaration of function ‘CreateWindowExA’
libs/fst/vstwin.c:342: error: ‘WS_OVERLAPPEDWINDOW’ undeclared (first use in this function)
libs/fst/vstwin.c:342: error: ‘WS_THICKFRAME’ undeclared (first use in this function)
libs/fst/vstwin.c:342: error: ‘WS_MAXIMIZEBOX’ undeclared (first use in this function)
libs/fst/vstwin.c:353: warning: implicit declaration of function ‘SetPropA’
libs/fst/vstwin.c:370: warning: implicit declaration of function ‘SetWindowPos’
libs/fst/vstwin.c:371: warning: implicit declaration of function ‘ShowWindow’
libs/fst/vstwin.c:371: error: ‘SW_SHOWNA’ undeclared (first use in this function)
libs/fst/vstwin.c:374: warning: implicit declaration of function ‘GetPropA’
libs/fst/vstwin.c:322: warning: unused variable ‘class’
libs/fst/vstwin.c: In function ‘fst_move_window_into_view’:
libs/fst/vstwin.c:389: error: ‘SW_SHOWNA’ undeclared (first use in this function)
libs/fst/vstwin.c: In function ‘fst_destroy_editor’:
libs/fst/vstwin.c:397: warning: unused variable ‘prev’
libs/fst/vstwin.c:396: warning: unused variable ‘p’
libs/fst/vstwin.c: At top level:
libs/fst/vstwin.c:433: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘fst_load_vst_library’
libs/fst/vstwin.c: In function ‘fst_load’:
libs/fst/vstwin.c:493: warning: implicit declaration of function ‘strstr’
libs/fst/vstwin.c:493: warning: incompatible implicit declaration of built-in function ‘strstr’
libs/fst/vstwin.c:495: warning: implicit declaration of function ‘malloc’
libs/fst/vstwin.c:495: warning: incompatible implicit declaration of built-in function ‘malloc’
libs/fst/vstwin.c:495: warning: implicit declaration of function ‘strlen’
libs/fst/vstwin.c:495: warning: incompatible implicit declaration of built-in function ‘strlen’
libs/fst/vstwin.c:503: warning: implicit declaration of function ‘strdup’
libs/fst/vstwin.c:503: warning: incompatible implicit declaration of built-in function ‘strdup’
libs/fst/vstwin.c:507: warning: incompatible implicit declaration of built-in function ‘malloc’
libs/fst/vstwin.c:507: warning: incompatible implicit declaration of built-in function ‘strlen’
libs/fst/vstwin.c:515: warning: incompatible implicit declaration of built-in function ‘strdup’
libs/fst/vstwin.c:522: warning: implicit declaration of function ‘strrchr’
libs/fst/vstwin.c:522: warning: incompatible implicit declaration of built-in function ‘strrchr’
libs/fst/vstwin.c:526: warning: implicit declaration of function ‘fst_load_vst_library’
libs/fst/vstwin.c:526: warning: assignment makes pointer from integer without a cast
libs/fst/vstwin.c:531: warning: implicit declaration of function ‘GetProcAddress’
libs/fst/vstwin.c:484: warning: unused variable ‘buf2’
libs/fst/vstwin.c: In function ‘fst_unload’:
libs/fst/vstwin.c:547: warning: implicit declaration of function ‘FreeLibrary’
libs/fst/vstwin.c:552: warning: implicit declaration of function ‘free’
libs/fst/vstwin.c:552: warning: incompatible implicit declaration of built-in function ‘free’
libs/fst/vstwin.c:556: warning: incompatible implicit declaration of built-in function ‘free’
libs/fst/vstwin.c: In function ‘fst_instantiate’:
libs/fst/vstwin.c:572: warning: incompatible implicit declaration of built-in function ‘free’
libs/fst/vstwin.c:581: warning: incompatible implicit declaration of built-in function ‘free’
libs/fst/vstwin.c: In function ‘fst_save_state’:
libs/fst/vstwin.c:745: warning: unused variable ‘length’
winegcc: gcc failed
scons: *** [libs/fst/vstwin.o] Error 2
scons: building terminated because of errors.
pcuser@debian:~/build/2.0-ongoing$ /home/pcuser/2.0-ongoing
bash: /home/pcuser/2.0-ongoing: No such file or directory
pcuser@debian:~/build/2.0-ongoing$

Well, Wine is 1.0.1 on Ubuntu, but I have built it with 1.1.something at home on openSUSE-11.0

OK,

Just compiled on stock A/V Linux 1.0 with no errors even with relatively old Wine 0.9.52 which worked well with previous ArdourVST. So as we guessed Wine 1.1.5 is the issue! I will downgrade to stable Wine in Sid and try again!

So even now with open-source header support VST, Ardour & Wine continue to be a volatile mix…ugggh - can someone please gently remind me WTF was so bad about Windows?

I am recording our band right now to beta test A/V Linux 2.0, our bass guy is a staunch Steinberg fanboy… I’m growing tired of his sad slow headshakes of disgust when ArdourVST crashes :frowning:

Thanks peder

EDIT

OK, Even with latest stable Wine this is buggy beyond belief! Perhaps some different VST’s than before work, many of my old faves that worked before kill Ardour dead,

linuxdsp and calf developers bring it on!! Please!!??

Just checked: wine-1.1.10 and ardour2-svn4647 works on openSUSE-11.0 with gcc-4.3.1. I’ll try the latest svn to see…

Make sure you disable any dssi-vst binary, for instance by temporarily renaming it.
I didn’t at first so it loaded the VSTs for ardour and that didn’t work.
After movning it out of the path the plugins loaded, though some of them (like the greenmachine ones) makes ardour run at 100% CPU when it’s stopped or hits the end marker.

BTW, I wonder if there’s something fishy going on with svn. I did a ‘svn up’ in my 4647 dir and the only file that got updated was SConstruct and svn claimed it was at 4678. Also a “clean” ‘svn co’ on 2.0-ongoing ends up on 4678.
Looking at the svn-browser (http://viewcvs.ardour.org/index.cgi/ardour2/ardour2/branches/) ardour2 is supposed to be at 4650 whereas ardour3 is at 4678…?

peder,

I thought of that and uninstalled DSSI-VST before I even built ArdourVST, One thing I left was the older fst files in with my VST’s, I thought this would help to prevent Ardour choking on a whole folder of VST’s on first run, who knows maybe not. If it’s going to be the same old merry-go-round as before then I’m just going to continue with DSSI-VST. To be fair perhaps waiting for the official release would be wise.

Hmmm, thought I posted this already…

No problem with ardour svn 4678 and Wine 1.1.15 here. So I’m guessing your gcc is old or buggy.
The only problem I had with some VSTs, like the greenmachine ones, is that when you stop the transport or it hits the end marker ardour chews 100% CPU. Paul thought it might have to do with denormals.

Name the plugins. If they are free or there are demo copies, I’ll be happy to investigate.

I did, Paul, in the mail I sent.
But for the record, these: http://www.greenmachine.pwuq.net/html/download.html . I’ve tried the booster, reverb and wah.

svn revision numbers are global across the entire repository.

Peder, that was directed at GMaq, not you. I have the GreenMachine stuff lined up for testing at the earliest opportunity.

@paul: Oh, sorry =)

paul

Pardon my bitching, I probably have unreasonably high hopes and I’ve been fighting with ArdourVST since I switched to Linux…I’m very earnestly trying to present it (Ardour & VST) to new users and allowed myself to get too easily frustrated… I truly appreciate all your hard work.

Plugins giving me issues:

KarmaFX Equalizer: One of the few more greater than 10 band EQ’s that actually preserve their settings. Its faders fly all over the place when you try to set them

AnwidaSoft DX Reverb Light: Also trouble with faders and knobs jittering all over the place

Sweetboy T-Sledge: Kills Ardour and locks machine totally when launched (worked perfectly before)

Ericsound FreeQ and UniQ: Both were excellent previously and now kill Ardour upon launching

Ambience: Time Knob flies to full when touched.

This particular setup is Wine 1.0 with SVN 4677 ArdourVST on Ubuntu Gutsy’s -rt Kernel and a M-Audio 1010lt.

GMaq, I had problems a while back with VST support, I’ve built my own VST host that runs as a jack client outside ardour, still requires Wine, but in the end I use a seperate install of wine that exists alongside any other that might be installed and point the linker path to it for the duration of the vst host, that way I can quarantine a stable wine version. However I did it mainly just to ‘see if it would work’ - includes many tweaks to stop VSTs crashing / or hanging, although most of the problems I found were actually due to bugs in the windows code in the plugins rather than wine (wine debug is quite revealing…) While I’ve run hundreds of free VSTs I wouldn’t rely on it for critical work, the best thing to do is use native linux plugins. It may see the light of day soon, I have the same problems with the steinberg license that everyone else does :frowning:

linuxdsp,

Well although I never had a setup nearly that elaborate, over 6 mos. of testing I isolated a particular Wine Version and about 40 VST plugins that were as relatively stable as their LADSPA counterparts, this worked very well up to Ardour 2.6 or so, Although I haven’t tested all of them in the new version of ArdourVST so far about 10 of my faves either Kill Ardour or behave very unpredictably. Disappointing to say the least.

I have no desire to include ArdourVST in the current or upcoming A/V Linux, which is a shame now that it is freely distributable…however I am still eager to include and promote your plugins and look forward to whatever packaging you come up with to make them easier to (re)distribute.

The balancing act of FST, JACK, VST, Wine and Ardour is just too precarious. I truly see now why Paul has been fairly hesitant in the past and appreciate the efforts made due to user requests, obviously many of these variables are beyond the developers control.

Keep up the great work!