[jitsi-dev] Build fails when including a rebuilt libjitsi from source


#1

Hello All,

I have built libjitsi from source with (and without g729) support. The build was a success however when I include libjitsi.jar in the Jitsi source code, the build of Jitsi will fail.
There is no useful errors or reasons why at all.

BUILD FAILED
C:\Development\git\jitsi\build.xml:297: Compile failed; see the compiler error output for details.

Total time: 1 minute 33 seconds

My version of libjitsi.jar is about 1.4MB, while as the original file bundled with Jitsi is actually about 4MB.

I am at a loss on where to go from here, I really need g729 support, and since the libjitsi build appears to be a success, I am unsure what further actions I can take

Thanks,
Curtis

···

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________


#2

Well, write down a detailed list of consecutive steps that you execute
so that we can analyze it and figure out where it is going wrong.


#3

Hello Lubo,

Note: I have tried with JDK1.7 and JDK1.6

1. Download Libjitsi from https://download.jitsi.org/libjitsi/src/libjitsi-src-273.zip
2. Without making any changes, run "ant rebuild" inside libjitsi source

            Buildfile: C:\Development\git\libjitsi\build.xml
            clean:
            compile:
                [mkdir] Created dir: C:\Development\git\libjitsi\classes
                [javac] C:\Development\git\libjitsi\build.xml:47: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
                [javac] Compiling 541 source files to C:\Development\git\libjitsi\classes
                [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
                [javac] 1 warning
            jar:
                  [jar] Building jar: C:\Development\git\libjitsi\libjitsi.jar
            make:
            rebuild:
            BUILD SUCCESSFUL
            Total time: 53 seconds
3. Copy C:\Development\git\libjitsi\libjitsi.jar to lib\installer-exclude of Jitsi source
4. Execute “ant rebuild” in Jitsi source

            BUILD FAILED
            C:\Development\git\jitsi\build.xml:297: Compile failed; see the compiler error output for details.

            Total time: 1 minute 29 seconds

Curtis

···

-----Original Message-----
From: lubo@sip-communicator.org [mailto:lubo@sip-communicator.org] On Behalf Of Lyubomir Marinov
Sent: Friday, 20 September 2013 4:10 PM
To: Jitsi Developers
Cc: Curtis Raams
Subject: Re: [jitsi-dev] Build fails when including a rebuilt libjitsi from source

Well, write down a detailed list of consecutive steps that you execute so that we can analyze it and figure out where it is going wrong.

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com ______________________________________________________________________

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________


#4

Execute “ant rebuild” in Jitsi source

BUILD FAILED
C:\Development\git\jitsi\build.xml:297: Compile failed; see the compiler
error output for details.

Total time: 1 minute 29 seconds

I followed your steps (on Windows 8 with JDK 1.7.0_40 and Ant 1.9.2)
and everything went fine, I didn't get the "Compile failed; see the
compiler error output for details".

I don't know what the problem you're experiencing is, I'd start
looking at my development environment setup.

My version of libjitsi.jar is about 1.4MB, while as the original file
bundled with Jitsi is actually about 4MB.

The libjitsi.jar file produced by "ant rebuild" in the libjitsi
project and placed in the lib\installer-exclude directory of the jitsi
project is approximately 1.4MB.

The libjitsi.jar file that you refer to as "bundled with Jitsi" is the
product of "ant rebuild" in the jitsi project placed into the
sc-bundles directory. It weighs at roughly 4MB. It represents an OSGi
bundle which includes the files of libjitsi's libjisti.jar,
dependencies and additional Jitsi-specific code.

In short, the file sizes appear normal.

···

2013/9/20 Curtis Raams <craams@staff.ains.net.au>:
2013/9/20 Curtis Raams <craams@staff.ains.net.au>: