[jitsi-users] Fwd: Re: Re: Re: Jitsi rpm for Fedora - Build native libraries


#1

Hey Mario,

Sorry, I don't reply to ML...

I try to build libjdic_misc.so in other way...but nothing...how do you
create it?

How have you tried to build it? What problem are you experiencing ?

Emil

--
Mario Santagiuliana
www.marionline.it

From: Mario Santagiuliana <fedora@marionline.it>
To: Lyubomir Marinov <lubo@jitsi.org>
Cc:
Date: Sat, 02 Jun 2012 17:06:21 +0200
Subject: Re: Re: [jitsi-users] Re: Jitsi rpm for Fedora - Build native

libraries

Hi guys, maybe great news for users...and you.

In data sabato 02 giugno 2012 13:02:04, hai scritto:
> > 1) I must download from svn the portaudio hotplug branch, apply patch
> > in
> > src/native/portaudio and compile it, isn't?
>
> Werner Dittmann had further patches addressing issues with the hotplug
> branch on Linux so you should probably check the mailing list archives
> as well.
I use patches found in src/native/portaudio directory.

I can compile almost everything and jitsi starts and works on fedora 16
64bit.
I have some errors because I don't have jdic_misc.so and maybe other...
(possible bugs?)

So I need to have answers on:
> 2) I can use libmattew-java.
jitsi should work fine with this package. But if you give me any confirm
should be better :slight_smile:

> 4) How I can create libjdic_misc.so. I don't understand how and where to
> compile the source code of libjdic_misc.so..
I don't understand yet how to compile this library. Could you give me any
suggestions?

After that I will test the package creation on other fedora platforms and

I

···

On Jun 2, 2012 7:11 PM, "Mario Santagiuliana" <fedora@marionline.it> wrote:

---------- Forwarded message ----------
> 2012/6/2 Mario Santagiuliana <fedora@marionline.it>:
will ask to rpmfusion to include my package.

Thank you!
--
Mario Santagiuliana
www.marionline.it


#2

In data sabato 02 giugno 2012 19:17:08, hai scritto:

> I try to build libjdic_misc.so in other way...but nothing...how do you
> create it?

How have you tried to build it? What problem are you experiencing ?

I download the jdic package from svn upstream:
http://java.net/projects/jdic/sources/svn/show
I use the last revision of trunk.

Then I move into src/jdic. In web svn correspond to this:
http://java.net/projects/jdic/sources/svn/show/trunk/src/jdic?rev=1736

I run "ant buildunixjni" all work fine but it doesn't build libjdic_misc.so.

So I tried to build this library from misc directory inside the incubator,
svn web correspond to:
http://java.net/projects/jdic/sources/svn/show/trunk/src/incubator/misc?rev=1736

I must to copy the native unix directory from jdic (just reading the
build.xml we can understand why) to resolve the first issue I see...but then
I have got too much error (near a hundred...I don't remember exactly).

I try to copy the misc folder here:
http://java.net/projects/jdic/sources/svn/show/trunk/src/incubator/misc/src/linux/classes/org/jdesktop/jdic?rev=1736
in corresponded folder in jdic and modified build.xml to include it.
No way to build libjdic_misc.so.

I search inside the code using grep to found a makefile that build this
library...but...there is only a makefile for windows that build
libjdic_misc.dll...

Have I download the wrong source code?

···

--
Mario Santagiuliana
www.marionline.it


#3

No that's the place. We've been using jdic for quite a while now so it
could be that we downloaded the so from their site back at the time.
We'd have to check this because I simply don't remember.

That said, you might want to share your troubles on their mailing list
and see where this takes you.

Emil

···

On Sat, Jun 2, 2012 at 8:01 PM, Mario Santagiuliana <fedora@marionline.it> wrote:

Have I download the wrong source code?


#4

Mario Santagiuliana wrote, On 2.06.2012 21:01 (EEST):

In data sabato 02 giugno 2012 19:17:08, hai scritto:

I try to build libjdic_misc.so in other way...but nothing...how do you
create it?

How have you tried to build it? What problem are you experiencing ?

I download the jdic package from svn upstream:
http://java.net/projects/jdic/sources/svn/show
I use the last revision of trunk.

Then I move into src/jdic. In web svn correspond to this:
http://java.net/projects/jdic/sources/svn/show/trunk/src/jdic?rev=1736

I run "ant buildunixjni" all work fine but it doesn't build libjdic_misc.so.

What happens if you do "ant buildall" in the root directory? especially look at the output of make when building the so.

So I tried to build this library from misc directory inside the incubator,
svn web correspond to:
http://java.net/projects/jdic/sources/svn/show/trunk/src/incubator/misc?rev=1736

Looking at build.xml it seems to me just make is called within the native source directory. You should be able to track the correct dir looking at build.xml. After a quick look I think it is http://java.net/projects/jdic/sources/svn/show/trunk/src/jdic/src/unix/native/jni?rev=1736

What happens when you call make in there? Hopefully there won't be any dependency to other parts of the project so build the so

···

I must to copy the native unix directory from jdic (just reading the
build.xml we can understand why) to resolve the first issue I see...but then
I have got too much error (near a hundred...I don't remember exactly).

I try to copy the misc folder here:
http://java.net/projects/jdic/sources/svn/show/trunk/src/incubator/misc/src/linux/classes/org/jdesktop/jdic?rev=1736
in corresponded folder in jdic and modified build.xml to include it.
No way to build libjdic_misc.so.

I search inside the code using grep to found a makefile that build this
library...but...there is only a makefile for windows that build
libjdic_misc.dll...

Have I download the wrong source code?


#5

In data sabato 02 giugno 2012 20:01:52, Emil Ivov ha scritto:

···

On Sat, Jun 2, 2012 at 8:01 PM, Mario Santagiuliana > > <fedora@marionline.it> wrote:
> Have I download the wrong source code?

No that's the place. We've been using jdic for quite a while now so it
could be that we downloaded the so from their site back at the time.
We'd have to check this because I simply don't remember.

That said, you might want to share your troubles on their mailing list
and see where this takes you.

I'm writing to their mailing list as soon as possible...but last commit is
two years old...I don't think this change something...the project is
abandon for me...
--
Mario Santagiuliana
www.marionline.it


#6

In data lunedì 04 giugno 2012 15:16:02, hai scritto:

What happens if you do "ant buildall" in the root directory? especially
look at the output of make when building the so.

> So I tried to build this library from misc directory inside the
> incubator, svn web correspond to:
> http://java.net/projects/jdic/sources/svn/show/trunk/src/incubator/misc
> ?rev=1736
Looking at build.xml it seems to me just make is called within the
native source directory. You should be able to track the correct dir
looking at build.xml. After a quick look I think it is
http://java.net/projects/jdic/sources/svn/show/trunk/src/jdic/src/unix/na
tive/jni?rev=1736

What happens when you call make in there? Hopefully there won't be any
dependency to other parts of the project so build the so

My problem is to build libjdic_misc.so. The source code you point to me
build only libjdic.so and libtray.so, not libjdic_misc.so. You can see the
Makefile.

It is not necessary to do a build for all target. Also in the "root
directory" the build.xml doesn't call incubator directory.

In jitsi package the libjdic_misc.so was build in January of 2011. I think
the developers of jitsi doesn't build all the time all package but they use
old built libraries, isn't?

···

--
Mario Santagiuliana
www.marionline.it


#7

Well ... we are not using that many things from jdic. Mostly the systray
stuff. Part of that is available in J6 (and we'll probably switch soon).
Besides it doesn't work all that well with the most recent OS versions
so we should probably rewrite it ourselves at some point.

Until then though ... we need to stick with jdic. Just a bit longer.

Emil

···

On 02.06.12 20:28, Mario Santagiuliana wrote:

In data sabato 02 giugno 2012 20:01:52, Emil Ivov ha scritto:

On Sat, Jun 2, 2012 at 8:01 PM, Mario Santagiuliana >> >> <fedora@marionline.it> wrote:

Have I download the wrong source code?

No that's the place. We've been using jdic for quite a while now so it
could be that we downloaded the so from their site back at the time.
We'd have to check this because I simply don't remember.

That said, you might want to share your troubles on their mailing list
and see where this takes you.

I'm writing to their mailing list as soon as possible...but last commit is
two years old...I don't think this change something...the project is
abandon for me...


#8

Hi,

we use a binary we have build long time ago. The misc contain only the
Alerter code. I had build it long time ago and as I'm looking
currently at the source code there is missing a Makefile in the
incubator sources for linux. There is a ant build target that should
build it by invoking make in linux/native/jni subfolder, but in it
Makefile is missing. I remember making one by myself, but it is
currently missing.

Hope it's more clearer now.

Regards
damencho

···

On Mon, Jun 4, 2012 at 5:00 PM, Mario Santagiuliana <fedora@marionline.it> wrote:

In data lunedì 04 giugno 2012 15:16:02, hai scritto:

What happens if you do "ant buildall" in the root directory? especially
look at the output of make when building the so.

> So I tried to build this library from misc directory inside the
> incubator, svn web correspond to:
> http://java.net/projects/jdic/sources/svn/show/trunk/src/incubator/misc
> ?rev=1736
Looking at build.xml it seems to me just make is called within the
native source directory. You should be able to track the correct dir
looking at build.xml. After a quick look I think it is
http://java.net/projects/jdic/sources/svn/show/trunk/src/jdic/src/unix/na
tive/jni?rev=1736

What happens when you call make in there? Hopefully there won't be any
dependency to other parts of the project so build the so

My problem is to build libjdic_misc.so. The source code you point to me
build only libjdic.so and libtray.so, not libjdic_misc.so. You can see the
Makefile.

It is not necessary to do a build for all target. Also in the "root
directory" the build.xml doesn't call incubator directory.

In jitsi package the libjdic_misc.so was build in January of 2011. I think
the developers of jitsi doesn't build all the time all package but they use
old built libraries, isn't?
--
Mario Santagiuliana
www.marionline.it


#9

In data lunedì 04 giugno 2012 17:24:28, hai scritto:

Hi,

we use a binary we have build long time ago. The misc contain only the
Alerter code. I had build it long time ago and as I'm looking
currently at the source code there is missing a Makefile in the
incubator sources for linux. There is a ant build target that should
build it by invoking make in linux/native/jni subfolder, but in it
Makefile is missing. I remember making one by myself, but it is
currently missing.

Hope it's more clearer now.

Regards
damencho

Thank you Damencho.

The best thing would be to update jitsi to use new resources or new
libraries instead old and unmaintained libraries like jdic...if there are
some alternatives should be better.

I am not a java developer or C/C++ developer (I love write Php code and
sometime Python) so I can't help you in this process and I don't know which
is the best java framework to suggest to you to use to substitute jdic...

Or...have you just plan to update jitsi to use new resources provides by
open source community?

Thank you

···

--
Mario Santagiuliana
www.marionline.it


#10

Hi again,

well first jdic_misc is not jdic and is a very simple code just to
alert users for new message by whether bouncing the doc icon (macosx)
or get user attention by alerting the window (linux and windows). We
just used the code from jdic incubator.
What we can do about it is just move and integrate that code in our
source tree, but this is not currently in our road map as we have more
priority tasks.
If this is the only thing that currently stops you from building the
rpm you can just drop the plugin chatalerter and jdic_misc binary and
come back to it later.

For jdic itself Emil explained that we use it in order to support java
1.5 as it is missing the systray functionality from later java
version. And as soon we stop supporting it, the jdic dependency will
be no more an issue.

Regards
damencho

···

On Mon, Jun 4, 2012 at 5:45 PM, Mario Santagiuliana <fedora@marionline.it> wrote:

In data lunedì 04 giugno 2012 17:24:28, hai scritto:

Hi,

we use a binary we have build long time ago. The misc contain only the
Alerter code. I had build it long time ago and as I'm looking
currently at the source code there is missing a Makefile in the
incubator sources for linux. There is a ant build target that should
build it by invoking make in linux/native/jni subfolder, but in it
Makefile is missing. I remember making one by myself, but it is
currently missing.

Hope it's more clearer now.

Regards
damencho

Thank you Damencho.

The best thing would be to update jitsi to use new resources or new
libraries instead old and unmaintained libraries like jdic...if there are
some alternatives should be better.

I am not a java developer or C/C++ developer (I love write Php code and
sometime Python) so I can't help you in this process and I don't know which
is the best java framework to suggest to you to use to substitute jdic...

Or...have you just plan to update jitsi to use new resources provides by
open source community?

Thank you
--
Mario Santagiuliana
www.marionline.it


#11

In data lunedì 04 giugno 2012 17:53:57, hai scritto:

Hi again,

Hi :slight_smile:

If this is the only thing that currently stops you from building the
rpm you can just drop the plugin chatalerter and jdic_misc binary and
come back to it later.

I can create an rpm package and the software seems to work fine, except
errors messages about missing libjdic_misc.so and other related on
"unsupported desktop" (if I remember well).
If you think that jitsi could work for normal users without libjdic_misc.so
I can continue with my review request on rpmfusion.

For jdic itself Emil explained that we use it in order to support java
1.5 as it is missing the systray functionality from later java
version. And as soon we stop supporting it, the jdic dependency will
be no more an issue.

Ok, like I sad I am not a java developer :slight_smile:
So, with this explanation it is not necessary to integrate the misc code
into jitsi.
If I understand correctly java 1.5 is old, Fedora ship open-jdk 1.6 and
1.7. But I don't know who is still using java 1.5...

Thank you!

···

--
Mario Santagiuliana
www.marionline.it


#12

In data lunedì 04 giugno 2012 17:53:57, hai scritto:

Hi again,

Hi :slight_smile:

If this is the only thing that currently stops you from building the
rpm you can just drop the plugin chatalerter and jdic_misc binary and
come back to it later.

I can create an rpm package and the software seems to work fine, except
errors messages about missing libjdic_misc.so and other related on
"unsupported desktop" (if I remember well).
If you think that jitsi could work for normal users without libjdic_misc.so
I can continue with my review request on rpmfusion.

jdic_misc.so is loaded by chatalerter plugin if you remove
sc-bundles/chatalerter.jar and remove it from
felix.client.run.properties you will no longer have this error.

For jdic itself Emil explained that we use it in order to support java
1.5 as it is missing the systray functionality from later java
version. And as soon we stop supporting it, the jdic dependency will
be no more an issue.

Ok, like I sad I am not a java developer :slight_smile:
So, with this explanation it is not necessary to integrate the misc code
into jitsi.
If I understand correctly java 1.5 is old, Fedora ship open-jdk 1.6 and
1.7. But I don't know who is still using java 1.5...

Well some macs still use java 1.5 as its default java.

···

On Mon, Jun 4, 2012 at 6:26 PM, Mario Santagiuliana <fedora@marionline.it> wrote:

Thank you!
--
Mario Santagiuliana
www.marionline.it


#13

Mario Santagiuliana wrote, On 4.06.2012 18:26 (EEST):
...

Ok, like I sad I am not a java developer :slight_smile:
So, with this explanation it is not necessary to integrate the misc code
into jitsi.

I tried this:
gcc -c -fPIC -I/usr/lib/jvm/java-1.6.0-openjdk/include -I/usr/lib/jvm/java-1.6.0-openjdk/include/linux -o alerter.o alerter.c
gcc -shared -o libjdic_misc.so alerter.o

Would that work for you? After all tray notification is important for many users.


#14

In data lunedì 04 giugno 2012 18:30:08, hai scritto:

> If I understand correctly java 1.5 is old, Fedora ship open-jdk 1.6 and
> 1.7. But I don't know who is still using java 1.5...

Well some macs still use java 1.5 as its default java.

Really?

jdic_misc.so is loaded by chatalerter plugin if you remove
sc-bundles/chatalerter.jar and remove it from
felix.client.run.properties you will no longer have this error.

Ok, I will create another patch for rpm package.

I alert you on this mailing list where my review request to include jitsi
in rpmfusion is. Ok?

Thank you!

···

--
Mario Santagiuliana
www.marionline.it


#15

In data lunedì 04 giugno 2012 18:30:08, Damian Minkov ha scritto:

jdic_misc.so is loaded by chatalerter plugin if you remove
sc-bundles/chatalerter.jar and remove it from
felix.client.run.properties you will no longer have this error.

Yeah, it works!

Just other two questions:
1) At jitsi startup I have got this errors:
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM
cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only
playback stream

2) When I go in the settings options and I try to view the webcam jitsi
crash with:
/usr/lib/jvm/java/bin/java: symbol lookup error:
/usr/lib64/jitsi/lib/native/libjnffmpeg.so: undefined symbol:
avfilter_set_common_formats

I am using: 1.1 nightly.build.4039 should I use last source code?

Thank you in advance!

···

--
Mario Santagiuliana
www.marionline.it


#16

+1. I am somewhat uncomfortable with dropping them too.

···

On 04.06.12 21:29, Aleksandar Kostadinov wrote:

Mario Santagiuliana wrote, On 4.06.2012 18:26 (EEST):
...

Ok, like I sad I am not a java developer :slight_smile:
So, with this explanation it is not necessary to integrate the misc code
into jitsi.

I tried this:
gcc -c -fPIC -I/usr/lib/jvm/java-1.6.0-openjdk/include
-I/usr/lib/jvm/java-1.6.0-openjdk/include/linux -o alerter.o alerter.c
gcc -shared -o libjdic_misc.so alerter.o

Would that work for you? After all tray notification is important for
many users.


#17

In data lunedì 04 giugno 2012 22:29:58, hai scritto:

I tried this:
gcc -c -fPIC -I/usr/lib/jvm/java-1.6.0-openjdk/include
-I/usr/lib/jvm/java-1.6.0-openjdk/include/linux -o alerter.o alerter.c
gcc -shared -o libjdic_misc.so alerter.o

Would that work for you? After all tray notification is important for
many users.

It works!!! Thank you very much!

I compile jitsi from last snapshot: nigthly build 4051.
Seems to works fine...

When I start jitsi I see this output:
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM
cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only
playback stream

If I want to set options of webcam, when I access to "video" label jitsi
crash with:
/usr/lib/jvm/java/bin/java: symbol lookup error:
/usr/lib64/jitsi/lib/native/libjnffmpeg.so: undefined symbol:
avfilter_set_common_formats

I will open a review request on rpmfusion nearly.

Thank you!

···

--
Mario Santagiuliana
www.marionline.it


#18

In data martedì 05 giugno 2012 12:44:11, Mario Santagiuliana ha scritto:

I will open a review request on rpmfusion nearly.

Review Request open here:
https://bugzilla.rpmfusion.org/show_bug.cgi?id=2363

Thank you!

···

--
Mario Santagiuliana
www.marionline.it