Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling on Linux #9

Open
jeangit opened this issue Mar 24, 2016 · 0 comments
Open

Compiling on Linux #9

jeangit opened this issue Mar 24, 2016 · 0 comments

Comments

@jeangit
Copy link

jeangit commented Mar 24, 2016

When compiling Klystron on Linux, i got this error:

Compiling cydrvb.c...
src/snd/cydrvb.c: In function ‘cydrvb_set_tap’
src/snd/cydrvb.c:138:16: error: ‘CydTap {aka struct <anonymous>}’ has no member named ‘gain_l’
   rvb->tap[idx].gain_l = 0;
                ^
src/snd/cydrvb.c:139:16: error: ‘CydTap {aka struct <anonymous>}’ has no member named ‘gain_r’
   rvb->tap[idx].gain_r = 0;
                ^

It was because gain_l and gain_r in CydTap struct are declared only if there is STEREOUTPUT flag defined.

So for compiling, i just add in in the Makefile:

CC = gcc -shared -std=gnu99 --no-strict-aliasing -DSTEREOOUTPUT=1

With that, the compilation runs smooth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant