Skip to content

How to Build UMS (Advanced)

Samuel edited this page Jan 8, 2017 · 26 revisions
Please note this is for advanced users

Prerequisites


Install UMSBuilder

Extract the contents to a folder that you can remember to.

Run one time the Build for Windows.bat so that the Code gets pulled from the Repo and built locally on your machine. (This step is a must for the first time Netbeans/UMS builder/user as this will setup all external dependencies. If you miss this step you will not be able to build UMS in Netbeans)

Install Netbeans

There are several flavors to download and install:

Java SE, Java EE, C/C++, HTML5 & PHP, and All

I chose ALL because "why not right?"

You can install Netbeans with the commandline argument "--javahome XXX" to use the JDK downloaded with UMSBuilder-1.6. For example:

netbeans-8.0-windows.exe --javahome C:\path-to-extracted-UMSBuilder-1.9\JDK-1.7.80\

Configure Netbeans to look to the Code Folder

  • Click on File --> Open Project

Open Project

  • Find your UMSBuilder-1.9 folder and select the Code Folder

Open Code folder

  • Right click on Universal Media Server --> Git --> Remote --> Fetch..

Fetch all Branches

  • Select the Top Radio button; Click Next.

Fetch 2

  • Select All to get all remote Branches; and Finish.

Fetch 3

Build UMS

  • Right Click on Universal Media Server --> Build with Dependencies

Build with Dependencies

  • Wait for Makensis to finish... (this part may take a while)

Wait for MAKENSIS

  • Once you see BUILD SUCCESS your done compiling.

Build Success

  • Navigate back out to your UMSBuilder-1.6\code\target folder and run UMS-Setup.exe

Double click to install

...and now you'e installed the latest UMS build.

How to Complile from another branch of UMS.

same steps as above, just this time

  • Right Click on Universal Media Server-->Git-->Branch\Tag-->Switch To Branch

Switch Branch

  • Click the Branch dropdown and select the Branch you desire.

Select Branch

Note: In case you encounter NetBeans build error, many chance are that you will need to upgrade your Maven version to 3.1.1 or newer and apply it in Netbean following steps: Options > Java > Maven > Maven Home: Browse < Open > Apply > OK More detailed informations can be found on this forum topic.