Author Topic: problem with compilation vamp-plugin-sdk-2.1 from source  (Read 3361 times)


  • Newbie
  • *
  • Posts: 1
    • View Profile

This is my first post here, so I could be doing some things wrong. I didn't found any reference to a bug tracker system for vamp plugins, so I'm posting my problem here. Forgive me if I picked the wrong channel.

I just downloaded vamp-plugin-sdk-2.1.tar.gz and tried to build it on Ubuntu 9.10 (32 bit). I got this problem:
Code: [Select]
g++ -I. -g -O2 -fPIC -Wall     -c -o examples/FixedTempoEstimator.o examples/FixedTempoEstimator.cpp                                           
examples/FixedTempoEstimator.cpp: In member function ‘std::map<int, std::vector<_VampPlugin::Vamp::Plugin::Feature, std::allocator<_VampPlugin::Vamp::Plugin::Feature> >, std::less<int>, std::allocator<std::pair<const int, std::vector<_VampPlugin::Vamp::Plugin::Feature, std::allocator<_VampPlugin::Vamp::Plugin::Feature> > > > > FixedTempoEstimator::D::assembleFeatures()’:                                                           
examples/FixedTempoEstimator.cpp:515: error: ‘sprintf’ was not declared in this scope                                                           
examples/FixedTempoEstimator.cpp:546: error: ‘sprintf’ was not declared in this scope                                                           
examples/FixedTempoEstimator.cpp:586: error: ‘sprintf’ was not declared in this scope                                                           
make: *** [examples/FixedTempoEstimator.o] Error 1         

Seemed like a pretty stupid bug that was easy to fix: I added
Code: [Select]
#include <stdio.h>
to examples/FixedTempoEstimator.cpp
and I could compile it without errors