User:Hossein/Build/bsd

This manual is for building LibreOffice for BSD variants, including FreeBSD, DragonFlyBSD and NetBSD. If this does match your platform, please refer to the development page on Wiki to find the correct build instructions.

LibreOffice Versions
This manual is written for the LibreOffice Dev 7.4, which is the latest git master.

Dependencies
First you should install the dependencies. It depends on the BSD variant that you are using:

For DragonFlyBSD, invoke:

On FreeBSD, invoke:

On NetBSD, invoke:

Cloning and building
Next, we  the repository and start to build:

You should have a suitable configuration for the build. A sample  for building LibreOffice on Linux can be as follows, to enable debug build, and disable doxygen to save time. Since the  command takes a vast quantity of time to run for the first time, you probably would like to save time by specifying the settings you'd need depending on the ultimate goal of your build.

Then you can start to build LibreOffice:

Run LibreOffice
When the build has finished without errors, you can run your fresh build of LibreOffice using:

Using LibreOffice with an IDE
An integrated development environment (IDE) helps developers to have a better coding experience. Considering the fact that LibreOffice has a very large code base, you may use an IDE to simplify coding, building and debugging LibreOffice. You can use several IDEs to work on LibreOffice, including Visual Studio Code, Qt Creator, KDevelop, Vim, Eclipse CDT and several others.

You can refer to the wiki article Development/IDE to understand how to use IDEs.