FreeBSD Configuration

For help and support with Linux-specific issues
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
monty11ez
Posts: 5
Joined: Sun Nov 11, 2018 12:30 pm

FreeBSD Configuration

Post by monty11ez » Sun Nov 11, 2018 12:52 pm

I'm getting a few errors when trying to run in console mode.

Code: Select all

WARN  19:36:00.767 [main] Error loading libzen: Native library (com/sun/jna/freebsd-x86-64/libjnidispatch.so) not found in resource path ([file:/usr/home/monty/git/ums-7.5.0/update.jar, file:/usr/home/monty/git/ums-7.5.0/ums.jar])
INFO  19:36:00.767 [main] Loading MediaInfo library
ERROR 19:36:00.768 [main] Error loading MediaInfo library: Could not initialize class com.sun.jna.Native
INFO  19:36:00.769 [main] Make sure you have libmediainfo and libzen installed
Both of these are installed, but I don't know how to add them to the UMS search path.

Also it seems that it is still trying to use the included ffmpeg even though I am telling it to look in /usr/local/bin
Attachments
debug.log
(46.18 KiB) Downloaded 45 times

User avatar
atamariya
Moderator
Posts: 132
Joined: Sun Aug 11, 2013 1:15 am

Re: FreeBSD Configuration

Post by atamariya » Wed Nov 14, 2018 8:41 pm

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: 2923
Joined: Sun May 27, 2012 4:12 pm

Re: FreeBSD Configuration

Post by SubJunk » Thu Nov 15, 2018 7:55 am

There is a possible fix for this coming up, would you be interested in testing a preview version?

monty11ez
Posts: 5
Joined: Sun Nov 11, 2018 12:30 pm

Re: FreeBSD Configuration

Post by monty11ez » Sat Nov 17, 2018 1:49 pm

I am definitely interested in testing. I would like to submit an update for the extremely out of date port.

monty11ez
Posts: 5
Joined: Sun Nov 11, 2018 12:30 pm

Re: FreeBSD Configuration

Post by monty11ez » Thu Nov 22, 2018 8:39 am

I have tried building the project source and when I run:

Code: Select all

mvn com.savage7.maven.plugins:maven-external-dependency-plugin:resolve-external
I get this error:

Code: Select all

[ERROR] Failed to execute goal com.savage7.maven.plugins:maven-external-dependency-plugin:0.5:resolve-external (default-cli) on project ums: The parameters 'artifactItems' for goal com.savage7.maven.plugins:maven-external-dependency-plugin:0.5:resolve-external are missing or invalid -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.savage7.maven.plugins:maven-external-dependency-plugin:0.5:resolve-external (default-cli) on project ums: The parameters 'artifactItems' for goal com.savage7.maven.plugins:maven-external-dependency-plugin:0.5:resolve-external are missing or invalid

Nadahar
Posts: 1421
Joined: Tue Jun 09, 2015 5:57 pm

Re: FreeBSD Configuration

Post by Nadahar » Thu Nov 22, 2018 9:53 am

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

Instead, run

Code: Select all

mvn external:install

User avatar
Sami32
Posts: 852
Joined: Mon Apr 11, 2016 5:09 am

Re: FreeBSD Configuration

Post by Sami32 » Fri Nov 23, 2018 4:13 am

@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.

monty11ez
Posts: 5
Joined: Sun Nov 11, 2018 12:30 pm

Re: FreeBSD Configuration

Post by monty11ez » Sat Nov 24, 2018 8:39 am

I was just trying to follow the BUILD.md.

Code: Select all

 mvn external:install
did build, but I'm not finding the files to run the program. Java development is not something I've ever done.

Nadahar
Posts: 1421
Joined: Tue Jun 09, 2015 5:57 pm

Re: FreeBSD Configuration

Post by Nadahar » Sat Nov 24, 2018 9:03 am

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.

monty11ez
Posts: 5
Joined: Sun Nov 11, 2018 12:30 pm

Re: FreeBSD Configuration

Post by monty11ez » Sat Nov 24, 2018 10:29 am

Code: Select all

 mvn package -Plinux 

Running package gives this error:

Code: Select all

[ERROR] Errors:
[ERROR]   JNATypesTest.testFixedCharArrayByReference:170 ? UnsatisfiedLink Native librar...
[ERROR]   JNATypesTest.testPointerArrayByReference:133 ? NoClassDefFound Could not initi...
[ERROR]   JNATypesTest.testStringByReference:55 ? NoClassDefFound Could not initialize c...
[ERROR]   JNATypesTest.testUTF16StringByReference:30 ? NoClassDefFound Could not initial...
[ERROR]   JNATypesTest.testWStringByReference:107 ? NoClassDefFound Could not initialize...

Post Reply