GLXY icon indicating copy to clipboard operation
GLXY copied to clipboard

Cannot build with Replicant 4.0 SDK

Open gjengis opened this issue 10 years ago • 2 comments

Hi, I've been trying to build GLXY using the Replicant 4.0 SDK [1] and Apache Ant v1.8.2 without success.

The procedure I followed was:

  1. created a backup of the glxy-android/build.xml file.

  2. executed the android tool with the options suggested in README.md supplying the name GLXY to generate a build.xml file based on the Replicant SDK.

  3. import the ant target "-compile" and the two properties "root.dir", "main.project.dir" into the new build.xml from the original build.xml.

But I encountered the following errors when executing "ant debug":

  1. the directory "glxy-android/res/drawable-xxhdpi" is not a valid [2] I fixed this by simply deleting the directory.

  2. "The Reference project.all.jars.path not found." This is from the javac task in the "-compile" target: classpathref="project.all.jars.path" I fixed this by adding a -pre-compile target setting it equal to ${jar.libs.dir} [3]

  3. "Reference project.target.class.path not found." This is from the javac task in the "-compile" target: bootclasspathref="project.target.class.path"

Does anybody have a hint as to how I could fix this? As far as I can tell "bootclasspathref" should reference the standard java jar files but is that the right thing to do when it is supposed to run under dalvik?

[1] http://redmine.replicant.us/projects/replicant/wiki/ReplicantSDK

[2] the aapt error: [aapt] invalid resource directory name: /home/jesper/Downloads/com.kaeruct.glxy_1_src.tar.gz/glxy-android/res/drawable-xxhdpi

[3] the "-pre-compile" target added to build.xml

gjengis avatar Jul 29 '14 12:07 gjengis

Had a little trouble pasting the XML for fixing bug 2, but here it is:

<target name="-pre-compile">
      <property name="project.all.jars.path.temp" value="${toString:project.all.jars.path}" />
      <path id="project.all.jars.path">
        <path path="${project.all.jars.path.temp}"/>
        <fileset dir="${jar.libs.dir}">
          <include name="*.jar"/>
        </fileset>
      </path>
´´´

gjengis avatar Jul 29 '14 14:07 gjengis

By the way I'm using the OpenJDK on a Tisquel GNU/Linux[1] pc:

$java -version
java version "1.6.0_31"
OpenJDK Runtime Environment (IcedTea6 1.13.3) (6b31-1.13.3-1ubuntu1~0.12.04.2)
OpenJDK Server VM (build 23.25-b01, mixed mode)

[1] https://trisquel.info/

gjengis avatar Jul 29 '14 14:07 gjengis