I wanna make c++ app for audio with QT, and I wanna use sox
, I import src folder of sox.sourceforg.net project code. and type very simple code
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <src/sox.h>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
sox_format_t* input = sox_open_read("d.wav", NULL, NULL, NULL);
}
MainWindow::~MainWindow()
{
delete ui;
}
but encounter error for undefined reference to sox_open_read'
. since this function with autocomplete show while I programmed.
I have a lot of search in this site and github and find these below links, but did not fix my prb
How can I send my audio file to stdout with the libsox library?