Repository navigation
simplifies the Linux build instructions specifically for Ubuntu - #7897
Conversation
WalkthroughThe documentation for building OpenMS on Linux has been enhanced with several new subsections. These changes provide step-by-step instructions for tasks like updating the contrib submodule, listing build types, building dependencies (in various modes), creating a build directory, configuring OpenMS with CMake, using Ninja as an alternative build system, setting environment variables, handling third-party tools, addressing Qt issues, and utilizing advanced ctest options. Changes
Poem
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (5)
doc/building_on_linux.md (5)
9-17: Improve Readability of Package Installation CommandsThe installation commands are correct, but the current formatting—with several inline code blocks split across multiple lines—might be slightly confusing for some users. Consider one of the following improvements:
- Option 1: Consolidate all package names into a single command.
- Option 2: Present the package list as a bullet list under the command for clarity.
For example:
-`sudo apt-get install build-essential cmake` `autoconf patch libtool git automake` -`qt6-base-dev libqt6svg6-dev libeigen3-dev` `libboost-random-dev libboost-regex-dev` -`libboost-iostreams-dev libboost-date-time-dev` - `libboost-math-dev libxerces-c-dev` -`zlib1g-dev libsvm-dev libbz2-dev` `coinor-libcoinmp-dev libhdf5-dev` +sudo apt-get install build-essential cmake autoconf patch libtool git automake \ + qt6-base-dev libqt6svg6-dev libeigen3-dev libboost-random-dev libboost-regex-dev \ + libboost-iostreams-dev libboost-date-time-dev libboost-math-dev libxerces-c-dev \ + zlib1g-dev libsvm-dev libbz2-dev coinor-libcoinmp-dev libhdf5-devThis change would enhance readability without altering functionality.
24-30: Solid Out-of-Source Build InstructionsThe steps for creating a dedicated build directory, configuring the build with CMake, and compiling using make are clear. For further clarity, consider adding a brief note about potential prerequisites or troubleshooting common build errors.
31-35: Environment Variables SetupThe instructions to set the
LD_LIBRARY_PATHandPATHenvironment variables in~/.bashrcare concise. It would help to remind users to replace"/PATH/TO/OpenMS"with their actual OpenMS installation path.
41-52: Well-Structured Advanced Contrib Build InstructionsThe advanced section detailing how to initialize the contrib submodule and build the contrib libraries is clearly organized.
- Note: The command
cd ..on line 49 is perfectly standard for navigating up one directory. Although static analysis flagged it for “two consecutive dots,” it is correct usage.🧰 Tools
🪛 LanguageTool
[typographical] ~48-~48: Two consecutive dots
Context: ...git submodule update --init contribcd ..mkdir contrib-build && cd contrib-bui...(DOUBLE_PUNCTUATION)
54-59: Clear Instructions for Using Built Contrib LibrariesThe steps to reconfigure the OpenMS build to explicitly use the manually built contrib libraries are well explained. The inline comment on line 56 provides useful context. You might also consider a brief reminder to create the build directory if it does not already exist.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
doc/building_on_linux.md(1 hunks)
🧰 Additional context used
🪛 LanguageTool
doc/building_on_linux.md
[typographical] ~48-~48: Two consecutive dots
Context: ... git submodule update --init contrib cd .. mkdir contrib-build && cd contrib-bui...
(DOUBLE_PUNCTUATION)
🔇 Additional comments (4)
doc/building_on_linux.md (4)
1-4: Clear Title and IntroductionThe title and introductory paragraph clearly state that these instructions are tailored for Ubuntu 22.04 and above and specify that only official system packages are used. This immediately sets the right expectation for the reader.
5-7: Distinct Section for Basic InstallationThe "Basic Installation (System Packages Only)" header effectively separates the basic install instructions from the advanced options, improving overall document clarity.
19-23: Repository Cloning Instruction is ClearThe cloning step (
git clone https://github.com/OpenMS/OpenMS.git) is straightforward and requirements-free.
37-40: Immediate Environment Update Step is ClearThe command to source the updated bash configuration ensures that environment changes take effect immediately, which is a good user experience practice.
|
please take a look at the current doxygen documentation. I think it should go there... |
|
I've integrated my simplified Ubuntu Linux build instructions into doc/doxygen/install/install-linux.doxygen as requested—please review again. Thanks! |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (4)
doc/doxygen/install/install-linux.doxygen (4)
116-123: Consider grouping packages by functionality with comments.The apt-get install command is comprehensive but quite long. Consider organizing the packages into logical groups with comments to improve readability:
sudo apt-get install build-essential cmake autoconf patch libtool git automake \ - qt6-base-dev libqt6svg6-dev libeigen3-dev libboost-random-dev libboost-regex-dev \ - libboost-iostreams-dev libboost-date-time-dev libboost-math-dev libxerces-c-dev \ - zlib1g-dev libsvm-dev libbz2-dev coinor-libcoinmp-dev libhdf5-dev + # Qt and Eigen + qt6-base-dev libqt6svg6-dev libeigen3-dev \ + # Boost libraries + libboost-random-dev libboost-regex-dev libboost-iostreams-dev \ + libboost-date-time-dev libboost-math-dev \ + # Other dependencies + libxerces-c-dev zlib1g-dev libsvm-dev libbz2-dev coinor-libcoinmp-dev libhdf5-dev
142-143: Make path substitution clearer.The environment variable setup uses placeholder paths that users need to replace:
- export LD_LIBRARY_PATH="/PATH/TO/OpenMS/lib:$LD_LIBRARY_PATH" - export PATH="$PATH:/PATH/TO/OpenMS/bin" + # Replace /full/path/to with your actual path, e.g., /home/username/Development + export LD_LIBRARY_PATH="/full/path/to/OpenMS-build/lib:$LD_LIBRARY_PATH" + export PATH="$PATH:/full/path/to/OpenMS-build/bin"
170-171: Make contrib path substitution clearer.Similar to the earlier comment about paths:
- cmake -DOPENMS_CONTRIB_LIBS="/PATH/TO/contrib-build" -DBOOST_USE_STATIC=OFF ../OpenMS + # Replace /full/path/to with the absolute path to your contrib-build directory + cmake -DOPENMS_CONTRIB_LIBS="/full/path/to/contrib-build" -DBOOST_USE_STATIC=OFF ../OpenMS
108-172: Consider adding a testing section.The new instructions are excellent but don't include a step for testing the installation after building. Consider adding a brief section about testing, referencing the existing testing section at line 411:
After building successfully, it's recommended to test your installation: \code cd OpenMS-build make test # or: ctest \endcode See the Testing section below for more details.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
doc/doxygen/install/install-linux.doxygen(1 hunks)
🔇 Additional comments (4)
doc/doxygen/install/install-linux.doxygen (4)
108-111: Well-structured new section for Ubuntu users.This is a good addition that directly addresses the PR objective of simplifying Linux build instructions for Ubuntu. The clear statement that official system packages are used eliminates confusion about manual builds being required.
134-137: Excellent build instructions with out-of-source build recommendation.The clear recommendation for out-of-source builds with explicit commands is excellent practice. The
-j4parameter with the explanatory comment is also helpful for users to understand how to optimize build times.
152-156: Clear distinction between basic and advanced installation options.This section clearly separates basic installation from advanced options, which aligns perfectly with the PR objective of "clear separation of basic instructions from advanced methods."
158-164: Advanced build instructions are clear and concise.The step-by-step instructions for manual contrib build are clear and well-structured. The use of code blocks makes it easy for users to copy commands.
|
please don't add the md file. |
|
@timosachsenberg I have removed the .md file and below is the attached image please review it. |
|
I think what was meant in the original proposal, was to make the installation instructions a bit more structured and remove a few inconsistencies. |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
doc/doxygen/install/install-linux.doxygen (1)
121-403: Overall documentation improvementThe changes significantly enhance the Linux build instructions by adding clear subsections with explicit commands and examples. The restructuring makes the documentation more navigable and user-friendly, especially for Ubuntu users, which aligns well with the PR objectives.
Two minor suggestions:
- Consider adding a table of contents at the beginning of the document to help users navigate the various subsections.
- Add more cross-references between related sections to help users follow alternative paths through the documentation.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
doc/doxygen/install/install-linux.doxygen(12 hunks)
🔇 Additional comments (12)
doc/doxygen/install/install-linux.doxygen (12)
135-143: Well-structured addition for contrib module setupThe new "Updating Contrib Submodule" subsection provides clear, step-by-step instructions for initializing the contrib submodule and setting up the build directory. This is a helpful addition that makes the process more explicit for new contributors.
154-164: Helpful addition for build type explorationThe "Listing Available Build Types" subsection is a good addition that helps users understand the available build options before proceeding with compilation, making the documentation more user-friendly.
165-173: Good clarification on dependency buildingThis subsection provides important context about potential issues with spaces in paths and offers a clear command for building all dependencies manually, which is valuable information for users encountering version incompatibility issues.
183-188: Clear instructions for non-root usersThe "Building Dependencies Without Root" subsection simplifies the previous instructions by providing explicit commands, making it more accessible for users in shared environments without root access.
189-190: Improved clarity for individual dependency buildingThis line clarifies how to build dependencies one at a time, which is more straightforward than the previous explanation.
191-196: Good addition for Qt compilationThe "Compiling Qt Without Root Privileges" subsection provides helpful context for users who need to compile Qt themselves, addressing a common issue for users without root access.
224-231: Clear instructions for build directory setupThe "Creating a Build Directory" subsection provides explicit commands and context for setting up the build directory, making the process more accessible for new users.
232-237: Improved clarity on OpenMS configurationThe "Configuring OpenMS" subsection provides a clearer introduction to the configuration process, emphasizing the importance of using absolute paths for the contrib directory.
306-314: Well-structured environment setup instructionsThe "Updating LD_LIBRARY_PATH" subsubsection clearly explains how to modify environment variables, with a helpful note about not using tilde characters in paths.
334-346: Helpful section on third-party tool integrationThe "Thirdparty Tools (Optional)" subsubsection provides valuable information on integrating third-party search engines, which is important for users who need these additional functionalities.
348-362: Useful troubleshooting for Qt issuesThe "Fixing Qt Issues (Optional)" subsubsection addresses common Qt platform plugin errors that users might encounter, providing a practical solution that will save users time when troubleshooting.
395-403: Enhanced testing instructionsThe "Advanced ctest Options" subsection provides valuable information on running tests in parallel and selecting specific test subsets, which is particularly useful for advanced users and developers.
|
@cbielow @timosachsenberg I have updated the documentation as per the feedback: |
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

User description
Description
This Pr fixes #7294
Changes made:
Clearly separated basic instructions (using system packages) from advanced methods (building contrib manually).
Provided concise step-by-step commands suitable for modern Ubuntu versions (≥ 22.04).
This aims to improve readability and reduce confusion for new contributors.
Checklist
How can I get additional information on failed tests during CI
Click to expand
If your PR is failing you can check outIf you click in the column that lists the failed tests you will get detailed error messages.
Advanced commands (admins / reviewer only)
Click to expand
/reformat(experimental) applies the clang-format style changes as additional commit. Note: your branch must have a different name (e.g., yourrepo:feature/XYZ) than the receiving branch (e.g., OpenMS:develop). Otherwise, reformat fails to push.rebuild jenkinswill retrigger Jenkins-based CI buildsPR Type
Documentation
Description
Simplified Linux build instructions for Ubuntu ≥ 22.04.
Separated basic system package usage from advanced contrib builds.
Provided step-by-step commands for clarity and ease of use.
Added environment variable setup instructions for OpenMS.
Changes walkthrough 📝
building_on_linux.md
Simplified and clarified Ubuntu build instructionsdoc/building_on_linux.md
builds.
Summary by CodeRabbit