[jitsi-dev] errors while building libjitsi


#1

Hi, while trying to build libjitsi I'm getting errors with the fmj library:
methods RTPSessionMgr.getLocalSSRC() - undefined
Buffer.FLAG_SKIP_FEC - undefined

I saw some topics on it says that wasn't an issue since version 23, but I'm
using the latest one.

libjitsi-master\src\org\jitsi\impl\neomedia\codec\audio\silk\JavaDecoder.java:227:
error: cannot find symbol
    [javac] if ((inBuffer.getFlags() & Buffer.FLAG_SKIP_FEC) != 0)
    [javac] ^
    [javac] symbol: variable FLAG_SKIP_FEC
    [javac] location: class Buffer

libjitsi-master\src\org\jitsi\impl\neomedia\StreamRTPManager.java:177:
error: cannot find symbol
    [javac] return ((RTPSessionMgr) manager).getLocalSSRC();
    [javac] ^
    [javac] symbol: method getLocalSSRC()
    [javac] location: class RTPSessionMgr

What can I do to make it build?


#2

Hello,

···

On 10/27/13 3:34 PM, Dima Orman wrote:

Hi, while trying to build libjitsi I'm getting errors with the fmj library:
methods RTPSessionMgr.getLocalSSRC() - undefined
Buffer.FLAG_SKIP_FEC - undefined

I saw some topics on it says that wasn't an issue since version 23, but
I'm using the latest one.

libjitsi-master\src\org\jitsi\impl\neomedia\codec\audio\silk\JavaDecoder.java:227:
error: cannot find symbol
    [javac] if ((inBuffer.getFlags() & Buffer.FLAG_SKIP_FEC) != 0)
    [javac] ^
    [javac] symbol: variable FLAG_SKIP_FEC
    [javac] location: class Buffer

Just to clarify, are you using the latest revision from the svn
repository here?
http://sourceforge.net/p/fmj/code/HEAD/tree/

Regards,
Boris


#3

Hello,

I used the latest version from github and latest from the jitsi.org
<http://jitsi.org> website they both contain the fmj and should compile...
I'll try that one tomorrow thanks for pointing out.

To build libjitsi, you need FMJ revision 23 or later. This is included
in libjitsi as lib/fmj.jar, so you do not need to bother with FMJ as I
previously suggested.

Could you describe in more detail the steps that lead you to the errors
you had?

Regards,
Boris

P.S. Please keep the mailing list in your replies.

···

On 10/28/13 6:54 PM, Dima Orman wrote:


#4

I downloaded the latest libjitsi from github and built it separately, FMJ
was already included that's why it's funny that it won't compile, the same
error that was here =>
https://java.net/nonav/projects/jitsi/lists/dev/archive/2012-07/message/151
but it says they fixed it.

···

On Mon, Oct 28, 2013 at 8:27 PM, Boris Grozev <boris@jitsi.org> wrote:

Hello,

On 10/28/13 6:54 PM, Dima Orman wrote:
> I used the latest version from github and latest from the jitsi.org
> <http://jitsi.org> website they both contain the fmj and should
compile...
> I'll try that one tomorrow thanks for pointing out.

To build libjitsi, you need FMJ revision 23 or later. This is included
in libjitsi as lib/fmj.jar, so you do not need to bother with FMJ as I
previously suggested.

Could you describe in more detail the steps that lead you to the errors
you had?

Regards,
Boris

P.S. Please keep the mailing list in your replies.


#5

tried with the latest repo from sourceforge and still the same compilation
error

···

On Tue, Oct 29, 2013 at 9:39 AM, Dima Orman <dimaorman@gmail.com> wrote:

I downloaded the latest libjitsi from github and built it separately, FMJ
was already included that's why it's funny that it won't compile, the same
error that was here =>
https://java.net/nonav/projects/jitsi/lists/dev/archive/2012-07/message/151
but it says they fixed it.

On Mon, Oct 28, 2013 at 8:27 PM, Boris Grozev <boris@jitsi.org> wrote:

Hello,

On 10/28/13 6:54 PM, Dima Orman wrote:
> I used the latest version from github and latest from the jitsi.org
> <http://jitsi.org> website they both contain the fmj and should
compile...
> I'll try that one tomorrow thanks for pointing out.

To build libjitsi, you need FMJ revision 23 or later. This is included
in libjitsi as lib/fmj.jar, so you do not need to bother with FMJ as I
previously suggested.

Could you describe in more detail the steps that lead you to the errors
you had?

Regards,
Boris

P.S. Please keep the mailing list in your replies.


#6

Hello,

I downloaded the latest libjitsi from github and built it separately,
FMJ was already included that's why it's funny that it won't compile,
the same error that was here =>
https://java.net/nonav/projects/jitsi/lists/dev/archive/2012-07/message/151
but it says they fixed it.

Did you get libjitsi from here?
https://github.com/jitsi/libjitsi

Could you share the output of "git log -n 1", so that we know exactly
which version you have?

Did you try to build it with "ant make"?

Regards,
Boris

···

On 10/29/13 8:39 AM, Dima Orman wrote:


#7

Yes, I got it from github, the same error, I tried building fmj from
source, and the missing method is there, but still won't compile in
libjitsi, I can't explain that, I managed to skip the Missing
getLocalSSRC() method by changing the import of RTSessionMGR to 'import
net.sf.fmj.media.rtp.RTPSessionMgr' but FLAG_SKIP_FEC still missing, even
if not in the FMJ compiled library.

···

On Tue, Oct 29, 2013 at 11:16 AM, Boris Grozev <boris@jitsi.org> wrote:

Hello,

On 10/29/13 8:39 AM, Dima Orman wrote:
> I downloaded the latest libjitsi from github and built it separately,
> FMJ was already included that's why it's funny that it won't compile,
> the same error that was here =>
>
https://java.net/nonav/projects/jitsi/lists/dev/archive/2012-07/message/151
> but it says they fixed it.

Did you get libjitsi from here?
https://github.com/jitsi/libjitsi

Could you share the output of "git log -n 1", so that we know exactly
which version you have?

Did you try to build it with "ant make"?

Regards,
Boris


#8

Solved, Turns out I had somehow a copy of old fmj.jar in Java folder and
eclipse looked there first.
Sorry if I wasted you time, thanks for all the support

···

On Tue, Oct 29, 2013 at 11:38 AM, Dima Orman <dimaorman@gmail.com> wrote:

Yes, I got it from github, the same error, I tried building fmj from
source, and the missing method is there, but still won't compile in
libjitsi, I can't explain that, I managed to skip the Missing
getLocalSSRC() method by changing the import of RTSessionMGR to 'import
net.sf.fmj.media.rtp.RTPSessionMgr' but FLAG_SKIP_FEC still missing, even
if not in the FMJ compiled library.

On Tue, Oct 29, 2013 at 11:16 AM, Boris Grozev <boris@jitsi.org> wrote:

Hello,

On 10/29/13 8:39 AM, Dima Orman wrote:
> I downloaded the latest libjitsi from github and built it separately,
> FMJ was already included that's why it's funny that it won't compile,
> the same error that was here =>
>
https://java.net/nonav/projects/jitsi/lists/dev/archive/2012-07/message/151
> but it says they fixed it.

Did you get libjitsi from here?
https://github.com/jitsi/libjitsi

Could you share the output of "git log -n 1", so that we know exactly
which version you have?

Did you try to build it with "ant make"?

Regards,
Boris