opensim/BUILDING.md

89 lines
2.5 KiB
Markdown
Raw Permalink Normal View History

2022-10-02 14:09:10 +00:00
# git clone
2022-10-02 11:25:10 +00:00
2022-10-02 11:16:00 +00:00
get or update source from git
2022-10-02 11:25:10 +00:00
2022-10-02 14:09:10 +00:00
`git clone git://opensimulator.org/git/opensim`
2022-10-02 11:25:10 +00:00
2022-10-02 11:16:00 +00:00
2022-10-02 11:25:10 +00:00
2012-09-06 11:58:14 +00:00
# Building on Windows
## Requirements
To building under Windows, the following is required:
2023-04-22 11:07:27 +00:00
* [dotnet 6.0 SDK, Runtime and Desktop Runtime](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
optionally also
* [Visual Studio .NET](https://visualstudio.microsoft.com/vs/features/net-development/), version 2022 or later
2020-10-16 16:32:35 +00:00
### Building
To create the project files, run
2022-10-02 14:09:10 +00:00
`runprebuild.bat`
2023-04-22 11:07:27 +00:00
run
`compile.bat`
2022-10-02 11:29:32 +00:00
2023-04-22 11:07:27 +00:00
Or load the generated OpenSim.sln into Visual Studio and build the solution.
2020-10-16 16:32:35 +00:00
Configure, see below
Now just run `OpenSim.exe` from the `bin` folder, and set up the region.
2018-11-18 18:50:19 +00:00
# Building on Linux / Mac
## Requirements
2022-10-30 20:14:22 +00:00
* [dotnet 6.0 SDK and Runtime](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)
* libgdiplus
if you have mono 6.x complete, you already have libgdiplus, otherwise you need to install it
2023-04-22 11:10:01 +00:00
using a package manager for your operating system, like apt, brew, macports, etc
2022-10-30 20:14:22 +00:00
for example on debian:
2022-10-30 20:37:47 +00:00
2022-10-30 20:14:22 +00:00
`apt-get update && apt-get install -y apt-utils libgdiplus libc6-dev`
2020-10-16 16:32:35 +00:00
### Building
To create the project files, run:
2022-10-02 14:09:10 +00:00
`./runprebuild.sh`
2022-10-30 20:14:22 +00:00
2022-10-02 11:29:32 +00:00
then run
2022-10-02 14:09:10 +00:00
`dotnet build --configuration Release OpenSim.sln`
2022-10-02 11:29:32 +00:00
2020-10-16 16:32:35 +00:00
Configure. See below
run `./opensim.sh` from the `bin` folder, and set up the region
2022-10-02 12:36:17 +00:00
2020-10-16 16:38:36 +00:00
# Configure #
2020-10-16 16:37:52 +00:00
## Standalone mode ##
2020-10-16 17:48:58 +00:00
Copy `OpenSim.ini.example` to `OpenSim.ini` in the `bin/` directory, and verify the `[Const]` section, correcting for your case.
2020-10-16 16:35:29 +00:00
On `[Architecture]` section uncomment only the line with Standalone.ini if you do now want HG, or the line with StandaloneHypergrid.ini if you do
2020-10-16 16:32:35 +00:00
copy the `StandaloneCommon.ini.example` to `StandaloneCommon.ini` in the `bin/config-include` directory.
The StandaloneCommon.ini file describes the database and backend services that OpenSim will use, and is set to use sqlite by default, which requires no setup.
2020-10-16 16:37:52 +00:00
## Grid mode ##
2020-10-16 16:32:35 +00:00
Each grid may have its own requirements, so FOLLOW your Grid instructions!
in general:
2020-10-16 17:48:58 +00:00
Copy `OpenSim.ini.example` to `OpenSim.ini` in the `bin/` directory, and verify the `[Const]` section, correcting for your case
2020-10-16 16:35:29 +00:00
On `[Architecture]` section uncomment only the line with Grid.ini if you do now want HG, or the line with GridHypergrid.ini if you do
2020-10-16 16:32:35 +00:00
and copy the `GridCommon.ini.example` file to `GridCommon.ini` inside the `bin/config-include` directory and edit as necessary
2012-09-06 11:58:14 +00:00
# References
* http://opensimulator.org/wiki/Build_Instructions
2020-10-16 16:32:35 +00:00
* http://opensimulator.org/wiki/Configuration