Comments (2)
Made some progress by doing the following modifications:
bernardo@paulo-K46CB:~/openFrameworks/addons/ofxAubio$ git diff src/ofxAubioOnset.cpp
diff --git a/src/ofxAubioOnset.cpp b/src/ofxAubioOnset.cpp
index 06f32a6..5f6a921 100644
--- a/src/ofxAubioOnset.cpp
+++ b/src/ofxAubioOnset.cpp
@@ -32,7 +32,7 @@ void ofxAubioOnset::setup()
setup("default", 512, 256, 44100);
}
-void ofxAubioOnset::setup(string method, int buf_s, int hop_s, int samplerate)
+void ofxAubioOnset::setup(std::string method, int buf_s, int hop_s, int samplerate)
{
ofxAubioBlock::setup(method, buf_s, hop_s, samplerate);
onset = new_aubio_onset((char_t*)method.c_str(),
bernardo@paulo-K46CB:~/openFrameworks/addons/ofxAubio$ git diff src/ofxAubioPitch.cpp
diff --git a/src/ofxAubioPitch.cpp b/src/ofxAubioPitch.cpp
index 19de0e0..e972e12 100644
--- a/src/ofxAubioPitch.cpp
+++ b/src/ofxAubioPitch.cpp
@@ -30,7 +30,7 @@ void ofxAubioPitch::setup()
setup("default", 2048, 256, 44100);
}
-void ofxAubioPitch::setup(string method, int buf_s, int hop_s, int samplerate)
+void ofxAubioPitch::setup(std::string method, int buf_s, int hop_s, int samplerate)
{
ofxAubioBlock::setup(method, buf_s, hop_s, samplerate);
pitch = new_aubio_pitch((char_t*)method.c_str(),
But now I'm getting some linker errors:
bernardo@paulo-K46CB:~/openFrameworks/apps/myApps/testAubio$ make
HOST_OS=Linux
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123
with PKG_CONFIG_LIBDIR=
Compiling OF library for Release
make[1]: Entering directory '/home/bernardo/openFrameworks/libs/openFrameworksCompiled/project'
HOST_OS=Linux
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123
with PKG_CONFIG_LIBDIR=
HOST_OS=Linux
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123
with PKG_CONFIG_LIBDIR=
HOST_OS=Linux
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123
with PKG_CONFIG_LIBDIR=
Done!
make[1]: Leaving directory '/home/bernardo/openFrameworks/libs/openFrameworksCompiled/project'
Compiling testAubio for Release
make[1]: Entering directory '/home/bernardo/openFrameworks/apps/myApps/testAubio'
HOST_OS=Linux
checking pkg-config libraries: cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123
with PKG_CONFIG_LIBDIR=
Linking bin/testAubio for linux64
g++ -o bin/testAubio obj/linux64/Release/src/main.o obj/linux64/Release/src/ofApp.o /home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioMelBands.o /home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioBlock.o /home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioPitch.o /home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioOnset.o /home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioBeat.o /home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxGui/src/ofxBaseGui.o /home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxGui/src/ofxPanel.o /home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxGui/src/ofxSlider.o /home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxGui/src/ofxGuiGroup.o /home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxGui/src/ofxLabel.o /home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxGui/src/ofxInputField.o /home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxGui/src/ofxSliderGroup.o /home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxGui/src/ofxButton.o /home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxGui/src/ofxToggle.o /home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxGui/src/ofxColorPicker.o /home/bernardo/openFrameworks/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a -Wl,-rpath=./libs:./bin/libs -Wl,--as-needed -Wl,--gc-sections -fuse-ld=gold -L/home/bernardo/openFrameworks/libs/fmodex/lib/linux64/ -lfmodex /home/bernardo/openFrameworks/libs/kiss/lib/linux64/libkiss.a /home/bernardo/openFrameworks/libs/tess2/lib/linux64/libtess2.a -lz -lgstapp-1.0 -lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -ludev -lfontconfig -lfreetype -lsndfile -lopenal -lcurl -lglfw -lpulse-simple -lpulse -lasound -lGLEW -lGLU -lGL -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lmpg123 -lglut -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -ldl -lpthread -lfreeimage -lboost_filesystem -lboost_system -lpugixml -luriparser -lXinerama -lrtaudio
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioMelBands.o:ofxAubioMelBands.cpp:function ofxAubioMelBands::blockAudioIn(): error: undefined reference to 'aubio_pvoc_do'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioMelBands.o:ofxAubioMelBands.cpp:function ofxAubioMelBands::setup(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int): error: undefined reference to 'new_aubio_pvoc'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioMelBands.o:ofxAubioMelBands.cpp:function ofxAubioMelBands::setup(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int): error: undefined reference to 'new_cvec'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioMelBands.o:ofxAubioMelBands.cpp:function ofxAubioMelBands::setup(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int): error: undefined reference to 'new_aubio_filterbank'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioMelBands.o:ofxAubioMelBands.cpp:function ofxAubioMelBands::setup(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int): error: undefined reference to 'aubio_filterbank_set_mel_coeffs_slaney'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioMelBands.o:ofxAubioMelBands.cpp:function ofxAubioMelBands::setup(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int): error: undefined reference to 'new_fvec'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioMelBands.o:ofxAubioMelBands.cpp:function ofxAubioMelBands::~ofxAubioMelBands(): error: undefined reference to 'del_cvec'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioMelBands.o:ofxAubioMelBands.cpp:function ofxAubioMelBands::~ofxAubioMelBands(): error: undefined reference to 'del_aubio_pvoc'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioMelBands.o:ofxAubioMelBands.cpp:function ofxAubioMelBands::~ofxAubioMelBands(): error: undefined reference to 'del_fvec'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioMelBands.o:ofxAubioMelBands.cpp:function ofxAubioMelBands::~ofxAubioMelBands(): error: undefined reference to 'del_aubio_filterbank'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioMelBands.o:ofxAubioMelBands.cpp:function ofxAubioMelBands::blockAudioIn(): error: undefined reference to 'aubio_filterbank_do'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioBlock.o:ofxAubioBlock.cpp:function ofxAubioBlock::setup(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int): error: undefined reference to 'new_fvec'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioBlock.o:ofxAubioBlock.cpp:function ofxAubioBlock::setup(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int): error: undefined reference to 'new_fvec'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioBlock.o:ofxAubioBlock.cpp:function ofxAubioBlock::cleanup(): error: undefined reference to 'del_fvec'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioBlock.o:ofxAubioBlock.cpp:function ofxAubioBlock::cleanup(): error: undefined reference to 'del_fvec'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioPitch.o:ofxAubioPitch.cpp:function ofxAubioPitch::blockAudioIn(): error: undefined reference to 'aubio_pitch_do'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioPitch.o:ofxAubioPitch.cpp:function ofxAubioPitch::blockAudioIn(): error: undefined reference to 'aubio_pitch_get_confidence'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioPitch.o:ofxAubioPitch.cpp:function ofxAubioPitch::setup(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int): error: undefined reference to 'new_aubio_pitch'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioPitch.o:ofxAubioPitch.cpp:function ofxAubioPitch::setup(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int): error: undefined reference to 'aubio_pitch_set_unit'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioPitch.o:ofxAubioPitch.cpp:function ofxAubioPitch::~ofxAubioPitch(): error: undefined reference to 'del_aubio_pitch'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioOnset.o:ofxAubioOnset.cpp:function ofxAubioOnset::setup(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int): error: undefined reference to 'new_aubio_onset'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioOnset.o:ofxAubioOnset.cpp:function ofxAubioOnset::setup(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int): error: undefined reference to 'aubio_onset_get_threshold'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioOnset.o:ofxAubioOnset.cpp:function ofxAubioOnset::~ofxAubioOnset(): error: undefined reference to 'del_aubio_onset'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioOnset.o:ofxAubioOnset.cpp:function ofxAubioOnset::setThreshold(float): error: undefined reference to 'aubio_onset_set_threshold'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioOnset.o:ofxAubioOnset.cpp:function ofxAubioOnset::blockAudioIn(): error: undefined reference to 'aubio_onset_do'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioOnset.o:ofxAubioOnset.cpp:function ofxAubioOnset::blockAudioIn(): error: undefined reference to 'aubio_onset_get_descriptor'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioOnset.o:ofxAubioOnset.cpp:function ofxAubioOnset::blockAudioIn(): error: undefined reference to 'aubio_onset_get_thresholded_descriptor'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioOnset.o:ofxAubioOnset.cpp:function ofxAubioOnset::blockAudioIn(): error: undefined reference to 'aubio_onset_get_last_s'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioBeat.o:ofxAubioBeat.cpp:function ofxAubioBeat::setup(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int): error: undefined reference to 'new_aubio_tempo'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioBeat.o:ofxAubioBeat.cpp:function ofxAubioBeat::setup(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, int, int, int): error: undefined reference to 'aubio_tempo_set_silence'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioBeat.o:ofxAubioBeat.cpp:function ofxAubioBeat::~ofxAubioBeat(): error: undefined reference to 'del_aubio_tempo'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioBeat.o:ofxAubioBeat.cpp:function ofxAubioBeat::blockAudioIn(): error: undefined reference to 'aubio_tempo_do'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioBeat.o:ofxAubioBeat.cpp:function ofxAubioBeat::blockAudioIn(): error: undefined reference to 'aubio_tempo_get_bpm'
/home/bernardo/openFrameworks/addons/obj/linux64/Release/ofxAubio/src/ofxAubioBeat.o:ofxAubioBeat.cpp:function ofxAubioBeat::blockAudioIn(): error: undefined reference to 'aubio_tempo_get_last_s'
collect2: error: ld returned 1 exit status
/home/bernardo/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:403: recipe for target 'bin/testAubio' failed
make[1]: *** [bin/testAubio] Error 1
make[1]: Leaving directory '/home/bernardo/openFrameworks/apps/myApps/testAubio'
/home/bernardo/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target 'Release' failed
make: *** [Release] Error 2
I did follow the Install Instructions from Aubio's website:
$ sudo apt-get install aubio-tools libaubio-dev libaubio-doc
from ofxaubio.
finally fixed by adding the following line to my test app's config.make
:
PROJECT_LDFLAGS=-laubio
from ofxaubio.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofxaubio.