[SOLVED] How to compile libjitsi for Openbsd?


I would like to post again my question/problem in the developper section because I have not been able to solve it.

I would like jitsi to work on openbsd.

I have successfully compiled usrsctp. Now I want to compile libjitsi.

The problem is that I end up with only one file

ls /usr/local/libjitsi/lib/native/openbsd-x86-64
history.xml  libjnsctp.so

And I expected to have many more in that directory libjnawtrenderer.so, libjnopenssl.so, libjnopus.so, libjnportaudio.so…

My question was there


Hey, libjnsctp.so is the only file that you need. The rest are not used.


Thank you for your answer.

I have a file called libjitsi-1.0-SNAPSHOT.jar and inside it (after extract)
META-INF linux-x86-64 org win32-x86-64
darwin linux-x86 openbsd-x86-64 win32-x86
And the libjnsctp.so inside the openbsd-x86-64 directory

What am I supposed to do with that libjitsi-1.0-SNAPSHOT.jar file ?

If you do mvn install, doesn’t it go inside the newly generated libjitsi-SNAPSHOT?
Have you also edited the maven bundle config so that file will be described in manifest so jna can unpack it and load it: https://github.com/jitsi/libjitsi/blob/master/pom.xml#L142

Hello Damencho,

Thank you for your answer.
a) the libjnsctp.so is inside libjitsi-1.0-SNAPSHOT.jar
b) I have added lines in pom.xml regarding openbsd

But what should I do with this libjitsi-1.0-SNAPSHOT.jar now ?

I’m interested in having a jicofo/videobridge fully fonctional with openbsd.
Which steps should I follow ?

If you run all of those on the same machine then make jvb depends on snapshot libjitsi in its pom and try running it.

But how is jitsi-videobridge going to locate the libjitsi-1.0-SNAPSHOT.jar ?
What is making the link between jitsi-videobridge and libjitsi ?

ls /usr/local/libjitsi/target/libjitsi-1.0-SNAPSHOT.jar

ls /usr/local/jitsi-videobridge/lib/native/linux-64/
libhwaddressretriever.so libsigar-amd64-linux.so


This is pure maven thing. If you do mvn install it goes to the local repo (~/.m2) and referencing it in another project like that is taking it from local repo.

Thank you.

Yes I have this, the date corresponds to my last compilation time
ls -l /root/.m2/repository/org/jitsi/libjitsi/1.0-SNAPSHOT/libjitsi-1.0-SNAPSHOT.jar
-rw-r–r-- 1 root wheel 10642897 Jan 25 00:38 /root/.m2/repository/org/jitsi/libjitsi/1.0-SNAPSHOT/libjitsi-1.0-SNAPSHOT.jar

But I also have these two
ls -l /root/.m2/repository/org/jitsi/libjitsi/1.0-SNAPSHOT/libjitsi-1.0-2018*.jar
-rw-r–r-- 1 root wheel 9099534 Nov 3 13:07 /root/.m2/repository/org/jitsi/libjitsi/1.0-SNAPSHOT/libjitsi-1.0-20180829.231707-362.jar
-rw-r–r-- 1 root wheel 9099230 Nov 3 13:33 /root/.m2/repository/org/jitsi/libjitsi/1.0-SNAPSHOT/libjitsi-1.0-20180904.192703-363.jar

So these two last won’t be used ? Or should I remove them ?

Do not touch the repo. The only thing you do with the repo when something terribly went wrong to delete it and start over again.
When you install a maven project it first downloads all dependencies in the local repo, so any other project requiring the same version will not download them from internet.

Thank you for your answer.
I guess this topic is now closed since I have been able to compile libjitsi.