GithubHelp home page GithubHelp logo

improve linux build about ofxaubio HOT 8 OPEN

edne avatar edne commented on July 24, 2024
improve linux build

from ofxaubio.

Comments (8)

xseignard avatar xseignard commented on July 24, 2024

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

from ofxaubio.

jnlsn avatar jnlsn commented on July 24, 2024

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);

from ofxaubio.

piem avatar piem commented on July 24, 2024

hi all,

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

from ofxaubio.

jnlsn avatar jnlsn commented on July 24, 2024

@piem I have 0.4.0-1 installed

from ofxaubio.

piem avatar piem commented on July 24, 2024

@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!

from ofxaubio.

jnlsn avatar jnlsn commented on July 24, 2024

@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.

from ofxaubio.

piem avatar piem commented on July 24, 2024

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).

from ofxaubio.

jnlsn avatar jnlsn commented on July 24, 2024

@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.

from ofxaubio.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.