Skip to content

Setting UP Eclipse IDE

Volodymyr Kononenko edited this page Jun 2, 2019 · 2 revisions

This page explains how to configure Eclipse IDE for working on Music DSP project.

Importing CMake project

  1. Generate project directory:
    mkdir music-dsp-build
    cmake -G"Eclipse CDT4 - Unix Makefiles" -DWITH_CLIENT=y -DWITH_TESTS=y -D CMAKE_BUILD_TYPE=Debug -DCMAKE_ECLIPSE_VERSION=4.9.0 ../music-dsp
    
  2. Import project following the Eclipse_CDT4_Generator tutorial.

Run configurations

Arbitrary audio file

  1. Navigate to Run -> Run Configurations...
  2. Select C/C++ Application and press new launch configuration
  3. Change name appropriately
  4. In Main tab click search project
  5. Select lmclient
  6. In arguments tab add lmclient argument you want to debug, e.g. -c /path/to/audio/file.wav to debug chord recognition

Check lmclient -h for the list of available options.

CUTE tests

Install CUTE plugin for Eclipse using tutorial. Then:

  1. Navigate to Run -> Run Configurations...
  2. Select CUTE Test and press new launch configuration
  3. Change name, e.g. "Chord tests"
  4. In Main tab click search project
  5. Select tests
  6. In arguments tab add --chord argument
  7. In Environment tab click new, set Name: LM_TEST_FILES_DIR, Value:
    ${workspace_loc:/MusicDsp-Debug@music-dsp-build/[Source directory]/tests/test_sounds}
    

For the list of currently supported arguments check main() in music-dsp/tests/src/test_run.cpp.

Debug configurations

  1. Select Run -> Debug Configurations...
  2. Follow steps from Run configurations section.