FreeBSD Configuration

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
atamariya
Posts: 146
Joined: Sun Aug 11, 2013 1:15 am

Re: FreeBSD Configuration

Post by atamariya »

Though I can't guarantee it to work, you can try renaming the path com\sun\jna\linux-x86-64\ to com\sun\jna\freebsd-x86-64\ inside ums.jar. Use any zip utility to do that. Remember to keep a backup of ums.jar.
User avatar
SubJunk
Lead Developer
Posts: 3806
Joined: Sun May 27, 2012 4:12 pm

Re: FreeBSD Configuration

Post by SubJunk »

There is a possible fix for this coming up, would you be interested in testing a preview version?
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: FreeBSD Configuration

Post by Nadahar »

Whatever instructions you have read, they are very old and outdated.

Instead, run

Code: Select all

mvn external:install
User avatar
Sami32
Posts: 851
Joined: Mon Apr 11, 2016 5:09 am

Re: FreeBSD Configuration

Post by Sami32 »

@monty11ez If you update the JNA library to 4.5.0 or above and fix the code accordingly you should be fine, as the 4.3.0 and the 4.4.0 are known to have libraries issues such as your.
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: FreeBSD Configuration

Post by Nadahar »

Ok - I assumed you had some instructions you were following. "mvn external:install" is a one-time operation to install some dependencies. The build itself is done with (for a Linux build)

Code: Select all

mvn package -Plinux
There is no FreeBSD build profile, so "linux" is probably the closest. The other profiles are "windows", "osx-java7" and "osx-java8". This will build UMS into the "target" subfolder.

In there's you'll find several files. The tar.gz is with bundled Linux binaries, so it's probably not of much use, except to see how it can be packaged. The JAR file can be run directly though, with

Code: Select all

java -jar target/UMS.jar
There are probably some problems specific to FreeBSD that must be resolved though. I don't think JNA will play ball for one, and I'm sure there are other issues.
Post Reply