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

Problem compiling jack2 with opus #184

Closed
asbaklm opened this issue Jan 27, 2016 · 6 comments
Closed

Problem compiling jack2 with opus #184

asbaklm opened this issue Jan 27, 2016 · 6 comments

Comments

@asbaklm
Copy link

asbaklm commented Jan 27, 2016

Hi there

I'm trying to compile jack2 on Mint / Ubuntu 14.04 with opus for netjack2 but it doesn't seem to like the opus_custom.h file and fails. jack2 builds provided --opus=no is specified.

I'm using latest opus 1.1.2. For some reason opus also doesn't install opus_custom.h in /usr/local/include/opus so this has to be copied in manually.

There aren't any Ubuntu libopus-dev packages installed on the system.

What am I doing wrong, or is netjack2 opus not working at the moment?

@karllinden
Copy link
Contributor

Hi!

Well, there are a few glitches in the build system which are on my ToDo list, but I am terribly short on time for the time being. See #176. Also #37 is relevant. You will definitely need the -dev packages to build jack2 from source anyway, but as noted in #37 you will not get the opus_custom.h header, which is needed.

In the end you will need opus built with --custom-modes, which Mint does not provide, so you will need to compile it from source.

PR #145 is also related.

@asbaklm
Copy link
Author

asbaklm commented Jan 27, 2016

I see!

Thanks a lot for the clarification about building Opus with --custom-modes.

The jack dev package I used on Ubuntu/Mint was this one. libjack-jackd2-dev:amd64

I then created and installed a dummy jackd package and put it on hold to try and prevent any accidental installations of jack packages so I didn't have both Ubuntu libraries and self-compiled ones on the system.

PR#145 was interesting to read. Many thanks again, I really appreciate your help.

@asbaklm
Copy link
Author

asbaklm commented Jan 27, 2016

So I tried it after removing previous opus build and replacing it with newly compiled versions with --custom-modes but it still doesn't seem to work.

There aren't any Ubuntu opus dev packages installed, the previous opus libraries were uninstalled.
I tried it with opus 1.1.2 and opus 1.1.1

[36/37] Linking build/lib32/common/libjack.so
/usr/bin/ld: skipping incompatible /usr/local/lib/libopus.so when searching for -lopus
/usr/bin/ld: skipping incompatible /usr/local/lib/libopus.a when searching for -lopus
/usr/bin/ld: skipping incompatible //usr/local/lib/libopus.so when searching for -lopus
/usr/bin/ld: skipping incompatible //usr/local/lib/libopus.a when searching for -lopus
/usr/bin/ld: cannot find -lopus
collect2: error: ld returned 1 exit status

Waf: Leaving directory

@karllinden
Copy link
Contributor

Are you compiling with --mixed? In that case you also need to compile opus as a 32-bit library.

@asbaklm
Copy link
Author

asbaklm commented Jan 29, 2016

Yes I was using --mixed. Thank you very much, I hadn't realised.

@karllinden
Copy link
Contributor

Please open a new issue if you have any other problems. Thanks.

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

2 participants