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

improve linux build #2

Open
edne opened this issue Dec 11, 2015 · 8 comments
Open

improve linux build #2

edne opened this issue Dec 11, 2015 · 8 comments

Comments

@edne
Copy link

edne commented Dec 11, 2015

Now there are installing instructions and scripts only for the MacOs/Darwin environment

@xseignard
Copy link

Hello there,
AFAIK, to install ofxAubio under linux (ubuntu in my case), I had to install aubio before:

sudo apt-get install libaubio-dev aubio-tools

Now it finds the aubio headers, but still cannot compile the example project.

Here is the kind of compile errors:

ofxAubioBeat.cpp:(.text+0xd4): référence indéfinie vers « new_aubio_tempo »
ofxAubioBeat.cpp:(.text+0xe8): référence indéfinie vers « aubio_tempo_set_silence »

And much more of this style (undefined reference).

Any idea? I'm running ubuntu 15.04

Regards

Xavier

edne added a commit to edne/ofxAubio that referenced this issue Feb 28, 2016
@jnlsn
Copy link

jnlsn commented Feb 29, 2016

Hey edne, I just tried your directions for Linux, but when I try building the example project, I have the following error, any ideas?

[...]/ofxAubio/src/ofxAubioOnset.cpp: In member function ‘void ofxAubioOnset::setup(std::string, int, int, int)’:
[...]/ofxAubio/src/ofxAubioOnset.cpp:41:52: error: ‘aubio_onset_get_threshold’ was not declared in this scope
threshold = aubio_onset_get_threshold(onset);

@piem
Copy link
Member

piem commented Feb 29, 2016

hi all,

@edne, thanks for the patch! i'll have a look ASAP.
@jayarnielsen, what version of libaubio-dev do you have installed?

@jnlsn
Copy link

jnlsn commented Feb 29, 2016

@piem I have 0.4.0-1 installed

@piem
Copy link
Member

piem commented Feb 29, 2016

@jayarnielsen ok, you would need 0.4.1 to get aubio_onset_get_threshold, but for now you can just remove that line and set the default threshold to 0.3 at line 41 of src/ofxAubioOnset.cpp, like so:

-        threshold = aubio_onset_get_threshold(onset);
+        threshold = 0.3; //aubio_onset_get_threshold(onset);

this should get you rolling. let us know how it goes!

@jnlsn
Copy link

jnlsn commented Feb 29, 2016

@piem So that worked, but then I got a whole slew of new errors that I am guessing are also related to using the older 0.4.0 version.

@piem
Copy link
Member

piem commented Feb 29, 2016

what do these errors look like?

On 2/29/16 9:40 PM, JR wrote:

@piem https://github.com/piem So that worked, but then I got a whole
slew of new errors that I am guessing are also related to using the
older 0.4.0 version.


Reply to this email directly or view it on GitHub
#2 (comment).

@jnlsn
Copy link

jnlsn commented Mar 6, 2016

@piem lots of undefined references. new_aubio_tempo, aubio_tempo_set_silence, del_aubio_tempo, aubio_temp_do, aubio_tempo_get_bpm, aubio_temp_get_last_s, and so on.

Well this is embarrassing, I guess I hadn't added the -laubio linker flag after all.

@piem piem changed the title Linux support improve linux build Nov 14, 2017
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

4 participants