| Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
dev:eclipse [2021/04/02 01:37] tedfelix |
dev:eclipse [2026/01/20 21:13] (current) tedfelix [Run-Time Environment Vars] |
| ===== 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 these non-Qt5 paths: |
| | |
| | /usr/include/lilv-0 |
| | /usr/include/gtk-2.0 |
| | /usr/include/glib-2.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 |
| | HAVE_GTK2 1 |
| |
| Click "Apply and Close". | Click "Apply and Close". |
| |
| ===== Massive Build Console Buffer ===== | ===== Massive Build Console Buffer ===== |
| | |
| By default, Eclipse limits build console output to 500 lines. This is not sufficient when things go wrong in template-land. Go to Window > Preferences > C/C++ > Build > Console. In the "Limit console output (number of lines)" field, enter 50000. | By default, Eclipse limits build console output to 500 lines. This is not sufficient when things go wrong in template-land. Go to Window > Preferences > C/C++ > Build > Console. In the "Limit console output (number of lines)" field, enter 50000. |
| | |
| | ===== Run-Time Environment Vars ===== |
| | |
| | Adding these at run-time can be quite handy. Go to Run > Run Configurations... > rosegarden-git Default (should already be selected) > Environment. Add these: |
| | |
| | QT_MESSAGE_PATTERN %{threadid} %{message} |
| | LD_LIBRARY_PATH build/ |
| |
| ===== Search Editor Reuse ===== | ===== Search Editor Reuse ===== |