-
Notifications
You must be signed in to change notification settings - Fork 4
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.
- 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 - Import project following the Eclipse_CDT4_Generator tutorial.
- Navigate to Run -> Run Configurations...
- Select C/C++ Application and press new launch configuration
- Change name appropriately
- In Main tab click search project
- Select lmclient
- In arguments tab add lmclient argument you want to debug, e.g.
-c /path/to/audio/file.wavto debug chord recognition
Check lmclient -h for the list of available options.
Install CUTE plugin for Eclipse using tutorial. Then:
- Navigate to Run -> Run Configurations...
- Select CUTE Test and press new launch configuration
- Change name, e.g. "Chord tests"
- In Main tab click search project
- Select tests
- In arguments tab add
--chordargument - 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.
- Select Run -> Debug Configurations...
- Follow steps from Run configurations section.