powered by Jive Software

Asmack can not build succefully

hello everyone:

i had build asmack successfully around 2014-02-3. i got my wanted jar file .

today is 2014-2-14

i foud i can not get my wanted jar file. because when build asmack according to the guild, there are error occur.

my working envirment :

1: macpro with ubuntu 12.04

2: java version “1.6.0_27”

3: ant version 1.8.2

4: git version

5: Subversion command-line client, version 1.6.17.

6: i am sure java and android path are set correctly , because i can use java javac android command.

6: i downloaded build envirment zip here https://github.com/flowdalic/asmack

7: i follw the build instrctions here https://github.com/Flowdalic/asmack/wiki/Build-Instructions-for-Linux

8:when i run build.bash (under the build envirment root folder asmack-master), i can fetch asmack source correctly , but when begin to compile, i found logs as follows


//===parts of logs show in terminal===


[javac] /home/wangfan/Desktop/dev/xmpp/asmack-master/build/src/trunk/org/jivesoftware/s mackx/ConfigureProviderManager.java:25: package org.jivesoftware.smackx.carbons does not exist

[javac] import org.jivesoftware.smackx.carbons.Carbon;

[javac] ^

[javac] /home/wangfan/Desktop/dev/xmpp/asmack-master/build/src/trunk/org/jivesoftware/s mackx/ConfigureProviderManager.java:35: package org.jivesoftware.smackx.ping.provider does not exist

[javac] import org.jivesoftware.smackx.ping.provider.PingProvider;

[javac] ^

[javac] /home/wangfan/Desktop/dev/xmpp/asmack-master/build/src/trunk/org/jivesoftware/s mackx/ConfigureProviderManager.java:192: cannot find symbol

[javac] symbol : class Provider

[javac] location: class org.jivesoftware.smackx.forward.Forwarded

[javac] pm.addExtensionProvider(“forwarded”, “urn:xmpp:forward:0”, new Forwarded.Provider());

[javac] ^

[javac] /home/wangfan/Desktop/dev/xmpp/asmack-master/build/src/trunk/org/jivesoftware/s mackx/ConfigureProviderManager.java:195: package Carbon does not exist

[javac] pm.addExtensionProvider(“sent”, “urn:xmpp:carbons:2”, new Carbon.Provider());

[javac] ^

[javac] /home/wangfan/Desktop/dev/xmpp/asmack-master/build/src/trunk/org/jivesoftware/s mackx/ConfigureProviderManager.java:196: package Carbon does not exist

[javac] pm.addExtensionProvider(“received”, “urn:xmpp:carbons:2”, new Carbon.Provider());

[javac] ^

[javac] /home/wangfan/Desktop/dev/xmpp/asmack-master/build/src/trunk/org/jivesoftware/s mackx/ConfigureProviderManager.java:199: cannot find symbol

[javac] symbol : class PingProvider

[javac] location: class org.jivesoftware.smackx.ConfigureProviderManager

[javac] pm.addIQProvider(“ping”, “urn:xmpp:ping”, new PingProvider());

[javac] ^

[javac] Note: Some input files use or override a deprecated API.

[javac] Note: Recompile with -Xlint:deprecation for details.

[javac] Note: Some input files use unchecked or unsafe operations.

[javac] Note: Recompile with -Xlint:unchecked for details.

[javac] 6 errors


/home/wangfan/Desktop/dev/xmpp/asmack-master/build.xml:64: Compile failed; see the compiler error output for details.

Total time: 4 seconds

9: i compared the codes i got at 2014-2-3 with codes i got today (2014-2-11) , the 2014-2-11 codes changs a lot .

and Carbon folder trully not exist in 2014-2-11 source codes. (please see attch files)

so i think problem is in build environment, who can help me ??

thanks a lot .
logs in terminal.zip (4210 Bytes)

The old master branch of the underlying smack repository has been renamed to ‘oldmaster’. The current master branch is now in sync with upstream Smack. In order to use the old branch by calling build.bash with ‘-b oldmaster’.

1 Like

yes u are right

BTW, I recommend using the provided aSmack 0.9 SNAPSHOT releases

How to build the asmack 0.9 SNAPSHOT?
Thank You

I figured out how to build asmack

  1. Use this tutorial http://overwatering.org/blog/2013/05/compiling-asmack/
  2. After 15th steps do: /android-sdk-linux/tools/android update sdk -u

or limit to some particular platforms http://stackoverflow.com/questions/4681697/is-there-a-way-to-automate-the-androi d-sdk-installation/4682241#4682241

  1. Need Java7 to be installed

  2. compiled jar will be located here /home/vagrant/asmack/releases

Original asmack repository has wrong configs, here is a repo with fixes https://github.com/QuickBlox/asmack/

Followed up at https://community.igniterealtime.org/message/241797#241797