[jitsi-users] How to compile for Slackware64?


#1

Hi,

First of all, I'd like to thank for the application and all the work that
is provided for the community.

I've tried to compile jitsi somehow, but couldn't find instruction on how
to do it for my system.
Maybe this should go to the FAQ list.

For Slackware64, to what directory should I cd? And then issue what
command? ccmake...? What else?

Thank you for any help on this.
I'd really appreciate to move out of Skype into Jitsi.

Luis


#2

Hi,

···

On 6/23/13 1:41 AM, Luis P. Mendes wrote:

Hi,

First of all, I'd like to thank for the application and all the work
that is provided for the community.

I've tried to compile jitsi somehow, but couldn't find instruction on
how to do it for my system.
Maybe this should go to the FAQ list.

For Slackware64, to what directory should I cd? And then issue what
command? ccmake...? What else?

You can compile the java stuff with 'ant make' and run the application with 'ant run'. Those should be executed from within the directory contained in one of the source packages from the website. You will need a JDK and ant.

Regards,
Boris


#3

Hello Boris,

Thank you for the help, but I need one more (at least) push...

I've already installed apache-ant.
# ant
-version

Apache Ant(TM) version 1.8.2 compiled on December 20 2010

Does Oracle java work? or do I really have to install JDK side by side with
Oracle Java?
# java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

With Oracle Java, I fixed the JAVA_HOME to match my own.

Also fixed the location of tools.jar that was at another place:
# ll
/usr/lib64/java/lib/tools.jar

lrwxrwxrwx 1 root root 28 Jun 23 22:58 /usr/lib64/java/lib/tools.jar ->
/usr/lib64/jvm/lib/tools.jar
and
/usr/lib64/jvm/lib/tools.jar -> ../../../share/java/libgcj-tools-4.7.1.jar

Then, when at ./jitsi/resources/install
# ant
make

Buildfile:
/encriptado/home/lupe/recolhidos/jitsi/resources/install/build.xml

clean-bundle-repositories:

init:
    [mkdir] Created dir:
/encriptado/home/lupe/recolhidos/jitsi/resources/install/classes
    [mkdir] Created dir:
/encriptado/home/lupe/recolhidos/jitsi/resources/install/doc/api
    [mkdir] Created dir:
/encriptado/home/lupe/recolhidos/jitsi/resources/install/sc-bundles
    [mkdir] Created dir:
/encriptado/home/lupe/recolhidos/jitsi/resources/install/sc-bundles/os-specific
    [mkdir] Created dir:
/encriptado/home/lupe/recolhidos/jitsi/resources/install/sc-bundles/os-specific/macosx
    [mkdir] Created dir:
/encriptado/home/lupe/recolhidos/jitsi/resources/install/sc-bundles/os-specific/linux
    [mkdir] Created dir:
/encriptado/home/lupe/recolhidos/jitsi/resources/install/sc-bundles/os-specific/windows
    [mkdir] Created dir:
/encriptado/home/lupe/recolhidos/jitsi/resources/install/sc-bundles/os-specific/freebsd
    [mkdir] Created dir:
/encriptado/home/lupe/recolhidos/jitsi/resources/install/sc-bundles/os-specific/solaris
    [mkdir] Created dir:
/encriptado/home/lupe/recolhidos/jitsi/resources/install/sc-bundles/os-specific/android
    [mkdir] Created dir:
/encriptado/home/lupe/recolhidos/jitsi/resources/install/test-reports
    [mkdir] Created dir:
/encriptado/home/lupe/recolhidos/jitsi/resources/install/test-reports/html
    [mkdir] Created dir:
/encriptado/home/lupe/recolhidos/jitsi/resources/install/release
    [mkdir] Created dir:
/encriptado/home/lupe/recolhidos/jitsi/resources/install/log

-pre-version:

version:

BUILD FAILED
/encriptado/home/lupe/recolhidos/jitsi/build.xml:482:
java.lang.NoClassDefFoundError: gnu/classpath/Configuration
    at com.sun.tools.javac.Main.<clinit>(Main.java:66)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesModernCompilerExist(CompilerAdapterFactory.java:166)
    at
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:125)
    at
org.apache.tools.ant.taskdefs.Javac.findSupportedFileExtensions(Javac.java:961)
    at org.apache.tools.ant.taskdefs.Javac.scanDir(Javac.java:938)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:909)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    at org.apache.tools.ant.Task.perform(Task.java:348)
    at org.apache.tools.ant.Target.execute(Target.java:390)
    at org.apache.tools.ant.Target.performTasks(Target.java:411)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    at org.apache.tools.ant.Main.runBuild(Main.java:809)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.lang.ClassNotFoundException: gnu.classpath.Configuration
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    ... 24 more

Total time: 0 seconds

Is this really related to JDK? Or something else?

Best regards,

Luis

···

2013/6/23 Boris Grozev <boris@jitsi.org>

Hi,

On 6/23/13 1:41 AM, Luis P. Mendes wrote:

Hi,

First of all, I'd like to thank for the application and all the work
that is provided for the community.

I've tried to compile jitsi somehow, but couldn't find instruction on
how to do it for my system.
Maybe this should go to the FAQ list.

For Slackware64, to what directory should I cd? And then issue what
command? ccmake...? What else?

You can compile the java stuff with 'ant make' and run the application
with 'ant run'. Those should be executed from within the directory
contained in one of the source packages from the website. You will need a
JDK and ant.

Regards,
Boris


#4

Hi Luis,

Looks to me like you have installed the Java Runtime Environment (JRE).
The JRE allows RUNNING Java apps, but not COMPILING them.

The Java compiler (Javac) is part of the Java Development Kit (JDK). Thus,
to compile code you need the JDK,not the JRE.

Oracle or not Oracle, it doesnt matter. You can download BOTH the JRE and
JDK from Oracle.com, or use the JDK provided by Linux distros as part of
the OpenJDK open source package, which is also the base of Oracle s
freeware downloads.

FC

···

On Sun, Jun 23, 2013 at 6:26 PM, Luis P. Mendes <luislupe@gmail.com> wrote:

Does Oracle java work? or do I really have to install JDK side by side
with Oracle Java?
# java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

With Oracle Java, I fixed the JAVA_HOME to match my own.

--
During times of Universal Deceit, telling the truth becomes a revolutionary
act
Durante épocas de Engaño Universal, decir la verdad se convierte en un Acto
Revolucionario
- George Orwell


#5

Hello,

Hello Boris,

Thank you for the help, but I need one more (at least) push...

I've already installed apache-ant.
  # ant -version
Apache Ant(TM) version 1.8.2 compiled on December 20 2010

Does Oracle java work? or do I really have to install JDK side by side
with Oracle Java?

See what Fernando wrote.

# java -version
java version "1.7.0_25"
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)

With Oracle Java, I fixed the JAVA_HOME to match my own.

Also fixed the location of tools.jar that was at another place:
  # ll /usr/lib64/java/lib/tools.jar
lrwxrwxrwx 1 root root 28 Jun 23 22:58 /usr/lib64/java/lib/tools.jar ->
/usr/lib64/jvm/lib/tools.jar
and
/usr/lib64/jvm/lib/tools.jar -> ../../../share/java/libgcj-tools-4.7.1.jar

Are you certain this needed to be done?

Then, when at ./jitsi/resources/install
  # ant make

Ops, sorry, I should have answered your question about the directory -- you should run the commands in the main jitsi directory, not in resources/install. The resources/install directory is used to generate packages, which you don't need.

Regards,
Boris

···

On 6/24/13 1:26 AM, Luis P. Mendes wrote:


#6

I've successfuly compiled jitsi with apache-ant. Thank you both Boris and
Fernando for the help!

In a previous e-mail, you said that I could run the application with 'ant
run'. It does run in fact.
But considering that now I have a 230MB directory and that I could not find
any 'jitsi' executable, I'd like to ask what else can I do to get rid of
many MB and have an executable, just as I pressume the pre-packed versions
for other distros.

What else should I do besides creating a wrapper script 'jitsi.sh' that
calls 'ant run'?

Luis

···

2013/6/24 Boris Grozev <boris@jitsi.org>

Hello,

Then, when at ./jitsi/resources/install
  # ant make

Ops, sorry, I should have answered your question about the directory --
you should run the commands in the main jitsi directory, not in
resources/install. The resources/install directory is used to generate
packages, which you don't need.