| Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
dev:eclipse [2021/04/02 01:37] tedfelix |
dev:eclipse [2025/11/17 19:11] (current) tedfelix [Include Files and Symbols] |
| ===== Set Up Rosegarden Source Under Eclipse ===== | ===== Set Up Rosegarden Source Under Eclipse ===== |
| |
| //Note: These instructions were developed using Eclipse 2019-09 (4.13.0).// | //Note: These instructions were developed using Eclipse 2021-03 (4.19.0).// |
| |
| Eclipse prefers a directory structure with a top level for the workspace and a lower level for the project. Something like this: | Eclipse prefers a directory structure with a top level for the workspace and a lower level for the project. Something like this: |
| $ mkdir rosegarden-workspace | $ mkdir rosegarden-workspace |
| $ mv rosegarden-git rosegarden-workspace | $ mv rosegarden-git rosegarden-workspace |
| | |
| | Unfortunately, that makes a mess of cmake, so we'll need to delete any build directory and re-run cmake... |
| | |
| | $ cd rosegarden-workspace/rosegarden-git |
| | $ rm -rf build |
| | $ mkdir build |
| | $ cd build |
| | $ cmake .. -DCMAKE_BUILD_TYPE=Debug |
| |
| And now we are ready to create an Eclipse workspace and project around this directory structure. | And now we are ready to create an Eclipse workspace and project around this directory structure. |
| |
| Launch Eclipse. It will first ask for the location of your workspace. Give it the rosegarden-workspace directory that we just created. Since this is a new workspace, you'll get the Eclipse welcome screen. In the upper right is a button for the "Workbench". Click it. | Launch Eclipse. It will first ask for the location of your workspace. Give it the rosegarden-workspace directory that we just created. Since this is a new workspace, you'll get the Eclipse welcome screen. In the upper right is a button that says "Hide" (formerly "Workbench"). Click it. |
| |
| Go to File > New > Makefile Project with Existing Code. In the "Project Name" field type rosegarden-git. For the "Existing Code Location" provide the path to the rosegarden-git directory. In the Toolchain list, select "Linux GCC". Click Finish. | Go to File > New > Makefile Project with Existing Code. In the "Project Name" field type rosegarden-git. For the "Existing Code Location" provide the path to the rosegarden-git directory. In the Toolchain list, select "Linux GCC". Click Finish. |
| /usr/include/x86_64-linux-gnu/qt5/QtXml | /usr/include/x86_64-linux-gnu/qt5/QtXml |
| /usr/include/x86_64-linux-gnu/qt5/QtWidgets | /usr/include/x86_64-linux-gnu/qt5/QtWidgets |
| | |
| | You'll likely also want to add this non-Qt5 path: |
| | |
| | /usr/include/lilv-0 |
| |
| Next, click on the # Symbols tab. Verify that "GNU C++" is still selected. In the Symbol box, add the following symbols and values: | Next, click on the # Symbols tab. Verify that "GNU C++" is still selected. In the Symbol box, add the following symbols and values: |
| |
| HAVE_ALSA 1 | HAVE_ALSA 1 |
| HAVE_LIBJACK 1 | HAVE_LIBJACK 1 |
| | HAVE_LIBSNDFILE 1 |
| |
| Click "Apply and Close". | Click "Apply and Close". |